Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001376/0.001376, allocations: 203.5 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.314/1.314, allocations: 225.6 MB / 234.8 MB, free: 3.262 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007769/0.0007769, allocations: 98.81 kB / 286.7 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.587e-05/1.585e-05, allocations: 4 kB / 343.7 MB, free: 8.262 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0938/0.09383, allocations: 51.47 MB / 395.2 MB, free: 4.75 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3374/0.4313, allocations: 83.12 MB / 478.3 MB, free: 9.891 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002567/0.4316, allocations: 69.83 kB / 478.3 MB, free: 9.863 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.049/0.4806, allocations: 12.64 MB / 491 MB, free: 15.48 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.4807, allocations: 0 / 491 MB, free: 15.48 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.749e-05/0.4808, allocations: 16 kB / 491 MB, free: 15.46 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.00373/0.4845, allocations: 1.077 MB / 492.1 MB, free: 14.38 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.133e-05/0.4846, allocations: 9.344 kB / 492.1 MB, free: 14.38 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003963/0.485, allocations: 91.83 kB / 492.2 MB, free: 14.29 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001455/0.4865, allocations: 0.5022 MB / 492.7 MB, free: 13.82 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.044e-05/0.4865, allocations: 27.06 kB / 492.7 MB, free: 13.8 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001777/0.4867, allocations: 36 kB / 492.7 MB, free: 13.76 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001567/0.4883, allocations: 0.5139 MB / 493.3 MB, free: 13.44 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00143/0.4898, allocations: 490.8 kB / 493.7 MB, free: 13.1 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.717e-05/0.4898, allocations: 0 / 493.7 MB, free: 13.1 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.018e-05/0.4899, allocations: 3.984 kB / 493.7 MB, free: 13.09 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.28e-05/0.4899, allocations: 16 kB / 493.8 MB, free: 13.08 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005961/0.4959, allocations: 2.236 MB / 496 MB, free: 11.2 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001058/0.497, allocations: 437.5 kB / 496.4 MB, free: 10.95 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005595/0.4976, allocations: 239.9 kB / 496.7 MB, free: 10.8 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.348e-05/0.4977, allocations: 8.438 kB / 496.7 MB, free: 10.8 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000792/0.4985, allocations: 333.4 kB / 497 MB, free: 10.54 MB / 362.7 MB Notification: Performance of pre-optimization done (n=54): time 3.907e-06/0.4985, allocations: 4 kB / 497 MB, free: 10.53 MB / 362.7 MB Notification: Performance of matching and sorting (n=94): time 0.07069/0.5692, allocations: 13.81 MB / 0.4988 GB, free: 13.91 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001187/0.5694, allocations: 148.5 kB / 0.499 GB, free: 13.73 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007147/0.5701, allocations: 415.2 kB / 0.4994 GB, free: 13.41 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002721/0.5704, allocations: 28.58 kB / 0.4994 GB, free: 13.38 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000331/0.5707, allocations: 401 kB / 0.4998 GB, free: 13.09 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000417/0.5712, allocations: 297.8 kB / 0.5001 GB, free: 12.83 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.823e-05/0.5713, allocations: 0 / 0.5001 GB, free: 12.83 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001841/0.5715, allocations: 389.5 kB / 0.5004 GB, free: 12.47 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007667/0.5722, allocations: 453.8 kB / 0.5009 GB, free: 12.23 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008486/0.5731, allocations: 0.6769 MB / 0.5015 GB, free: 11.58 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001845/0.5749, allocations: 0.6894 MB / 0.5022 GB, free: 10.89 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.135e-05/0.575, allocations: 4 kB / 0.5022 GB, free: 10.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02106/0.596, allocations: 4.898 MB / 0.507 GB, free: 5.973 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.46e-05/0.5962, allocations: 71.34 kB / 0.5071 GB, free: 5.891 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.3e-05/0.5962, allocations: 8 kB / 0.5071 GB, free: 5.883 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02263/0.6188, allocations: 4.795 MB / 0.5117 GB, free: 1.074 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008012/0.6197, allocations: 191.7 kB / 0.5119 GB, free: 0.8867 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006882/0.6266, allocations: 3.219 MB / 0.5151 GB, free: 13.61 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001812/0.6284, allocations: 215.8 kB / 0.5153 GB, free: 13.4 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001794/0.6286, allocations: 47.97 kB / 0.5153 GB, free: 13.36 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.T2.vbc:DUMMY_DER(fixed = false ) "Base-collector voltage" type: Real $DER.T1.ibe:DUMMY_DER(fixed = false ) "Base-emitter diode current" type: Real $DER.T1.vbc:DUMMY_DER(fixed = false ) "Base-collector voltage" type: Real $DER.T2.T_heatPort:DUMMY_DER(fixed = false ) "Temperature of heatPort" type: Real $DER.T1.T_heatPort:DUMMY_DER(fixed = false ) "Temperature of heatPort" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.V1.signalSource.T_start,V1.signalSource.T_start,$PRE.V1.signalSource.count,V1.signalSource.count,$PRE.V2.signalSource.T_start,V2.signalSource.T_start,$PRE.V2.signalSource.count,V2.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 32} Notification: Performance of prepare postOptimizeDAE: time 0.0004109/0.629, allocations: 131.7 kB / 0.5154 GB, free: 13.22 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002446/0.6293, allocations: 79.06 kB / 0.5155 GB, free: 13.14 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02089/0.6502, allocations: 4.796 MB / 0.5202 GB, free: 8.336 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-05/0.6503, allocations: 15.94 kB / 0.5202 GB, free: 8.32 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.276e-06/0.6503, allocations: 0 / 0.5202 GB, free: 8.32 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.343e-05/0.6503, allocations: 3.984 kB / 0.5202 GB, free: 8.316 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001618/0.6519, allocations: 1.011 MB / 0.5212 GB, free: 7.273 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.216e-06/0.652, allocations: 0 / 0.5212 GB, free: 7.273 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006043/0.6526, allocations: 127.9 kB / 0.5213 GB, free: 7.148 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02262/0.6752, allocations: 4.804 MB / 0.526 GB, free: 2.332 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002816/0.6755, allocations: 11.97 kB / 0.526 GB, free: 2.32 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006588/0.6822, allocations: 3.233 MB / 0.5292 GB, free: 15.03 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.019e-06/0.6822, allocations: 3.938 kB / 0.5292 GB, free: 15.03 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02217/0.7044, allocations: 5.424 MB / 0.5345 GB, free: 9.566 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002904/0.7047, allocations: 144.1 kB / 0.5346 GB, free: 9.406 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002498/0.705, allocations: 13.72 kB / 0.5346 GB, free: 9.395 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00154/0.7065, allocations: 199.9 kB / 0.5348 GB, free: 9.199 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002717/0.7068, allocations: 100.6 kB / 0.5349 GB, free: 9.102 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001116/0.707, allocations: 31.97 kB / 0.535 GB, free: 9.07 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004256/0.7074, allocations: 307 kB / 0.5353 GB, free: 8.77 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.7074, allocations: 0 / 0.5353 GB, free: 8.77 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008732/0.7083, allocations: 239.9 kB / 0.5355 GB, free: 8.535 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (HeatCapacitor1.T) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,V1.signalSource.T_start,V1.signalSource.count,V2.signalSource.T_start,V2.signalSource.count) * Number of discrete states: 2 (V2.signalSource.count,V1.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 36} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003057/0.7086, allocations: 130.1 kB / 0.5356 GB, free: 8.402 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004234/0.7128, allocations: 1.6 MB / 0.5372 GB, free: 6.781 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.7129, allocations: 4.062 kB / 0.5372 GB, free: 6.777 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003129/0.716, allocations: 0.9423 MB / 0.5381 GB, free: 5.84 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006021/0.7166, allocations: 94.81 kB / 0.5382 GB, free: 5.746 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00263/0.7193, allocations: 1.17 MB / 0.5393 GB, free: 4.551 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004998/0.7198, allocations: 0.9702 MB / 0.5403 GB, free: 3.551 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003027/0.7201, allocations: 54.22 kB / 0.5403 GB, free: 3.496 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001142/0.7202, allocations: 39.42 kB / 0.5404 GB, free: 3.457 MB / 410.7 MB Notification: Performance of SimCode: time 5.81e-07/0.7202, allocations: 0 / 0.5404 GB, free: 3.457 MB / 410.7 MB Notification: Performance of Templates: time 0.03064/0.7509, allocations: 19.08 MB / 0.559 GB, free: 0.5586 MB / 426.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingNPN_NORGate/HeatingNPN_NORGate.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches