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.000967/0.000967, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.0008811/0.0008811, allocations: 139.9 kB / 24.89 MB, free: 9.207 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.9242/0.9242, allocations: 173.3 MB / 201.5 MB, free: 9.215 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.232e-06/1.232e-06, allocations: 0 / 268.5 MB, free: 6.199 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.448e-05/1.571e-05, allocations: 2.312 kB / 268.5 MB, free: 6.195 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.003939/0.003955, allocations: 4.769 MB / 273.3 MB, free: 1.398 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001401/0.005356, allocations: 1.295 MB / 274.5 MB, free: 96 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001793/0.005535, allocations: 15.94 kB / 274.6 MB, free: 80 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000203/0.005738, allocations: 126.7 kB / 274.7 MB, free: 15.95 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002917/0.00603, allocations: 281.4 kB / 275 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004238/0.006454, allocations: 311.4 kB / 275.3 MB, free: 15.37 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006361/0.00709, allocations: 1.13 MB / 276.4 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002065/0.007296, allocations: 196.9 kB / 276.6 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004216/0.007718, allocations: 0.6158 MB / 277.2 MB, free: 13.4 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003128/0.008031, allocations: 363 kB / 277.6 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.265e-05/0.008113, allocations: 92 kB / 277.6 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001246/0.008238, allocations: 116 kB / 277.8 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001133/0.008351, allocations: 207.2 kB / 278 MB, free: 12.64 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002099/0.008561, allocations: 319.2 kB / 278.3 MB, free: 12.33 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004861/0.009047, allocations: 0.7201 MB / 279 MB, free: 11.61 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.763e-06/0.009049, allocations: 0 / 279 MB, free: 11.61 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.11e-07/0.00905, allocations: 0 / 279 MB, free: 11.61 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.009054, allocations: 0 / 279 MB, free: 11.61 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.001394/0.01045, allocations: 1.153 MB / 280.1 MB, free: 10.41 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.838e-05/0.01048, allocations: 8.922 kB / 280.2 MB, free: 10.4 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001087/0.01058, allocations: 116.8 kB / 280.3 MB, free: 10.29 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003197/0.0109, allocations: 345.4 kB / 280.6 MB, free: 9.926 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.782e-05/0.01093, allocations: 53.67 kB / 280.7 MB, free: 9.875 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.512e-05/0.011, allocations: 68.36 kB / 280.7 MB, free: 9.809 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004874/0.01148, allocations: 0.5664 MB / 281.3 MB, free: 9.199 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.0115, allocations: 4.125 kB / 281.3 MB, free: 9.195 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.418e-05/0.01153, allocations: 24.38 kB / 281.3 MB, free: 9.172 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.01154, allocations: 19.94 kB / 281.3 MB, free: 9.152 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002694/0.01181, allocations: 222.3 kB / 281.6 MB, free: 8.934 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0016/0.01341, allocations: 1.469 MB / 283 MB, free: 7.41 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003015/0.01371, allocations: 263.3 kB / 283.3 MB, free: 7.145 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001139/0.01383, allocations: 110.3 kB / 283.4 MB, free: 7.035 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.095e-05/0.01386, allocations: 16.48 kB / 283.4 MB, free: 7.02 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002567/0.01411, allocations: 394.9 kB / 283.8 MB, free: 6.578 MB / 266.7 MB Notification: Performance of pre-optimization done (n=54): time 1.483e-06/0.01412, allocations: 4 kB / 283.8 MB, free: 6.574 MB / 266.7 MB Notification: Performance of matching and sorting (n=94): time 0.1177/0.1318, allocations: 10.66 MB / 294.5 MB, free: 29.5 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.64e-05/0.1318, allocations: 148 kB / 294.6 MB, free: 29.35 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003619/0.1322, allocations: 482.3 kB / 295.1 MB, free: 29.23 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.996e-05/0.1323, allocations: 46.81 kB / 295.1 MB, free: 29.2 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001265/0.1324, allocations: 339 kB / 295.4 MB, free: 29.03 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001553/0.1326, allocations: 333.8 kB / 295.8 MB, free: 28.86 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002073/0.1328, allocations: 177.5 kB / 295.9 MB, free: 28.84 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.314e-05/0.1328, allocations: 393.7 kB / 296.3 MB, free: 28.53 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002866/0.1331, allocations: 241.9 kB / 296.6 MB, free: 28.46 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003664/0.1335, allocations: 0.5465 MB / 297.1 MB, free: 28.06 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006774/0.1342, allocations: 0.7508 MB / 297.9 MB, free: 27.76 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.262e-06/0.1342, allocations: 2.438 kB / 297.9 MB, free: 27.76 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.00674/0.1409, allocations: 3.096 MB / 301 MB, free: 27.2 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.353e-05/0.141, allocations: 65.2 kB / 301 MB, free: 27.14 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/0.141, allocations: 3.906 kB / 301 MB, free: 27.14 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0111/0.1521, allocations: 5.021 MB / 306.1 MB, free: 24.37 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000237/0.1523, allocations: 125 kB / 306.2 MB, free: 24.25 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007426/0.1597, allocations: 5.289 MB / 311.5 MB, free: 19.41 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005979/0.1603, allocations: 119.8 kB / 311.6 MB, free: 19.29 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.223e-05/0.1604, allocations: 35.97 kB / 311.6 MB, free: 19.25 MB / 266.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): 1 system {(5,32,76.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0002375/0.1606, allocations: 175.7 kB / 311.8 MB, free: 19.08 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001113/0.1607, allocations: 79.92 kB / 311.9 MB, free: 19 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005857/0.1666, allocations: 2.823 MB / 314.7 MB, free: 16.17 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.694e-06/0.1666, allocations: 8 kB / 314.7 MB, free: 16.16 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.1666, allocations: 8 kB / 314.7 MB, free: 16.16 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.135e-06/0.1666, allocations: 3.984 kB / 314.7 MB, free: 16.15 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004817/0.1671, allocations: 0.52 MB / 315.2 MB, free: 15.66 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.1671, allocations: 4 kB / 315.2 MB, free: 15.66 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001498/0.1672, allocations: 64.84 kB / 315.3 MB, free: 15.6 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01085/0.1781, allocations: 4.989 MB / 320.3 MB, free: 10.62 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.519e-05/0.1781, allocations: 19.98 kB / 320.3 MB, free: 10.6 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007081/0.1852, allocations: 5.263 MB / 325.6 MB, free: 5.309 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.1852, allocations: 3.984 kB / 325.6 MB, free: 5.305 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006147/0.1914, allocations: 3.013 MB / 328.6 MB, free: 2.293 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.987e-05/0.1914, allocations: 64.8 kB / 328.6 MB, free: 2.23 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.401e-05/0.1915, allocations: 20 kB / 328.7 MB, free: 2.211 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004006/0.1919, allocations: 103.9 kB / 328.8 MB, free: 2.109 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001808/0.1921, allocations: 116.8 kB / 328.9 MB, free: 1.996 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.105e-05/0.1922, allocations: 27.97 kB / 328.9 MB, free: 1.969 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000108/0.1923, allocations: 202 kB / 329.1 MB, free: 1.793 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1923, allocations: 0 / 329.1 MB, free: 1.793 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000702/0.193, allocations: 356 kB / 329.5 MB, free: 1.445 MB / 266.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): 1 system {(5,32,76.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,36)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001737/0.1931, allocations: 117.7 kB / 329.6 MB, free: 1.332 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00145/0.1946, allocations: 1.302 MB / 330.9 MB, free: 15.99 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.43e-05/0.1946, allocations: 12.44 kB / 330.9 MB, free: 15.98 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001046/0.1956, allocations: 0.8008 MB / 331.7 MB, free: 15.19 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003536/0.196, allocations: 151.5 kB / 331.8 MB, free: 15.05 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001933/0.1979, allocations: 1.469 MB / 333.3 MB, free: 13.58 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001392/0.1981, allocations: 180.6 kB / 333.5 MB, free: 13.39 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001503/0.1982, allocations: 61.33 kB / 333.5 MB, free: 13.33 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002499/0.1985, allocations: 169.3 kB / 333.7 MB, free: 13.17 MB / 282.7 MB Notification: Performance of SimCode: time 1.292e-06/0.1985, allocations: 0 / 333.7 MB, free: 13.17 MB / 282.7 MB Notification: Performance of Templates: time 0.02875/0.2272, allocations: 29.77 MB / 363.5 MB, free: 15.62 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.307944481726736]