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.001152/0.001152, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001646/0.002798, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.00105/0.00105, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001447/0.002497, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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.9974/0.9974, allocations: 173.4 MB / 185.9 MB, free: 8.922 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.125/1.122, allocations: 52.5 MB / 238.4 MB, free: 4.363 MB / 234.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.653e-06/1.653e-06, allocations: 0 / 239.8 MB, free: 3.051 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.41e-05/2.575e-05, allocations: 3.297 kB / 239.8 MB, free: 3.047 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.004497/0.004523, allocations: 4.836 MB / 244.6 MB, free: 14.19 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002974/0.007497, allocations: 1.302 MB / 245.9 MB, free: 12.88 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006053/0.008102, allocations: 15.88 kB / 245.9 MB, free: 12.86 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003094/0.008411, allocations: 130.7 kB / 246 MB, free: 12.73 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005845/0.008996, allocations: 269.5 kB / 246.3 MB, free: 12.47 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007814/0.009777, allocations: 311.4 kB / 246.6 MB, free: 12.16 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001415/0.01119, allocations: 1.138 MB / 247.7 MB, free: 11.02 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003239/0.01152, allocations: 193 kB / 247.9 MB, free: 10.81 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008363/0.01235, allocations: 0.685 MB / 248.6 MB, free: 10.12 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004509/0.0128, allocations: 374.9 kB / 249 MB, free: 9.758 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001156/0.01292, allocations: 88 kB / 249.1 MB, free: 9.672 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002478/0.01317, allocations: 119.9 kB / 249.2 MB, free: 9.555 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001153/0.01328, allocations: 143.5 kB / 249.3 MB, free: 9.414 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002421/0.01352, allocations: 255.5 kB / 249.6 MB, free: 9.164 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007324/0.01426, allocations: 0.6423 MB / 250.2 MB, free: 8.52 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.033e-05/0.01428, allocations: 0 / 250.2 MB, free: 8.52 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.515e-06/0.01428, allocations: 0 / 250.2 MB, free: 8.52 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.395e-05/0.0143, allocations: 0 / 250.2 MB, free: 8.52 MB / 250.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.001729/0.01603, allocations: 1.317 MB / 251.5 MB, free: 7.16 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.825e-05/0.01608, allocations: 12.03 kB / 251.5 MB, free: 7.148 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000157/0.01624, allocations: 116.8 kB / 251.7 MB, free: 7.035 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005176/0.01676, allocations: 353.4 kB / 252 MB, free: 6.664 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.261e-05/0.0168, allocations: 49.67 kB / 252.1 MB, free: 6.613 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.312e-05/0.01689, allocations: 68.38 kB / 252.1 MB, free: 6.547 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000659/0.01755, allocations: 0.5625 MB / 252.7 MB, free: 5.945 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.145e-05/0.01757, allocations: 192 / 252.7 MB, free: 5.945 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.436e-05/0.01762, allocations: 28.38 kB / 252.7 MB, free: 5.918 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.637e-05/0.01763, allocations: 19.94 kB / 252.7 MB, free: 5.898 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000322/0.01795, allocations: 218.2 kB / 252.9 MB, free: 5.684 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002204/0.02016, allocations: 1.473 MB / 254.4 MB, free: 4.145 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008384/0.021, allocations: 256.4 kB / 254.7 MB, free: 3.887 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001393/0.02114, allocations: 114.3 kB / 254.8 MB, free: 3.773 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.706e-05/0.02118, allocations: 12.48 kB / 254.8 MB, free: 3.762 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003902/0.02157, allocations: 391 kB / 255.2 MB, free: 3.32 MB / 250.7 MB Notification: Performance of pre-optimization done (n=54): time 4.248e-06/0.02158, allocations: 0 / 255.2 MB, free: 3.32 MB / 250.7 MB Notification: Performance of matching and sorting (n=94): time 0.02663/0.04821, allocations: 11.05 MB / 266.2 MB, free: 8.195 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.403e-05/0.04828, allocations: 72.39 kB / 266.3 MB, free: 8.113 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004817/0.04877, allocations: 478.9 kB / 266.8 MB, free: 7.637 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001616/0.04893, allocations: 49.7 kB / 266.8 MB, free: 7.582 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002181/0.04915, allocations: 333.9 kB / 267.1 MB, free: 7.246 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000266/0.04941, allocations: 325.2 kB / 267.5 MB, free: 6.926 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002344/0.04965, allocations: 186.4 kB / 267.6 MB, free: 6.738 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.04981, allocations: 390.6 kB / 268 MB, free: 6.348 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003242/0.05013, allocations: 245.6 kB / 268.3 MB, free: 6.098 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007948/0.05093, allocations: 0.5535 MB / 268.8 MB, free: 5.426 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007378/0.05166, allocations: 0.7713 MB / 269.6 MB, free: 4.555 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.172e-06/0.05167, allocations: 4 kB / 269.6 MB, free: 4.551 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.007089/0.05876, allocations: 3.113 MB / 272.7 MB, free: 1.398 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001215/0.05888, allocations: 71.39 kB / 272.8 MB, free: 1.316 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.343e-05/0.0589, allocations: 4 kB / 272.8 MB, free: 1.312 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1444/0.2033, allocations: 5.15 MB / 277.9 MB, free: 25.57 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004192/0.2037, allocations: 137.7 kB / 278.1 MB, free: 25.57 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009475/0.2132, allocations: 5.45 MB / 283.5 MB, free: 23.69 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008545/0.214, allocations: 118.4 kB / 283.6 MB, free: 23.69 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.668e-05/0.2141, allocations: 37.08 kB / 283.7 MB, free: 23.69 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.0002779/0.2144, allocations: 174.6 kB / 283.8 MB, free: 23.57 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001487/0.2145, allocations: 85 kB / 283.9 MB, free: 23.57 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006392/0.2209, allocations: 2.836 MB / 286.8 MB, free: 23.43 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.398e-06/0.2209, allocations: 7.5 kB / 286.8 MB, free: 23.43 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.2209, allocations: 7.875 kB / 286.8 MB, free: 23.43 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.295e-05/0.2209, allocations: 3.891 kB / 286.8 MB, free: 23.43 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006077/0.2215, allocations: 0.5143 MB / 287.3 MB, free: 23.36 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.858e-06/0.2215, allocations: 0 / 287.3 MB, free: 23.36 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001972/0.2217, allocations: 75.52 kB / 287.4 MB, free: 23.35 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.65e-05/0.2218, allocations: 66.66 kB / 287.4 MB, free: 23.35 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0117/0.2335, allocations: 5.12 MB / 292.5 MB, free: 20.6 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001086/0.2336, allocations: 23.22 kB / 292.6 MB, free: 20.59 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007323/0.2409, allocations: 5.307 MB / 297.9 MB, free: 15.34 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.2409, allocations: 3.188 kB / 297.9 MB, free: 15.34 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006079/0.247, allocations: 3.049 MB / 300.9 MB, free: 12.33 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001327/0.2471, allocations: 16.89 kB / 300.9 MB, free: 12.31 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000427/0.2476, allocations: 107.9 kB / 301 MB, free: 12.21 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002433/0.2478, allocations: 108.8 kB / 301.2 MB, free: 12.1 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.396e-05/0.2479, allocations: 28.22 kB / 301.2 MB, free: 12.07 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001494/0.248, allocations: 211 kB / 301.4 MB, free: 11.89 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.248, allocations: 0 / 301.4 MB, free: 11.89 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0008231/0.2488, allocations: 356 kB / 301.7 MB, free: 11.55 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.0001931/0.249, allocations: 117.4 kB / 301.8 MB, free: 11.43 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001771/0.2508, allocations: 1.378 MB / 303.2 MB, free: 10.04 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.047e-05/0.2508, allocations: 24.14 kB / 303.3 MB, free: 10.02 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009788/0.2518, allocations: 0.8444 MB / 304.1 MB, free: 9.188 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005453/0.2524, allocations: 1.262 MB / 305.4 MB, free: 7.699 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004116/0.2565, allocations: 1.482 MB / 306.8 MB, free: 6.223 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001101/0.2566, allocations: 183.7 kB / 307 MB, free: 6.023 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001502/0.2567, allocations: 56.81 kB / 307.1 MB, free: 5.969 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002238/0.257, allocations: 173.3 kB / 307.2 MB, free: 5.797 MB / 266.7 MB Notification: Performance of SimCode: time 1.062e-06/0.257, allocations: 0 / 307.2 MB, free: 5.797 MB / 266.7 MB Notification: Performance of Templates: time 0.0284/0.2854, allocations: 29.6 MB / 336.8 MB, free: 8.434 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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.581653547473252]