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.0009093/0.0009093, allocations: 72.08 kB / 21.69 MB, free: 2.859 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.0009288/0.0009288, allocations: 143.8 kB / 24.98 MB, free: 8.324 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.9089/0.9089, allocations: 173.3 MB / 201.5 MB, free: 9.332 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.353e-06/1.353e-06, allocations: 3.938 kB / 268 MB, free: 6.762 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.785e-05/1.921e-05, allocations: 6.312 kB / 268 MB, free: 6.754 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.002098/0.002117, allocations: 1.664 MB / 269.7 MB, free: 5.078 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006214/0.002739, allocations: 0.5065 MB / 270.2 MB, free: 4.566 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.986e-05/0.002789, allocations: 4 kB / 270.2 MB, free: 4.562 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 4.267e-05/0.002831, allocations: 11.86 kB / 270.2 MB, free: 4.551 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 6.238e-05/0.002894, allocations: 31.7 kB / 270.3 MB, free: 4.52 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000193/0.003087, allocations: 27.89 kB / 270.3 MB, free: 4.492 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001201/0.003207, allocations: 103.5 kB / 270.4 MB, free: 4.391 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001102/0.003317, allocations: 31.97 kB / 270.4 MB, free: 4.359 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.044e-05/0.003388, allocations: 59.88 kB / 270.5 MB, free: 4.301 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.592e-05/0.003463, allocations: 23.97 kB / 270.5 MB, free: 4.277 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.711e-05/0.003481, allocations: 11.94 kB / 270.5 MB, free: 4.266 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.456e-05/0.003545, allocations: 15.94 kB / 270.5 MB, free: 4.25 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.173e-05/0.003567, allocations: 23.91 kB / 270.6 MB, free: 4.227 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.311e-05/0.0036, allocations: 27.94 kB / 270.6 MB, free: 4.199 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001269/0.003727, allocations: 63.81 kB / 270.6 MB, free: 4.137 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.00373, allocations: 3.984 kB / 270.6 MB, free: 4.133 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.81e-07/0.00373, allocations: 0 / 270.6 MB, free: 4.133 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.478e-06/0.003735, allocations: 4 kB / 270.6 MB, free: 4.129 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.000364/0.004099, allocations: 404.4 kB / 271 MB, free: 3.699 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.539e-05/0.004134, allocations: 8.922 kB / 271.1 MB, free: 3.691 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001255/0.00426, allocations: 24.83 kB / 271.1 MB, free: 3.668 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.93e-05/0.004359, allocations: 128.4 kB / 271.2 MB, free: 3.516 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.658e-05/0.004376, allocations: 8.375 kB / 271.2 MB, free: 3.508 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.175e-05/0.004397, allocations: 4.375 kB / 271.2 MB, free: 3.504 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001122/0.004509, allocations: 70.23 kB / 271.3 MB, free: 3.43 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.004519, allocations: 192 / 271.3 MB, free: 3.43 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.028e-05/0.00453, allocations: 8.359 kB / 271.3 MB, free: 3.422 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.004539, allocations: 7.938 kB / 271.3 MB, free: 3.414 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.274e-05/0.004611, allocations: 31.97 kB / 271.3 MB, free: 3.383 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004599/0.005071, allocations: 375.4 kB / 271.7 MB, free: 2.98 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001009/0.005172, allocations: 66.97 kB / 271.8 MB, free: 2.902 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.814e-05/0.00521, allocations: 27.67 kB / 271.8 MB, free: 2.871 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.925e-06/0.005218, allocations: 4 kB / 271.8 MB, free: 2.867 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.883e-05/0.005237, allocations: 33.39 kB / 271.8 MB, free: 2.824 MB / 250.7 MB Notification: Performance of pre-optimization done (n=8): time 1.062e-06/0.005238, allocations: 4 kB / 271.8 MB, free: 2.82 MB / 250.7 MB Notification: Performance of matching and sorting (n=8): time 0.000157/0.005395, allocations: 77.61 kB / 271.9 MB, free: 2.738 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.733e-05/0.005422, allocations: 55.41 kB / 272 MB, free: 2.672 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.304e-05/0.005495, allocations: 162.1 kB / 272.1 MB, free: 2.496 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.103e-05/0.005507, allocations: 37.69 kB / 272.2 MB, free: 2.453 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.984e-05/0.005556, allocations: 142.7 kB / 272.3 MB, free: 2.309 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.726e-05/0.005574, allocations: 27.73 kB / 272.3 MB, free: 2.281 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.093e-05/0.005605, allocations: 31.38 kB / 272.4 MB, free: 2.242 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.005706, allocations: 0.4961 MB / 272.8 MB, free: 1.734 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.267e-05/0.005728, allocations: 8 kB / 272.9 MB, free: 1.727 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.166e-05/0.00577, allocations: 50.92 kB / 272.9 MB, free: 1.668 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.725e-05/0.005837, allocations: 75.02 kB / 273 MB, free: 1.582 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.005839, allocations: 0 / 273 MB, free: 1.582 MB / 250.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 9.96e-05/0.005938, allocations: 89.58 kB / 273.1 MB, free: 1.488 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.298e-05/0.005951, allocations: 8 kB / 273.1 MB, free: 1.48 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.005956, allocations: 0 / 273.1 MB, free: 1.48 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.214e-05/0.005968, allocations: 0 / 273.1 MB, free: 1.48 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.641e-05/0.006054, allocations: 24.23 kB / 273.1 MB, free: 1.457 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.006061, allocations: 0 / 273.1 MB, free: 1.457 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.596e-05/0.006087, allocations: 19.95 kB / 273.1 MB, free: 1.438 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.386e-06/0.006096, allocations: 11.94 kB / 273.1 MB, free: 1.426 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 5.904e-05/0.006155, allocations: 160.5 kB / 273.3 MB, free: 1.258 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.725e-05/0.006172, allocations: 7.984 kB / 273.3 MB, free: 1.25 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.438e-05/0.006196, allocations: 12.44 kB / 273.3 MB, free: 1.234 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-06/0.006198, allocations: 3.938 kB / 273.3 MB, free: 1.23 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-06/0.006201, allocations: 0 / 273.3 MB, free: 1.23 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.006204, allocations: 0 / 273.3 MB, free: 1.23 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001022/0.006306, allocations: 140.5 kB / 273.4 MB, free: 1.059 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.006307, allocations: 0 / 273.4 MB, free: 1.059 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.884e-05/0.006366, allocations: 23.98 kB / 273.5 MB, free: 1.035 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.006367, allocations: 4 kB / 273.5 MB, free: 1.031 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.208e-05/0.006379, allocations: 0 / 273.5 MB, free: 1.031 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.21e-07/0.00638, allocations: 0 / 273.5 MB, free: 1.031 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.006381, allocations: 0 / 273.5 MB, free: 1.031 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001527/0.006533, allocations: 235.8 kB / 273.7 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.504e-06/0.006541, allocations: 7.891 kB / 273.7 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.152e-05/0.006552, allocations: 4 kB / 273.7 MB, free: 0.7695 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.04e-05/0.006583, allocations: 4 kB / 273.7 MB, free: 0.7656 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.563e-05/0.006598, allocations: 3.984 kB / 273.7 MB, free: 0.7617 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.998e-06/0.006602, allocations: 8.031 kB / 273.7 MB, free: 0.7539 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.498e-05/0.006637, allocations: 127.2 kB / 273.9 MB, free: 0.6289 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.006638, allocations: 0 / 273.9 MB, free: 0.6289 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001576/0.006795, allocations: 16 kB / 273.9 MB, free: 0.6133 MB / 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 7.145e-05/0.006867, allocations: 103.2 kB / 274 MB, free: 0.5039 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001023/0.006969, allocations: 55.53 kB / 274 MB, free: 456 kB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.142e-06/0.00697, allocations: 0 / 274 MB, free: 456 kB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 3.013e-05/0.007, allocations: 36 kB / 274.1 MB, free: 416 kB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001781/0.007178, allocations: 11.19 kB / 274.1 MB, free: 408 kB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000551/0.007729, allocations: 282.2 kB / 274.3 MB, free: 92 kB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.311e-05/0.007762, allocations: 59.36 kB / 274.4 MB, free: 12 kB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.475e-05/0.007787, allocations: 7.984 kB / 274.4 MB, free: 4 kB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.295e-05/0.00782, allocations: 12.5 kB / 274.4 MB, free: 15.99 MB / 266.7 MB Notification: Performance of SimCode: time 1.011e-06/0.007821, allocations: 0 / 274.4 MB, free: 15.99 MB / 266.7 MB Notification: Performance of Templates: time 0.00205/0.009871, allocations: 0.6039 MB / 275 MB, free: 15.39 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.480277535971254]