Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.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.001024/0.001024, allocations: 76.08 kB / 21.18 MB, free: 3.383 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.0009183/0.0009183, allocations: 145.1 kB / 24.54 MB, free: 28 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.9374/0.9374, allocations: 173.3 MB / 201.1 MB, free: 8.973 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.Thermal.HeatTransfer.Examples.TwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|mass1.T|mass2.T",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses") translateModel(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|mass1.T|mass2.T",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.793e-06/1.793e-06, allocations: 0 / 268 MB, free: 6.309 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.854e-05/2.033e-05, allocations: 2.312 kB / 268 MB, free: 6.305 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.001917/0.001937, allocations: 1.658 MB / 269.6 MB, free: 4.637 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.000679/0.002616, allocations: 0.5143 MB / 270.1 MB, free: 4.117 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.613e-05/0.002662, allocations: 4 kB / 270.1 MB, free: 4.113 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 4.511e-05/0.002707, allocations: 15.86 kB / 270.2 MB, free: 4.098 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 6.025e-05/0.002768, allocations: 27.7 kB / 270.2 MB, free: 4.07 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000199/0.002967, allocations: 27.97 kB / 270.2 MB, free: 4.043 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001052/0.003072, allocations: 111.3 kB / 270.3 MB, free: 3.934 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00011/0.003182, allocations: 19.98 kB / 270.3 MB, free: 3.914 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.457e-05/0.003246, allocations: 55.94 kB / 270.4 MB, free: 3.859 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.765e-05/0.003324, allocations: 31.91 kB / 270.4 MB, free: 3.828 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.682e-05/0.003341, allocations: 8 kB / 270.4 MB, free: 3.82 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.236e-05/0.003403, allocations: 15.94 kB / 270.5 MB, free: 3.805 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 1.969e-05/0.003423, allocations: 19.92 kB / 270.5 MB, free: 3.785 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.255e-05/0.003455, allocations: 35.91 kB / 270.5 MB, free: 3.75 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001269/0.003582, allocations: 63.88 kB / 270.6 MB, free: 3.688 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.633e-06/0.003584, allocations: 0 / 270.6 MB, free: 3.688 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.003585, allocations: 0 / 270.6 MB, free: 3.688 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.817e-06/0.003589, allocations: 0 / 270.6 MB, free: 3.688 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0003662/0.003955, allocations: 408.3 kB / 271 MB, free: 3.254 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.00399, allocations: 12.92 kB / 271 MB, free: 3.242 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001159/0.004106, allocations: 24.83 kB / 271 MB, free: 3.219 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.089e-05/0.004197, allocations: 120.5 kB / 271.1 MB, free: 3.074 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.399e-05/0.004211, allocations: 8.375 kB / 271.1 MB, free: 3.066 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.696e-05/0.004238, allocations: 16.36 kB / 271.2 MB, free: 3.051 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001052/0.004343, allocations: 62.23 kB / 271.2 MB, free: 2.984 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.004353, allocations: 192 / 271.2 MB, free: 2.984 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.213e-05/0.004365, allocations: 8.375 kB / 271.2 MB, free: 2.977 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.885e-06/0.004373, allocations: 3.938 kB / 271.2 MB, free: 2.973 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.769e-05/0.004441, allocations: 35.97 kB / 271.3 MB, free: 2.938 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006714/0.005112, allocations: 375.4 kB / 271.6 MB, free: 2.535 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001053/0.005217, allocations: 66.98 kB / 271.7 MB, free: 2.457 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.796e-05/0.005255, allocations: 27.67 kB / 271.7 MB, free: 2.426 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.584e-06/0.005263, allocations: 0 / 271.7 MB, free: 2.426 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.119e-05/0.005284, allocations: 41.39 kB / 271.8 MB, free: 2.375 MB / 250.7 MB Notification: Performance of pre-optimization done (n=8): time 9.52e-07/0.005285, allocations: 0 / 271.8 MB, free: 2.375 MB / 250.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001489/0.005434, allocations: 77.77 kB / 271.8 MB, free: 2.293 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.328e-05/0.005457, allocations: 51.41 kB / 271.9 MB, free: 2.23 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.314e-05/0.00553, allocations: 170 kB / 272.1 MB, free: 2.047 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 9.378e-06/0.00554, allocations: 25.7 kB / 272.1 MB, free: 2.016 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.128e-05/0.005591, allocations: 154.7 kB / 272.2 MB, free: 1.859 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.85e-05/0.00561, allocations: 31.73 kB / 272.3 MB, free: 1.828 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.168e-05/0.005641, allocations: 31.38 kB / 272.3 MB, free: 1.789 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001042/0.005745, allocations: 496.1 kB / 272.8 MB, free: 1.293 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.68e-05/0.005772, allocations: 19.98 kB / 272.8 MB, free: 1.273 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.9e-05/0.005811, allocations: 43.05 kB / 272.8 MB, free: 1.219 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.205e-05/0.005873, allocations: 62.92 kB / 272.9 MB, free: 1.145 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.005875, allocations: 0 / 272.9 MB, free: 1.145 MB / 250.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001082/0.005983, allocations: 101.5 kB / 273 MB, free: 1.039 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.226e-05/0.005995, allocations: 4 kB / 273 MB, free: 1.035 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.006, allocations: 0 / 273 MB, free: 1.035 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.006014, allocations: 0 / 273 MB, free: 1.035 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.238e-05/0.006106, allocations: 23.98 kB / 273 MB, free: 1.012 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.191e-06/0.006112, allocations: 4.25 kB / 273 MB, free: 1.008 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.599e-05/0.006138, allocations: 11.89 kB / 273 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.886e-06/0.006147, allocations: 15.88 kB / 273.1 MB, free: 0.9805 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.679e-05/0.006214, allocations: 160.6 kB / 273.2 MB, free: 0.8125 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.599e-05/0.00623, allocations: 4 kB / 273.2 MB, free: 0.8086 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.725e-05/0.006257, allocations: 12.5 kB / 273.2 MB, free: 0.793 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.522e-06/0.006259, allocations: 0 / 273.2 MB, free: 0.793 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.006265, allocations: 7.984 kB / 273.2 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.006268, allocations: 0 / 273.2 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001755/0.006443, allocations: 140.5 kB / 273.4 MB, free: 0.6133 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.006448, allocations: 0 / 273.4 MB, free: 0.6133 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001287/0.006576, allocations: 23.98 kB / 273.4 MB, free: 0.5898 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.14e-06/0.006581, allocations: 0 / 273.4 MB, free: 0.5898 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.844e-05/0.0066, allocations: 3.938 kB / 273.4 MB, free: 0.5859 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.347e-06/0.006603, allocations: 0 / 273.4 MB, free: 0.5859 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.006606, allocations: 4 kB / 273.4 MB, free: 0.582 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002424/0.006848, allocations: 239.8 kB / 273.6 MB, free: 336 kB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.913e-05/0.006867, allocations: 11.89 kB / 273.6 MB, free: 324 kB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.416e-05/0.006882, allocations: 0 / 273.6 MB, free: 324 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.523e-05/0.006967, allocations: 0 / 273.6 MB, free: 324 kB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.74e-05/0.007024, allocations: 11.98 kB / 273.7 MB, free: 312 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.711e-06/0.00703, allocations: 0 / 273.7 MB, free: 312 kB / 250.7 MB Notification: Performance of sorting global known variables: time 5.114e-05/0.007081, allocations: 123.2 kB / 273.8 MB, free: 188 kB / 250.7 MB Notification: Performance of sort global known variables: time 8e-08/0.007081, allocations: 0 / 273.8 MB, free: 188 kB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001731/0.007254, allocations: 24 kB / 273.8 MB, free: 164 kB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (mass1.T,mass2.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.925e-05/0.007344, allocations: 99.22 kB / 273.9 MB, free: 56 kB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001352/0.007479, allocations: 55.64 kB / 274 MB, free: 15.99 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.00748, allocations: 0 / 274 MB, free: 15.99 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.458e-05/0.007505, allocations: 31.56 kB / 274 MB, free: 15.96 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002152/0.00772, allocations: 8 kB / 274 MB, free: 15.95 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000839/0.008559, allocations: 270.4 kB / 274.3 MB, free: 15.66 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.948e-05/0.008599, allocations: 59.34 kB / 274.3 MB, free: 15.58 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.401e-05/0.008633, allocations: 11.98 kB / 274.3 MB, free: 15.57 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.104e-05/0.008664, allocations: 12.5 kB / 274.3 MB, free: 15.55 MB / 266.7 MB Notification: Performance of SimCode: time 1.353e-06/0.008665, allocations: 0 / 274.3 MB, free: 15.55 MB / 266.7 MB Notification: Performance of Templates: time 0.002457/0.01112, allocations: 0.6227 MB / 275 MB, free: 14.94 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & ./Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/HeatTransfer/Examples/TwoMasses/TwoMasses.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: 2.774344260338694]