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.001323/0.001323, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.001041/0.001041, allocations: 145.1 kB / 24.54 MB, free: 36 kB / 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.9271/0.9271, allocations: 173.4 MB / 201.1 MB, free: 9.316 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.423e-06/1.423e-06, allocations: 0 / 268 MB, free: 6.402 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.297e-05/2.44e-05, allocations: 10.25 kB / 268 MB, free: 6.391 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.004863/0.004887, allocations: 4.852 MB / 272.9 MB, free: 1.516 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002698/0.007586, allocations: 1.256 MB / 274.1 MB, free: 256 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004995/0.008085, allocations: 15.94 kB / 274.1 MB, free: 240 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003084/0.008394, allocations: 122.7 kB / 274.3 MB, free: 116 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005398/0.008933, allocations: 277.4 kB / 274.5 MB, free: 15.84 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008313/0.009765, allocations: 307.4 kB / 274.8 MB, free: 15.54 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001134/0.0109, allocations: 1.138 MB / 276 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003011/0.0112, allocations: 190.9 kB / 276.2 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007401/0.01194, allocations: 0.6081 MB / 276.8 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004786/0.01242, allocations: 375 kB / 277.1 MB, free: 13.22 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001161/0.01253, allocations: 88 kB / 277.2 MB, free: 13.13 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000199/0.01273, allocations: 112 kB / 277.3 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001363/0.01287, allocations: 207.2 kB / 277.5 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002818/0.01315, allocations: 319.2 kB / 277.8 MB, free: 12.51 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008273/0.01398, allocations: 0.7202 MB / 278.6 MB, free: 11.79 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.01398, allocations: 0 / 278.6 MB, free: 11.79 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.01398, allocations: 0 / 278.6 MB, free: 11.79 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.271e-05/0.014, allocations: 0 / 278.6 MB, free: 11.79 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.00182/0.01582, allocations: 1.266 MB / 279.8 MB, free: 10.46 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.48e-05/0.01586, allocations: 8.922 kB / 279.8 MB, free: 10.46 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000213/0.01608, allocations: 148.3 kB / 280 MB, free: 10.31 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008572/0.01693, allocations: 436.2 kB / 280.4 MB, free: 9.859 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.52e-05/0.01698, allocations: 49.69 kB / 280.4 MB, free: 9.809 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.603e-05/0.01707, allocations: 64.38 kB / 280.5 MB, free: 9.746 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009037/0.01798, allocations: 0.6055 MB / 281.1 MB, free: 9.102 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.086e-05/0.018, allocations: 4.172 kB / 281.1 MB, free: 9.098 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.208e-05/0.01805, allocations: 20.38 kB / 281.1 MB, free: 9.078 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.791e-05/0.01807, allocations: 19.94 kB / 281.2 MB, free: 9.059 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006161/0.01868, allocations: 335.5 kB / 281.5 MB, free: 8.73 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002744/0.02143, allocations: 1.746 MB / 283.2 MB, free: 6.906 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006031/0.02203, allocations: 344.4 kB / 283.6 MB, free: 6.559 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002548/0.02229, allocations: 157.1 kB / 283.7 MB, free: 6.402 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.129e-05/0.02233, allocations: 12.5 kB / 283.7 MB, free: 6.391 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004581/0.02279, allocations: 432 kB / 284.2 MB, free: 5.906 MB / 266.7 MB Notification: Performance of pre-optimization done (n=54): time 2.094e-06/0.02279, allocations: 4 kB / 284.2 MB, free: 5.902 MB / 266.7 MB Notification: Performance of matching and sorting (n=94): time 0.1483/0.1711, allocations: 9.798 MB / 294 MB, free: 29.14 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.789e-05/0.1712, allocations: 144 kB / 294.1 MB, free: 28.98 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006183/0.1718, allocations: 0.5331 MB / 294.6 MB, free: 28.8 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001294/0.1719, allocations: 45.42 kB / 294.7 MB, free: 28.77 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000242/0.1722, allocations: 444 kB / 295.1 MB, free: 28.54 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002561/0.1724, allocations: 324.5 kB / 295.4 MB, free: 28.37 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003345/0.1728, allocations: 191.3 kB / 295.6 MB, free: 28.34 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.1729, allocations: 0.5512 MB / 296.2 MB, free: 27.85 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006769/0.1736, allocations: 353 kB / 296.5 MB, free: 27.78 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007695/0.1743, allocations: 0.728 MB / 297.2 MB, free: 27.27 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001267/0.1756, allocations: 0.976 MB / 298.2 MB, free: 26.86 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.258e-06/0.1756, allocations: 7.812 kB / 298.2 MB, free: 26.86 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.01066/0.1863, allocations: 3.525 MB / 301.7 MB, free: 26.37 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.115e-05/0.1863, allocations: 63.97 kB / 301.8 MB, free: 26.3 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.653e-05/0.1864, allocations: 5.688 kB / 301.8 MB, free: 26.3 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01717/0.2035, allocations: 5.202 MB / 307 MB, free: 23.24 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003109/0.2038, allocations: 119.8 kB / 307.1 MB, free: 23.12 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002382/0.2062, allocations: 2.645 MB / 309.8 MB, free: 20.41 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007077/0.2069, allocations: 119.9 kB / 309.9 MB, free: 20.3 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.451e-05/0.207, allocations: 43.98 kB / 309.9 MB, free: 20.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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,32), (5,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0002969/0.2073, allocations: 233.4 kB / 310.2 MB, free: 20.02 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001503/0.2074, allocations: 111.5 kB / 310.3 MB, free: 19.91 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007388/0.2148, allocations: 3.178 MB / 313.5 MB, free: 16.71 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.7e-05/0.2148, allocations: 14.38 kB / 313.5 MB, free: 16.7 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.193e-06/0.2148, allocations: 0 / 313.5 MB, free: 16.7 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.752e-05/0.2149, allocations: 7.922 kB / 313.5 MB, free: 16.69 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008896/0.2158, allocations: 0.6787 MB / 314.2 MB, free: 16.01 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.312e-06/0.2158, allocations: 1.422 kB / 314.2 MB, free: 16.01 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001865/0.2159, allocations: 63.94 kB / 314.2 MB, free: 15.95 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0127/0.2286, allocations: 5.149 MB / 319.4 MB, free: 10.79 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001192/0.2288, allocations: 23.98 kB / 319.4 MB, free: 10.77 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00198/0.2307, allocations: 2.584 MB / 322 MB, free: 8.117 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.2308, allocations: 4 kB / 322 MB, free: 8.113 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007646/0.2384, allocations: 3.485 MB / 325.5 MB, free: 4.594 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002066/0.2386, allocations: 69.59 kB / 325.5 MB, free: 4.527 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001102/0.2387, allocations: 19.98 kB / 325.6 MB, free: 4.508 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004604/0.2392, allocations: 107.9 kB / 325.7 MB, free: 4.402 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001595/0.2393, allocations: 96.75 kB / 325.8 MB, free: 4.309 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.881e-05/0.2394, allocations: 28.86 kB / 325.8 MB, free: 4.281 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001926/0.2396, allocations: 346.8 kB / 326.1 MB, free: 3.941 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2396, allocations: 0 / 326.1 MB, free: 3.941 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005478/0.2401, allocations: 260 kB / 326.4 MB, free: 3.688 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): 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.0001913/0.2403, allocations: 129.2 kB / 326.5 MB, free: 3.555 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00198/0.2423, allocations: 1.322 MB / 327.8 MB, free: 2.203 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.2423, allocations: 4 kB / 327.8 MB, free: 2.199 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009986/0.2433, allocations: 0.6536 MB / 328.5 MB, free: 1.547 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004252/0.2437, allocations: 154.2 kB / 328.6 MB, free: 1.402 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00193/0.2457, allocations: 1.479 MB / 330.1 MB, free: 15.9 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001023/0.2458, allocations: 160 kB / 330.3 MB, free: 15.72 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001506/0.2459, allocations: 59.44 kB / 330.3 MB, free: 15.67 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.836e-05/0.246, allocations: 43.56 kB / 330.4 MB, free: 15.63 MB / 282.7 MB Notification: Performance of SimCode: time 1.092e-06/0.246, allocations: 4 kB / 330.4 MB, free: 15.62 MB / 282.7 MB Notification: Performance of Templates: time 0.02066/0.2666, allocations: 19.93 MB / 350.3 MB, free: 11.88 MB / 298.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 -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.669095671735704]