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.0009271/0.0009271, allocations: 76.08 kB / 21.18 MB, free: 3.387 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.000881/0.000881, allocations: 141.1 kB / 24.54 MB, free: 32 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.8991/0.8991, allocations: 173.3 MB / 201.1 MB, free: 9.34 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 2.024e-06/2.024e-06, allocations: 0 / 268 MB, free: 6.469 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.22e-05/2.423e-05, allocations: 6.25 kB / 268 MB, free: 6.461 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.002667/0.002691, allocations: 1.671 MB / 269.6 MB, free: 4.781 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008394/0.00353, allocations: 0.5142 MB / 270.2 MB, free: 4.262 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.362e-05/0.003584, allocations: 0 / 270.2 MB, free: 4.262 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.624e-05/0.00364, allocations: 15.86 kB / 270.2 MB, free: 4.246 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 8.271e-05/0.003723, allocations: 27.72 kB / 270.2 MB, free: 4.219 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002353/0.003958, allocations: 27.95 kB / 270.2 MB, free: 4.191 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001658/0.004124, allocations: 107.4 kB / 270.3 MB, free: 4.086 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001315/0.004256, allocations: 23.98 kB / 270.4 MB, free: 4.062 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.472e-05/0.00433, allocations: 55.94 kB / 270.4 MB, free: 4.008 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.393e-05/0.004424, allocations: 27.92 kB / 270.4 MB, free: 3.98 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.34e-05/0.004448, allocations: 8 kB / 270.4 MB, free: 3.973 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.205e-05/0.00453, allocations: 11.94 kB / 270.5 MB, free: 3.961 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.024e-05/0.00456, allocations: 27.91 kB / 270.5 MB, free: 3.934 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.693e-05/0.004607, allocations: 35.91 kB / 270.5 MB, free: 3.898 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001574/0.004764, allocations: 67.81 kB / 270.6 MB, free: 3.832 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.134e-06/0.004766, allocations: 0 / 270.6 MB, free: 3.832 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.12e-07/0.004767, allocations: 0 / 270.6 MB, free: 3.832 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.004772, allocations: 0 / 270.6 MB, free: 3.832 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.0004615/0.005233, allocations: 408.3 kB / 271 MB, free: 3.398 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.005277, allocations: 12.92 kB / 271 MB, free: 3.387 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000243/0.00552, allocations: 20.83 kB / 271 MB, free: 3.367 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001035/0.005624, allocations: 116.5 kB / 271.1 MB, free: 3.227 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.381e-05/0.005638, allocations: 12.38 kB / 271.1 MB, free: 3.215 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.584e-05/0.005664, allocations: 12.31 kB / 271.2 MB, free: 3.203 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001125/0.005776, allocations: 70.22 kB / 271.2 MB, free: 3.129 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.899e-06/0.005786, allocations: 192 / 271.2 MB, free: 3.129 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.34e-05/0.005799, allocations: 8.375 kB / 271.2 MB, free: 3.121 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.263e-06/0.005807, allocations: 3.938 kB / 271.2 MB, free: 3.117 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.862e-05/0.005875, allocations: 35.97 kB / 271.3 MB, free: 3.082 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004803/0.006356, allocations: 371.4 kB / 271.6 MB, free: 2.684 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001032/0.006459, allocations: 70.98 kB / 271.7 MB, free: 2.602 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.538e-05/0.006494, allocations: 27.67 kB / 271.7 MB, free: 2.57 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.294e-06/0.006501, allocations: 0 / 271.7 MB, free: 2.57 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.434e-05/0.006546, allocations: 37.39 kB / 271.8 MB, free: 2.523 MB / 250.7 MB Notification: Performance of pre-optimization done (n=8): time 8.62e-07/0.006547, allocations: 0 / 271.8 MB, free: 2.523 MB / 250.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001426/0.006689, allocations: 69.69 kB / 271.8 MB, free: 2.449 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.394e-05/0.006713, allocations: 51.41 kB / 271.9 MB, free: 2.387 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.719e-05/0.00678, allocations: 170 kB / 272 MB, free: 2.203 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.056e-05/0.006791, allocations: 29.7 kB / 272.1 MB, free: 2.168 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.025e-05/0.006841, allocations: 146.9 kB / 272.2 MB, free: 2.02 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.857e-05/0.00686, allocations: 39.73 kB / 272.3 MB, free: 1.98 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.304e-05/0.006893, allocations: 35.3 kB / 272.3 MB, free: 1.938 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.007041, allocations: 0.4883 MB / 272.8 MB, free: 1.438 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.186e-05/0.007063, allocations: 11.98 kB / 272.8 MB, free: 1.426 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.922e-05/0.007102, allocations: 47.05 kB / 272.8 MB, free: 1.367 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.081e-05/0.007163, allocations: 59.05 kB / 272.9 MB, free: 1.297 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.007165, allocations: 256 / 272.9 MB, free: 1.297 MB / 250.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 9.62e-05/0.007261, allocations: 97.45 kB / 273 MB, free: 1.195 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/0.007273, allocations: 8.062 kB / 273 MB, free: 1.188 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-06/0.007281, allocations: 8 kB / 273 MB, free: 1.18 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.263e-05/0.007294, allocations: 0 / 273 MB, free: 1.18 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.974e-05/0.007384, allocations: 23.98 kB / 273 MB, free: 1.156 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.007389, allocations: 4 kB / 273 MB, free: 1.152 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.444e-05/0.007414, allocations: 11.89 kB / 273 MB, free: 1.141 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.622e-06/0.00742, allocations: 7.938 kB / 273.1 MB, free: 1.133 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.158e-05/0.007482, allocations: 164.5 kB / 273.2 MB, free: 0.9609 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.428e-05/0.007496, allocations: 4 kB / 273.2 MB, free: 0.957 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.588e-05/0.007522, allocations: 12.42 kB / 273.2 MB, free: 0.9414 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.007524, allocations: 4 kB / 273.2 MB, free: 0.9375 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.007527, allocations: 0 / 273.2 MB, free: 0.9375 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.007532, allocations: 7.984 kB / 273.2 MB, free: 0.9297 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000101/0.007633, allocations: 136.5 kB / 273.4 MB, free: 0.7617 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.41e-07/0.007633, allocations: 0 / 273.4 MB, free: 0.7617 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.987e-05/0.007693, allocations: 19.98 kB / 273.4 MB, free: 0.7422 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.72e-07/0.007694, allocations: 0 / 273.4 MB, free: 0.7422 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.422e-05/0.007708, allocations: 7.938 kB / 273.4 MB, free: 0.7344 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.11e-07/0.007709, allocations: 0 / 273.4 MB, free: 0.7344 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.00771, allocations: 0 / 273.4 MB, free: 0.7344 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000151/0.007861, allocations: 235.8 kB / 273.6 MB, free: 496 kB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.366e-06/0.007869, allocations: 15.92 kB / 273.6 MB, free: 480 kB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.468e-06/0.007879, allocations: 4 kB / 273.7 MB, free: 476 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.789e-05/0.007907, allocations: 0 / 273.7 MB, free: 476 kB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.614e-05/0.007923, allocations: 3.984 kB / 273.7 MB, free: 472 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.276e-06/0.007926, allocations: 4 kB / 273.7 MB, free: 468 kB / 250.7 MB Notification: Performance of sorting global known variables: time 3.398e-05/0.00796, allocations: 127.2 kB / 273.8 MB, free: 340 kB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00796, allocations: 0 / 273.8 MB, free: 340 kB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001495/0.00811, allocations: 20 kB / 273.8 MB, free: 320 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 6.15e-05/0.008171, allocations: 95.25 kB / 273.9 MB, free: 216 kB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001056/0.008277, allocations: 63.53 kB / 274 MB, free: 148 kB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.302e-06/0.008278, allocations: 0 / 274 MB, free: 148 kB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 2.222e-05/0.0083, allocations: 31.61 kB / 274 MB, free: 112 kB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001655/0.008466, allocations: 4.547 kB / 274 MB, free: 108 kB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000527/0.008993, allocations: 270.5 kB / 274.3 MB, free: 15.81 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001416/0.009134, allocations: 59.34 kB / 274.3 MB, free: 15.73 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.574e-05/0.00916, allocations: 11.98 kB / 274.3 MB, free: 15.72 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.251e-05/0.009182, allocations: 12.5 kB / 274.3 MB, free: 15.71 MB / 266.7 MB Notification: Performance of SimCode: time 3.91e-07/0.009183, allocations: 0 / 274.3 MB, free: 15.71 MB / 266.7 MB Notification: Performance of Templates: time 0.002095/0.01128, allocations: 0.6384 MB / 275 MB, free: 15.08 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.4887303030118346]