Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_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.001614/0.001614, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.001882/0.001882, allocations: 161 kB / 24.56 MB, free: 12 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9506/0.9506, allocations: 177.1 MB / 205 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.214e-06/2.214e-06, allocations: 0 / 273 MB, free: 1.527 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.318e-05/3.54e-05, allocations: 2.312 kB / 273 MB, free: 1.523 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.004574/0.00461, allocations: 4.868 MB / 277.9 MB, free: 12.63 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00197/0.00658, allocations: 1.276 MB / 279.1 MB, free: 11.35 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000259/0.006839, allocations: 11.94 kB / 279.1 MB, free: 11.34 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002434/0.007083, allocations: 122.7 kB / 279.3 MB, free: 11.21 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003585/0.007441, allocations: 277.4 kB / 279.5 MB, free: 10.94 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006797/0.008121, allocations: 319.4 kB / 279.9 MB, free: 10.63 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008288/0.00895, allocations: 1.134 MB / 281 MB, free: 9.492 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002477/0.009197, allocations: 186.9 kB / 281.2 MB, free: 9.297 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008503/0.01005, allocations: 0.612 MB / 281.8 MB, free: 8.684 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003856/0.01043, allocations: 367 kB / 282.1 MB, free: 8.324 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001055/0.01054, allocations: 92 kB / 282.2 MB, free: 8.234 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001633/0.0107, allocations: 108 kB / 282.3 MB, free: 8.129 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001139/0.01082, allocations: 203.2 kB / 282.5 MB, free: 7.93 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002277/0.01104, allocations: 323.2 kB / 282.8 MB, free: 7.613 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006052/0.01165, allocations: 0.7201 MB / 283.6 MB, free: 6.891 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.01165, allocations: 4 kB / 283.6 MB, free: 6.887 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.01165, allocations: 0 / 283.6 MB, free: 6.887 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.047e-06/0.01166, allocations: 0 / 283.6 MB, free: 6.887 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.001435/0.0131, allocations: 1.278 MB / 284.8 MB, free: 5.555 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.01314, allocations: 12.03 kB / 284.9 MB, free: 5.543 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001646/0.0133, allocations: 148.3 kB / 285 MB, free: 5.398 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004482/0.01375, allocations: 428.2 kB / 285.4 MB, free: 4.949 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.218e-05/0.01378, allocations: 53.61 kB / 285.5 MB, free: 4.898 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.68e-05/0.01387, allocations: 68.33 kB / 285.5 MB, free: 4.832 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007132/0.01458, allocations: 0.6133 MB / 286.2 MB, free: 4.18 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.532e-05/0.0146, allocations: 192 / 286.2 MB, free: 4.18 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.398e-05/0.01464, allocations: 28.38 kB / 286.2 MB, free: 4.152 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.557e-05/0.01466, allocations: 15.94 kB / 286.2 MB, free: 4.137 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004873/0.01515, allocations: 327.5 kB / 286.5 MB, free: 3.816 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002089/0.01724, allocations: 1.762 MB / 288.3 MB, free: 1.98 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004852/0.01772, allocations: 329.6 kB / 288.6 MB, free: 1.645 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002182/0.01794, allocations: 157.8 kB / 288.8 MB, free: 1.488 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.68e-05/0.01798, allocations: 12.48 kB / 288.8 MB, free: 1.477 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007587/0.01873, allocations: 432 kB / 289.2 MB, free: 0.9922 MB / 266.7 MB Notification: Performance of pre-optimization done (n=54): time 1.533e-06/0.01874, allocations: 4 kB / 289.2 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of matching and sorting (n=94): time 0.1575/0.1763, allocations: 9.79 MB / 299 MB, free: 25.4 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.55e-05/0.1763, allocations: 145.3 kB / 299.1 MB, free: 25.24 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005223/0.1768, allocations: 0.5343 MB / 299.7 MB, free: 24.98 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001218/0.177, allocations: 42.39 kB / 299.7 MB, free: 24.95 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002557/0.1772, allocations: 446.9 kB / 300.1 MB, free: 24.69 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002458/0.1775, allocations: 329.9 kB / 300.5 MB, free: 24.48 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002736/0.1777, allocations: 188.7 kB / 300.6 MB, free: 24.43 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.1779, allocations: 0.5563 MB / 301.2 MB, free: 23.91 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004706/0.1783, allocations: 351.2 kB / 301.5 MB, free: 23.77 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005157/0.1789, allocations: 0.7257 MB / 302.3 MB, free: 23.15 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009034/0.1798, allocations: 0.982 MB / 303.3 MB, free: 22.52 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.118e-06/0.1798, allocations: 0.8125 kB / 303.3 MB, free: 22.52 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.007562/0.1873, allocations: 3.528 MB / 306.8 MB, free: 19.23 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.032e-05/0.1874, allocations: 71.39 kB / 306.9 MB, free: 19.15 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.777e-05/0.1874, allocations: 5.016 kB / 306.9 MB, free: 19.14 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01285/0.2003, allocations: 5.193 MB / 312 MB, free: 13.94 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003309/0.2006, allocations: 123.9 kB / 312.2 MB, free: 13.82 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002524/0.2031, allocations: 2.651 MB / 314.8 MB, free: 11.11 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007589/0.2039, allocations: 127 kB / 314.9 MB, free: 10.99 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.135e-05/0.2039, allocations: 47.97 kB / 315 MB, free: 10.94 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,32), (5,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0002649/0.2042, allocations: 216.4 kB / 315.2 MB, free: 10.72 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001353/0.2043, allocations: 111.4 kB / 315.3 MB, free: 10.61 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007326/0.2117, allocations: 3.183 MB / 318.5 MB, free: 7.402 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.027e-05/0.2117, allocations: 12 kB / 318.5 MB, free: 7.391 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/0.2117, allocations: 0 / 318.5 MB, free: 7.391 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.038e-05/0.2117, allocations: 3.984 kB / 318.5 MB, free: 7.387 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001168/0.2129, allocations: 0.6788 MB / 319.2 MB, free: 6.711 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-05/0.2129, allocations: 0 / 319.2 MB, free: 6.711 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00025/0.2131, allocations: 63.89 kB / 319.3 MB, free: 6.648 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01706/0.2302, allocations: 5.136 MB / 324.4 MB, free: 1.5 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001409/0.2303, allocations: 32.78 kB / 324.4 MB, free: 1.469 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002865/0.2332, allocations: 2.579 MB / 327 MB, free: 14.82 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.2332, allocations: 0 / 327 MB, free: 14.82 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01078/0.244, allocations: 3.486 MB / 330.5 MB, free: 11.29 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002545/0.2443, allocations: 68.56 kB / 330.6 MB, free: 11.23 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001299/0.2444, allocations: 26.2 kB / 330.6 MB, free: 11.21 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006837/0.2451, allocations: 111.9 kB / 330.7 MB, free: 11.1 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002209/0.2453, allocations: 92.75 kB / 330.8 MB, free: 11.01 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.96e-05/0.2454, allocations: 27.98 kB / 330.8 MB, free: 10.98 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000325/0.2457, allocations: 350.7 kB / 331.1 MB, free: 10.64 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2457, allocations: 8 kB / 331.2 MB, free: 10.63 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007455/0.2464, allocations: 263.9 kB / 331.4 MB, free: 10.37 MB / 282.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.0002538/0.2467, allocations: 123.5 kB / 331.5 MB, free: 10.25 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002945/0.2496, allocations: 1.322 MB / 332.9 MB, free: 8.891 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.2496, allocations: 384 / 332.9 MB, free: 8.891 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001556/0.2512, allocations: 0.6587 MB / 333.5 MB, free: 8.23 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005951/0.2518, allocations: 147.8 kB / 333.7 MB, free: 8.094 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002946/0.2547, allocations: 1.492 MB / 335.2 MB, free: 6.578 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001173/0.2549, allocations: 163.8 kB / 335.3 MB, free: 6.398 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002148/0.2551, allocations: 56.25 kB / 335.4 MB, free: 6.344 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000119/0.2552, allocations: 40.48 kB / 335.4 MB, free: 6.305 MB / 282.7 MB Notification: Performance of SimCode: time 1.573e-06/0.2552, allocations: 0 / 335.4 MB, free: 6.305 MB / 282.7 MB Notification: Performance of Templates: time 0.02547/0.2807, allocations: 19.06 MB / 354.5 MB, free: 3.441 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/HeatingNPN_NORGate/HeatingNPN_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.8907960769720376]