Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001136/0.001136, allocations: 75.75 kB / 21.97 MB, free: 2.602 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001581/0.001581, allocations: 164.9 kB / 25.33 MB, free: 9.074 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.028/1.028, allocations: 158.6 MB / 187.2 MB, free: 2.902 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5037,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5037,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.334e-06/2.334e-06, allocations: 0 / 251.1 MB, free: 7.496 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.167e-05/3.4e-05, allocations: 2.312 kB / 251.1 MB, free: 7.492 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.006679/0.006713, allocations: 4.604 MB / 255.7 MB, free: 2.859 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.003419/0.01013, allocations: 1.26 MB / 256.9 MB, free: 1.586 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000568/0.0107, allocations: 15.94 kB / 256.9 MB, free: 1.57 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003565/0.01106, allocations: 114.9 kB / 257 MB, free: 1.457 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006974/0.01175, allocations: 265.5 kB / 257.3 MB, free: 1.195 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001029/0.01278, allocations: 303.3 kB / 257.6 MB, free: 0.8984 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.001406/0.01419, allocations: 1.087 MB / 258.7 MB, free: 15.8 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000429/0.01462, allocations: 174.8 kB / 258.9 MB, free: 15.62 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001071/0.01569, allocations: 0.5886 MB / 259.4 MB, free: 15.03 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006271/0.01632, allocations: 363 kB / 259.8 MB, free: 14.67 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002011/0.01652, allocations: 88 kB / 259.9 MB, free: 14.59 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002764/0.01679, allocations: 124 kB / 260 MB, free: 14.46 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001631/0.01696, allocations: 191.3 kB / 260.2 MB, free: 14.28 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004248/0.01738, allocations: 319.2 kB / 260.5 MB, free: 13.96 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001068/0.01845, allocations: 0.6929 MB / 261.2 MB, free: 13.27 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.01846, allocations: 0 / 261.2 MB, free: 13.27 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.01846, allocations: 0 / 261.2 MB, free: 13.27 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.671e-05/0.01848, allocations: 0 / 261.2 MB, free: 13.27 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 152 * Number of variables: 152 Notification: Performance of Generate backend data structure: time 0.002342/0.02083, allocations: 1.227 MB / 262.4 MB, free: 11.99 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.4e-05/0.02088, allocations: 11.98 kB / 262.4 MB, free: 11.98 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00026/0.02114, allocations: 140.4 kB / 262.6 MB, free: 11.84 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008687/0.02201, allocations: 406.1 kB / 263 MB, free: 11.42 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.242e-05/0.02206, allocations: 49.69 kB / 263 MB, free: 11.37 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001165/0.02218, allocations: 60.38 kB / 263.1 MB, free: 11.31 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001048/0.02323, allocations: 0.5977 MB / 263.7 MB, free: 10.68 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.241e-05/0.02325, allocations: 4.188 kB / 263.7 MB, free: 10.67 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.155e-05/0.02331, allocations: 32.25 kB / 263.7 MB, free: 10.64 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.07e-05/0.02333, allocations: 19.94 kB / 263.7 MB, free: 10.62 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007169/0.02405, allocations: 307.6 kB / 264 MB, free: 10.32 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003464/0.02751, allocations: 1.715 MB / 265.7 MB, free: 8.531 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008223/0.02833, allocations: 337.6 kB / 266.1 MB, free: 8.191 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003298/0.02866, allocations: 165 kB / 266.2 MB, free: 8.023 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.721e-05/0.02873, allocations: 8.5 kB / 266.2 MB, free: 8.016 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006235/0.02935, allocations: 428 kB / 266.7 MB, free: 7.535 MB / 250.7 MB Notification: Performance of pre-optimization done (n=54): time 5.401e-06/0.02936, allocations: 0 / 266.7 MB, free: 7.535 MB / 250.7 MB Notification: Performance of matching and sorting (n=94): time 0.02625/0.05561, allocations: 9.771 MB / 276.4 MB, free: 13.7 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000104/0.05571, allocations: 153.4 kB / 276.6 MB, free: 13.52 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005265/0.05624, allocations: 0.5024 MB / 277.1 MB, free: 13 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001042/0.05634, allocations: 45.7 kB / 277.1 MB, free: 12.95 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003891/0.05673, allocations: 415.5 kB / 277.5 MB, free: 12.54 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002013/0.05693, allocations: 329.2 kB / 277.9 MB, free: 12.21 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002449/0.05718, allocations: 184.2 kB / 278 MB, free: 12.03 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001606/0.05734, allocations: 0.5469 MB / 278.6 MB, free: 11.47 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005001/0.05784, allocations: 345.2 kB / 278.9 MB, free: 11.12 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000632/0.05847, allocations: 0.7061 MB / 279.6 MB, free: 10.27 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001105/0.05958, allocations: 0.9256 MB / 280.6 MB, free: 9.242 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.042e-06/0.05958, allocations: 7.938 kB / 280.6 MB, free: 9.234 MB / 266.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.008254/0.06784, allocations: 3.487 MB / 284.1 MB, free: 5.699 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.233e-05/0.0679, allocations: 67.41 kB / 284.1 MB, free: 5.621 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.379e-05/0.06791, allocations: 4 kB / 284.1 MB, free: 5.617 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01375/0.08166, allocations: 5.167 MB / 289.3 MB, free: 444 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000291/0.08195, allocations: 111.9 kB / 289.4 MB, free: 332 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002687/0.08464, allocations: 2.575 MB / 292 MB, free: 13.68 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000702/0.08534, allocations: 111.9 kB / 292.1 MB, free: 13.57 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.212e-05/0.08542, allocations: 51.97 kB / 292.1 MB, free: 13.52 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (50): * Single equations (assignments): 46 * 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.0002835/0.08571, allocations: 208.4 kB / 292.3 MB, free: 13.31 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001583/0.08586, allocations: 107.5 kB / 292.4 MB, free: 13.2 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0078/0.09366, allocations: 3.169 MB / 295.6 MB, free: 10.01 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.406e-05/0.09368, allocations: 11.94 kB / 295.6 MB, free: 10 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.09368, allocations: 0 / 295.6 MB, free: 10 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.247e-05/0.0937, allocations: 3.984 kB / 295.6 MB, free: 9.996 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008565/0.09455, allocations: 0.6673 MB / 296.3 MB, free: 9.297 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.727e-06/0.09456, allocations: 0 / 296.3 MB, free: 9.297 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002126/0.09478, allocations: 59.95 kB / 296.4 MB, free: 9.238 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01411/0.1089, allocations: 5.117 MB / 301.5 MB, free: 4.105 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001765/0.1091, allocations: 31.97 kB / 301.5 MB, free: 4.074 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002671/0.1117, allocations: 2.579 MB / 304.1 MB, free: 1.43 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.1117, allocations: 4 kB / 304.1 MB, free: 1.426 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008638/0.1204, allocations: 3.459 MB / 307.5 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001945/0.1206, allocations: 67.52 kB / 307.6 MB, free: 13.86 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001145/0.1207, allocations: 20 kB / 307.6 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005127/0.1212, allocations: 107.9 kB / 307.7 MB, free: 13.74 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001898/0.1214, allocations: 88.83 kB / 307.8 MB, free: 13.65 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.842e-05/0.1214, allocations: 35.97 kB / 307.9 MB, free: 13.62 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002928/0.1217, allocations: 330.8 kB / 308.2 MB, free: 13.3 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1217, allocations: 4 kB / 308.2 MB, free: 13.29 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006384/0.1224, allocations: 259.9 kB / 308.4 MB, free: 13.04 MB / 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.0003252/0.1227, allocations: 137.7 kB / 308.6 MB, free: 12.9 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002148/0.1248, allocations: 1.232 MB / 309.8 MB, free: 11.62 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.1249, allocations: 0 / 309.8 MB, free: 11.62 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001221/0.1261, allocations: 0.6382 MB / 310.4 MB, free: 10.98 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005091/0.1266, allocations: 154.2 kB / 310.6 MB, free: 10.84 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002404/0.129, allocations: 1.476 MB / 312.1 MB, free: 9.328 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001022/0.1291, allocations: 155.9 kB / 312.2 MB, free: 9.152 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001717/0.1293, allocations: 57.97 kB / 312.3 MB, free: 9.094 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.895e-05/0.1294, allocations: 36.5 kB / 312.3 MB, free: 9.059 MB / 298.7 MB Notification: Performance of SimCode: time 2.134e-06/0.1294, allocations: 0 / 312.3 MB, free: 9.059 MB / 298.7 MB Notification: Performance of Templates: time 0.02196/0.1513, allocations: 18.96 MB / 331.3 MB, free: 6.07 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.7717647841200233]