Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000919/0.000919, allocations: 80.62 kB / 22.21 MB, free: 2.297 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000903/0.000903, allocations: 151.1 kB / 25.6 MB, free: 8.938 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.96/0.96, allocations: 173.4 MB / 202.2 MB, free: 8.297 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.222e-06/1.222e-06, allocations: 0 / 269.2 MB, free: 9.758 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.502e-05/2.624e-05, allocations: 5.266 kB / 269.2 MB, free: 9.754 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.01154/0.01156, allocations: 4.755 MB / 274 MB, free: 4.988 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00226/0.01383, allocations: 1.26 MB / 275.2 MB, free: 3.727 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003414/0.01724, allocations: 11.94 kB / 275.2 MB, free: 3.715 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002789/0.01752, allocations: 122.7 kB / 275.4 MB, free: 3.594 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004628/0.01798, allocations: 273.4 kB / 275.6 MB, free: 3.324 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006713/0.01865, allocations: 311.4 kB / 275.9 MB, free: 3.02 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001028/0.01968, allocations: 1.142 MB / 277.1 MB, free: 1.875 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003314/0.02299, allocations: 182.9 kB / 277.3 MB, free: 1.68 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000778/0.02377, allocations: 0.6119 MB / 277.9 MB, free: 1.066 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004985/0.02427, allocations: 371 kB / 278.2 MB, free: 0.7031 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001198/0.02439, allocations: 91.94 kB / 278.3 MB, free: 0.6133 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002041/0.0246, allocations: 112 kB / 278.4 MB, free: 0.5039 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001451/0.02474, allocations: 199.3 kB / 278.6 MB, free: 316 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003267/0.02507, allocations: 327.2 kB / 278.9 MB, free: 15.98 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003429/0.0285, allocations: 0.7201 MB / 279.7 MB, free: 15.27 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.0285, allocations: 0 / 279.7 MB, free: 15.27 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.0285, allocations: 4 kB / 279.7 MB, free: 15.26 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.498e-05/0.02852, allocations: 0 / 279.7 MB, free: 15.26 MB / 266.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.002099/0.03062, allocations: 1.274 MB / 280.9 MB, free: 13.93 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.03065, allocations: 8.031 kB / 280.9 MB, free: 13.93 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002027/0.03086, allocations: 152.4 kB / 281.1 MB, free: 13.78 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005345/0.03139, allocations: 432.1 kB / 281.5 MB, free: 13.33 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.212e-05/0.03143, allocations: 45.69 kB / 281.6 MB, free: 13.28 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.438e-05/0.03153, allocations: 68.36 kB / 281.6 MB, free: 13.21 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007675/0.0323, allocations: 0.5548 MB / 282.2 MB, free: 12.62 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.785e-05/0.03231, allocations: 192 / 282.2 MB, free: 12.62 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.213e-05/0.03237, allocations: 32.36 kB / 282.2 MB, free: 12.59 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.786e-05/0.03238, allocations: 19.94 kB / 282.2 MB, free: 12.57 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004359/0.03282, allocations: 262.2 kB / 282.5 MB, free: 12.31 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002382/0.0352, allocations: 1.781 MB / 284.3 MB, free: 10.46 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003983/0.0356, allocations: 298 kB / 284.6 MB, free: 10.15 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001453/0.03574, allocations: 135.1 kB / 284.7 MB, free: 10.02 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.642e-05/0.03578, allocations: 16.5 kB / 284.7 MB, free: 10 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003288/0.03611, allocations: 411.6 kB / 285.1 MB, free: 9.547 MB / 266.7 MB Notification: Performance of pre-optimization done (n=54): time 1.853e-06/0.03611, allocations: 0 / 285.1 MB, free: 9.547 MB / 266.7 MB Notification: Performance of matching and sorting (n=94): time 0.02522/0.06133, allocations: 9.451 MB / 294.6 MB, free: 36 kB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.905e-05/0.06142, allocations: 141.5 kB / 294.7 MB, free: 15.86 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004268/0.06185, allocations: 0.5216 MB / 295.2 MB, free: 15.32 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001603/0.06201, allocations: 49.7 kB / 295.3 MB, free: 15.27 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002288/0.06224, allocations: 451.3 kB / 295.7 MB, free: 14.82 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002208/0.06246, allocations: 329.1 kB / 296 MB, free: 14.5 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002586/0.06272, allocations: 192.1 kB / 296.2 MB, free: 14.3 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001659/0.06288, allocations: 0.5663 MB / 296.8 MB, free: 13.72 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003522/0.06324, allocations: 281.5 kB / 297.1 MB, free: 13.44 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005119/0.06375, allocations: 0.6677 MB / 297.7 MB, free: 12.61 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008049/0.06455, allocations: 0.8734 MB / 298.6 MB, free: 11.62 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.06456, allocations: 0 / 298.6 MB, free: 11.62 MB / 282.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.008616/0.07317, allocations: 3.358 MB / 302 MB, free: 8.215 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.258e-05/0.07324, allocations: 61.44 kB / 302 MB, free: 8.145 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.335e-05/0.07325, allocations: 8 kB / 302 MB, free: 8.137 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01453/0.08779, allocations: 5.133 MB / 307.2 MB, free: 2.988 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003527/0.08814, allocations: 127.8 kB / 307.3 MB, free: 2.863 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002765/0.0909, allocations: 2.477 MB / 309.8 MB, free: 328 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007743/0.09168, allocations: 119.9 kB / 309.9 MB, free: 208 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.003e-05/0.09175, allocations: 39.97 kB / 309.9 MB, free: 168 kB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 10 (V2.signalSource.count,$PRE.V2.signalSource.count,V2.signalSource.T_start,$PRE.V2.signalSource.T_start,V1.signalSource.count,$PRE.V1.signalSource.count,V1.signalSource.T_start,$PRE.V1.signalSource.T_start,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,32), (5,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0002962/0.09204, allocations: 216.5 kB / 310.1 MB, free: 15.94 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001694/0.09221, allocations: 115.4 kB / 310.2 MB, free: 15.82 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00741/0.09962, allocations: 3.032 MB / 313.3 MB, free: 12.77 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.195e-05/0.09963, allocations: 8 kB / 313.3 MB, free: 12.76 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-06/0.09964, allocations: 0 / 313.3 MB, free: 12.76 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.534e-05/0.09965, allocations: 7.984 kB / 313.3 MB, free: 12.75 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007445/0.1004, allocations: 0.598 MB / 313.9 MB, free: 12.13 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.1004, allocations: 0 / 313.9 MB, free: 12.13 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000182/0.1006, allocations: 63.88 kB / 314 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0134/0.114, allocations: 5.082 MB / 319 MB, free: 6.969 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001059/0.1141, allocations: 35.84 kB / 319.1 MB, free: 6.934 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002203/0.1163, allocations: 2.497 MB / 321.6 MB, free: 4.367 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.043e-06/0.1163, allocations: 0 / 321.6 MB, free: 4.367 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008155/0.1245, allocations: 3.264 MB / 324.8 MB, free: 1.07 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001558/0.1246, allocations: 71.42 kB / 324.9 MB, free: 1 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001121/0.1247, allocations: 23.98 kB / 324.9 MB, free: 0.9766 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004984/0.1252, allocations: 95.91 kB / 325 MB, free: 0.8828 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001645/0.1254, allocations: 100.8 kB / 325.1 MB, free: 0.7852 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.155e-05/0.1254, allocations: 19.98 kB / 325.1 MB, free: 0.7656 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001882/0.1256, allocations: 334.6 kB / 325.5 MB, free: 448 kB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1256, allocations: 0 / 325.5 MB, free: 448 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005602/0.1262, allocations: 259.9 kB / 325.7 MB, free: 188 kB / 298.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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,32), (5,36)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002045/0.1264, allocations: 123.2 kB / 325.8 MB, free: 52 kB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001828/0.1282, allocations: 1.116 MB / 326.9 MB, free: 14.89 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.898e-06/0.1282, allocations: 0 / 326.9 MB, free: 14.89 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001067/0.1293, allocations: 0.5961 MB / 327.5 MB, free: 14.3 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004654/0.1298, allocations: 154.1 kB / 327.7 MB, free: 14.15 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002114/0.1319, allocations: 1.453 MB / 329.1 MB, free: 12.66 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.95e-05/0.132, allocations: 160 kB / 329.3 MB, free: 12.48 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001741/0.1321, allocations: 58.22 kB / 329.4 MB, free: 12.43 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002863/0.1324, allocations: 206.1 kB / 329.6 MB, free: 12.22 MB / 314.7 MB Notification: Performance of SimCode: time 1.653e-06/0.1324, allocations: 4 kB / 329.6 MB, free: 12.22 MB / 314.7 MB Notification: Performance of Templates: time 0.1115/0.2439, allocations: 20.56 MB / 350.1 MB, free: 77.08 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingPNP_NORGate/HeatingPNP_NORGate.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.391050542704761]