Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_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.0008927/0.0008927, allocations: 85.05 kB / 21.5 MB, free: 2.984 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.0009148/0.0009148, allocations: 142.3 kB / 24.89 MB, free: 9.211 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.9274/0.9274, allocations: 173.3 MB / 201.5 MB, free: 9.172 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.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.342e-06/1.342e-06, allocations: 0 / 268.5 MB, free: 6.105 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.316e-05/1.45e-05, allocations: 6.25 kB / 268.5 MB, free: 6.098 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.003726/0.00374, allocations: 4.82 MB / 273.4 MB, free: 1.25 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001759/0.0055, allocations: 1.302 MB / 274.7 MB, free: 15.94 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00022/0.00572, allocations: 19.88 kB / 274.7 MB, free: 15.92 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002016/0.005921, allocations: 118.8 kB / 274.8 MB, free: 15.8 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000313/0.006234, allocations: 277.4 kB / 275.1 MB, free: 15.53 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004559/0.00669, allocations: 315.3 kB / 275.4 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007081/0.007398, allocations: 1.134 MB / 276.5 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002316/0.00763, allocations: 188.9 kB / 276.7 MB, free: 13.87 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005052/0.008135, allocations: 0.6159 MB / 277.3 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000362/0.008497, allocations: 367 kB / 277.7 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001004/0.008597, allocations: 92 kB / 277.8 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001513/0.008749, allocations: 116 kB / 277.9 MB, free: 12.69 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001021/0.008851, allocations: 207.2 kB / 278.1 MB, free: 12.49 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002029/0.009054, allocations: 323.2 kB / 278.4 MB, free: 12.17 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005752/0.009629, allocations: 0.7162 MB / 279.1 MB, free: 11.45 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.009632, allocations: 4 kB / 279.1 MB, free: 11.45 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.009633, allocations: 0 / 279.1 MB, free: 11.45 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.729e-06/0.009643, allocations: 0 / 279.1 MB, free: 11.45 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.001163/0.01081, allocations: 1.149 MB / 280.3 MB, free: 10.26 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.957e-05/0.01084, allocations: 12.92 kB / 280.3 MB, free: 10.25 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001144/0.01095, allocations: 116.8 kB / 280.4 MB, free: 10.13 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003355/0.01129, allocations: 345.5 kB / 280.7 MB, free: 9.77 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.889e-05/0.01131, allocations: 45.69 kB / 280.8 MB, free: 9.727 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.885e-05/0.01138, allocations: 68.36 kB / 280.8 MB, free: 9.66 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005556/0.01194, allocations: 0.5664 MB / 281.4 MB, free: 9.051 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.78e-05/0.01196, allocations: 192 / 281.4 MB, free: 9.051 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.054e-05/0.012, allocations: 32.31 kB / 281.4 MB, free: 9.02 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.393e-05/0.01201, allocations: 15.94 kB / 281.4 MB, free: 9.004 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003032/0.01231, allocations: 222.3 kB / 281.7 MB, free: 8.785 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001776/0.01409, allocations: 1.465 MB / 283.1 MB, free: 7.266 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003405/0.01443, allocations: 260.4 kB / 283.4 MB, free: 7 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001247/0.01456, allocations: 106.3 kB / 283.5 MB, free: 6.895 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.398e-05/0.01459, allocations: 16.48 kB / 283.5 MB, free: 6.879 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003218/0.01491, allocations: 402.9 kB / 283.9 MB, free: 6.43 MB / 266.7 MB Notification: Performance of pre-optimization done (n=54): time 2.114e-06/0.01491, allocations: 0 / 283.9 MB, free: 6.43 MB / 266.7 MB Notification: Performance of matching and sorting (n=94): time 0.1238/0.1387, allocations: 10.68 MB / 294.6 MB, free: 29.39 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.423e-05/0.1387, allocations: 144.3 kB / 294.7 MB, free: 29.23 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003106/0.139, allocations: 481.8 kB / 295.2 MB, free: 29.11 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.888e-05/0.1391, allocations: 47.05 kB / 295.2 MB, free: 29.08 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001146/0.1392, allocations: 335.8 kB / 295.6 MB, free: 28.92 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001497/0.1394, allocations: 330.8 kB / 295.9 MB, free: 28.75 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000215/0.1396, allocations: 178.9 kB / 296.1 MB, free: 28.73 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.895e-05/0.1397, allocations: 393.1 kB / 296.4 MB, free: 28.41 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00028/0.1399, allocations: 244.5 kB / 296.7 MB, free: 28.34 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003899/0.1403, allocations: 0.5466 MB / 297.2 MB, free: 27.95 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006697/0.141, allocations: 0.755 MB / 298 MB, free: 27.64 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.141, allocations: 2.125 kB / 298 MB, free: 27.64 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.006839/0.1478, allocations: 3.101 MB / 301.1 MB, free: 27.04 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.752e-05/0.1479, allocations: 64.77 kB / 301.1 MB, free: 26.97 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.208e-05/0.1479, allocations: 8.469 kB / 301.2 MB, free: 26.97 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01116/0.159, allocations: 5.043 MB / 306.2 MB, free: 24.08 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002505/0.1593, allocations: 138.7 kB / 306.3 MB, free: 23.96 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007553/0.1669, allocations: 5.428 MB / 311.8 MB, free: 18.98 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004954/0.1673, allocations: 119.9 kB / 311.9 MB, free: 18.87 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.03e-05/0.1674, allocations: 39.97 kB / 311.9 MB, free: 18.83 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,84.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0001734/0.1676, allocations: 173.2 kB / 312.1 MB, free: 18.65 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.968e-05/0.1677, allocations: 79.92 kB / 312.2 MB, free: 18.57 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005799/0.1735, allocations: 2.828 MB / 315 MB, free: 15.75 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.183e-06/0.1735, allocations: 8 kB / 315 MB, free: 15.74 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.1735, allocations: 8 kB / 315 MB, free: 15.73 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.1735, allocations: 7.922 kB / 315 MB, free: 15.72 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004171/0.1739, allocations: 0.5149 MB / 315.5 MB, free: 15.24 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.1739, allocations: 0 / 315.5 MB, free: 15.24 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001676/0.1741, allocations: 71.88 kB / 315.6 MB, free: 15.17 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01106/0.1851, allocations: 5.013 MB / 320.6 MB, free: 10.17 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.934e-05/0.1852, allocations: 23.98 kB / 320.6 MB, free: 10.15 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007184/0.1924, allocations: 5.28 MB / 325.9 MB, free: 4.836 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.1924, allocations: 0 / 325.9 MB, free: 4.836 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006188/0.1986, allocations: 3.01 MB / 328.9 MB, free: 1.828 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.545e-05/0.1986, allocations: 63.48 kB / 329 MB, free: 1.766 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.883e-05/0.1987, allocations: 27.98 kB / 329 MB, free: 1.738 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003942/0.1991, allocations: 103.9 kB / 329.1 MB, free: 1.637 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002087/0.1993, allocations: 112.8 kB / 329.2 MB, free: 1.527 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.184e-05/0.1993, allocations: 27.97 kB / 329.3 MB, free: 1.5 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001135/0.1995, allocations: 202.1 kB / 329.5 MB, free: 1.324 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1995, allocations: 3.938 kB / 329.5 MB, free: 1.32 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006557/0.2001, allocations: 366.5 kB / 329.8 MB, free: 0.9648 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.0001596/0.2003, allocations: 100.4 kB / 329.9 MB, free: 0.8555 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001898/0.2022, allocations: 1.383 MB / 331.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.107e-05/0.2022, allocations: 8 kB / 331.3 MB, free: 15.43 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001037/0.2032, allocations: 0.8146 MB / 332.1 MB, free: 14.63 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003376/0.2036, allocations: 150.9 kB / 332.3 MB, free: 14.49 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002101/0.2057, allocations: 1.448 MB / 333.7 MB, free: 13.04 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001147/0.2058, allocations: 180.6 kB / 333.9 MB, free: 12.84 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001511/0.2059, allocations: 57.28 kB / 333.9 MB, free: 12.79 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002497/0.2062, allocations: 173.3 kB / 334.1 MB, free: 12.62 MB / 282.7 MB Notification: Performance of SimCode: time 1.153e-06/0.2062, allocations: 4 kB / 334.1 MB, free: 12.62 MB / 282.7 MB Notification: Performance of Templates: time 0.02778/0.2339, allocations: 29.81 MB / 363.9 MB, free: 15.04 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_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","",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.396059437189251]