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.001356/0.001356, allocations: 78.97 kB / 21.42 MB, free: 3.078 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.001054/0.001054, allocations: 147.5 kB / 24.81 MB, free: 9.27 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 1.07/1.07, allocations: 173.3 MB / 201.4 MB, free: 9.223 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.814e-06/1.814e-06, allocations: 0 / 268.4 MB, free: 6.191 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.55e-05/2.731e-05, allocations: 6.25 kB / 268.4 MB, free: 6.184 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.005841/0.005869, allocations: 4.779 MB / 273.2 MB, free: 1.379 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002057/0.007926, allocations: 1.248 MB / 274.5 MB, free: 124 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002858/0.008211, allocations: 11.94 kB / 274.5 MB, free: 112 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002888/0.0085, allocations: 126.8 kB / 274.6 MB, free: 15.98 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004778/0.008978, allocations: 273.3 kB / 274.9 MB, free: 15.71 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006384/0.009616, allocations: 319.3 kB / 275.2 MB, free: 15.4 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001033/0.01065, allocations: 1.134 MB / 276.3 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003191/0.01097, allocations: 186.9 kB / 276.5 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006577/0.01163, allocations: 0.6159 MB / 277.1 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004722/0.0121, allocations: 367 kB / 277.5 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001331/0.01223, allocations: 92 kB / 277.5 MB, free: 13 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002153/0.01245, allocations: 108 kB / 277.7 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001733/0.01262, allocations: 207.2 kB / 277.9 MB, free: 12.69 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003253/0.01295, allocations: 323.2 kB / 278.2 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000819/0.01376, allocations: 0.7123 MB / 278.9 MB, free: 11.66 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.01377, allocations: 4 kB / 278.9 MB, free: 11.66 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.01377, allocations: 3.938 kB / 278.9 MB, free: 11.65 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.967e-06/0.01378, allocations: 0 / 278.9 MB, free: 11.65 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.001988/0.01577, allocations: 1.274 MB / 280.2 MB, free: 10.32 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.589e-05/0.01582, allocations: 12.92 kB / 280.2 MB, free: 10.31 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000219/0.01604, allocations: 144.3 kB / 280.3 MB, free: 10.17 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005616/0.0166, allocations: 428.2 kB / 280.7 MB, free: 9.727 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.722e-05/0.01665, allocations: 49.69 kB / 280.8 MB, free: 9.676 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001127/0.01676, allocations: 68.38 kB / 280.8 MB, free: 9.609 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008279/0.01759, allocations: 0.5586 MB / 281.4 MB, free: 9.012 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.135e-05/0.01761, allocations: 4.188 kB / 281.4 MB, free: 9.008 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.833e-05/0.01767, allocations: 24.38 kB / 281.4 MB, free: 8.984 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.809e-05/0.01769, allocations: 19.94 kB / 281.5 MB, free: 8.965 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005127/0.0182, allocations: 262.2 kB / 281.7 MB, free: 8.707 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002906/0.02111, allocations: 1.773 MB / 283.5 MB, free: 6.859 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005709/0.02168, allocations: 301.6 kB / 283.8 MB, free: 6.551 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002324/0.02191, allocations: 133.1 kB / 283.9 MB, free: 6.418 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.309e-05/0.02195, allocations: 8.5 kB / 283.9 MB, free: 6.41 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004412/0.0224, allocations: 411.9 kB / 284.3 MB, free: 5.945 MB / 266.7 MB Notification: Performance of pre-optimization done (n=54): time 2.544e-06/0.0224, allocations: 0 / 284.3 MB, free: 5.945 MB / 266.7 MB Notification: Performance of matching and sorting (n=94): time 0.1291/0.1515, allocations: 9.462 MB / 293.8 MB, free: 29.26 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.848e-05/0.1515, allocations: 141.7 kB / 293.9 MB, free: 29.1 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004309/0.152, allocations: 0.532 MB / 294.5 MB, free: 28.92 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.636e-05/0.1521, allocations: 46.42 kB / 294.5 MB, free: 28.89 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002095/0.1523, allocations: 452 kB / 294.9 MB, free: 28.65 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001843/0.1525, allocations: 326 kB / 295.3 MB, free: 28.44 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002578/0.1527, allocations: 194 kB / 295.4 MB, free: 28.41 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.1528, allocations: 0.5639 MB / 296 MB, free: 27.92 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003886/0.1532, allocations: 279.1 kB / 296.3 MB, free: 27.86 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005018/0.1537, allocations: 0.6712 MB / 297 MB, free: 27.34 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008025/0.1545, allocations: 0.8674 MB / 297.8 MB, free: 26.93 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5e-06/0.1545, allocations: 1.375 kB / 297.8 MB, free: 26.93 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.007735/0.1623, allocations: 3.364 MB / 301.2 MB, free: 26.57 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.401e-05/0.1623, allocations: 69.72 kB / 301.3 MB, free: 26.51 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.396e-05/0.1623, allocations: 9.703 kB / 301.3 MB, free: 26.51 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01242/0.1747, allocations: 5.159 MB / 306.4 MB, free: 24.09 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002465/0.175, allocations: 126.4 kB / 306.5 MB, free: 23.97 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00196/0.1769, allocations: 2.56 MB / 309.1 MB, free: 21.54 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00057/0.1775, allocations: 124.4 kB / 309.2 MB, free: 21.43 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.652e-05/0.1776, allocations: 36.23 kB / 309.3 MB, free: 21.4 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.0002079/0.1778, allocations: 227.7 kB / 309.5 MB, free: 21.2 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001227/0.1779, allocations: 111.2 kB / 309.6 MB, free: 21.1 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00699/0.1849, allocations: 3.03 MB / 312.6 MB, free: 18.07 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.05e-05/0.1849, allocations: 12 kB / 312.6 MB, free: 18.06 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.044e-06/0.1849, allocations: 0 / 312.6 MB, free: 18.06 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.488e-06/0.1849, allocations: 13.8 kB / 312.7 MB, free: 18.05 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005329/0.1854, allocations: 0.6078 MB / 313.3 MB, free: 17.48 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.419e-06/0.1854, allocations: 0 / 313.3 MB, free: 17.48 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001629/0.1856, allocations: 59.89 kB / 313.3 MB, free: 17.43 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01234/0.198, allocations: 5.112 MB / 318.4 MB, free: 12.31 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.636e-05/0.198, allocations: 27.91 kB / 318.5 MB, free: 12.29 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001654/0.1997, allocations: 2.495 MB / 321 MB, free: 9.762 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.1997, allocations: 3.938 kB / 321 MB, free: 9.758 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006838/0.2065, allocations: 3.273 MB / 324.2 MB, free: 6.48 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.507e-05/0.2066, allocations: 75.42 kB / 324.3 MB, free: 6.406 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.128e-05/0.2067, allocations: 19.83 kB / 324.3 MB, free: 6.391 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004333/0.2071, allocations: 103.9 kB / 324.4 MB, free: 6.289 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001372/0.2072, allocations: 92.86 kB / 324.5 MB, free: 6.199 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.438e-05/0.2073, allocations: 31.91 kB / 324.5 MB, free: 6.168 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001271/0.2074, allocations: 321.3 kB / 324.9 MB, free: 5.875 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2074, allocations: 0 / 324.9 MB, free: 5.875 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000451/0.2079, allocations: 260 kB / 325.1 MB, free: 5.621 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.0001608/0.208, allocations: 127.7 kB / 325.2 MB, free: 5.492 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001623/0.2096, allocations: 1.195 MB / 326.4 MB, free: 4.27 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.2096, allocations: 4 kB / 326.4 MB, free: 4.266 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008887/0.2105, allocations: 0.6028 MB / 327 MB, free: 3.676 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003968/0.2109, allocations: 151.8 kB / 327.2 MB, free: 3.535 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00166/0.2126, allocations: 1.451 MB / 328.6 MB, free: 2.074 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.205e-05/0.2127, allocations: 156 kB / 328.8 MB, free: 1.902 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001334/0.2128, allocations: 61.19 kB / 328.8 MB, free: 1.844 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002246/0.213, allocations: 198.1 kB / 329 MB, free: 1.648 MB / 266.7 MB Notification: Performance of SimCode: time 7.61e-07/0.213, allocations: 0 / 329 MB, free: 1.648 MB / 266.7 MB Notification: Performance of Templates: time 0.02097/0.234, allocations: 19.96 MB / 349 MB, free: 13.94 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.4398677367717028]