Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008518/0.0008518, allocations: 87.62 kB / 21.44 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.003513/0.003513, allocations: 160.2 kB / 24.7 MB, free: 9.426 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8474/0.8474, allocations: 177.1 MB / 205 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.432e-06/1.432e-06, allocations: 0 / 325.8 MB, free: 15.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.894e-05/2.037e-05, allocations: 2.281 kB / 325.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.001707/0.001727, allocations: 1.598 MB / 327.4 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006016/0.002329, allocations: 0.5303 MB / 327.9 MB, free: 13.31 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.611e-05/0.002375, allocations: 0 / 327.9 MB, free: 13.31 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.111e-05/0.002416, allocations: 15.86 kB / 328 MB, free: 13.29 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.498e-05/0.002471, allocations: 31.7 kB / 328 MB, free: 13.26 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001915/0.002662, allocations: 35.89 kB / 328 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001144/0.002777, allocations: 99.47 kB / 328.1 MB, free: 13.13 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001069/0.002884, allocations: 23.97 kB / 328.1 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.429e-05/0.002938, allocations: 55.89 kB / 328.2 MB, free: 13.05 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.567e-05/0.003004, allocations: 31.89 kB / 328.2 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.57e-05/0.003019, allocations: 8 kB / 328.2 MB, free: 13.01 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.067e-05/0.00308, allocations: 15.94 kB / 328.3 MB, free: 13 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.871e-05/0.003099, allocations: 19.97 kB / 328.3 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.773e-05/0.003126, allocations: 27.94 kB / 328.3 MB, free: 12.95 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001322/0.003259, allocations: 107.7 kB / 328.4 MB, free: 12.84 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.643e-06/0.00326, allocations: 0 / 328.4 MB, free: 12.84 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.003261, allocations: 4 kB / 328.4 MB, free: 12.84 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.937e-06/0.003265, allocations: 0 / 328.4 MB, free: 12.84 MB / 298.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.0003531/0.003618, allocations: 298.2 kB / 328.7 MB, free: 12.52 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.13e-05/0.003649, allocations: 12.03 kB / 328.7 MB, free: 12.51 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.303e-05/0.003732, allocations: 12.88 kB / 328.7 MB, free: 12.5 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.955e-05/0.003812, allocations: 117.7 kB / 328.8 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.38e-05/0.003826, allocations: 4.375 kB / 328.8 MB, free: 12.35 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.485e-05/0.003851, allocations: 12.38 kB / 328.9 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000123/0.003974, allocations: 86.16 kB / 328.9 MB, free: 12.25 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.003985, allocations: 4.188 kB / 328.9 MB, free: 12.25 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.007e-05/0.003995, allocations: 4.375 kB / 328.9 MB, free: 12.24 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.003999, allocations: 3.938 kB / 329 MB, free: 12.24 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.118e-05/0.00408, allocations: 51.97 kB / 329 MB, free: 12.19 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004358/0.004516, allocations: 324.2 kB / 329.3 MB, free: 11.84 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.975e-05/0.004616, allocations: 66.55 kB / 329.4 MB, free: 11.77 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.691e-05/0.004653, allocations: 36.78 kB / 329.4 MB, free: 11.73 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.728e-06/0.004663, allocations: 0 / 329.4 MB, free: 11.73 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.031e-05/0.004683, allocations: 42.5 kB / 329.5 MB, free: 11.68 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 7.91e-07/0.004684, allocations: 3.938 kB / 329.5 MB, free: 11.67 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001586/0.004842, allocations: 81.67 kB / 329.5 MB, free: 11.59 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.825e-05/0.004871, allocations: 55.41 kB / 329.6 MB, free: 11.52 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.504e-05/0.004926, allocations: 117.9 kB / 329.7 MB, free: 11.39 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.718e-06/0.004935, allocations: 25.7 kB / 329.7 MB, free: 11.36 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.226e-05/0.004978, allocations: 96.05 kB / 329.8 MB, free: 11.27 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.685e-05/0.004994, allocations: 31.73 kB / 329.9 MB, free: 11.23 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.108e-05/0.005025, allocations: 25.72 kB / 329.9 MB, free: 11.2 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.184e-05/0.005097, allocations: 318.8 kB / 330.2 MB, free: 10.88 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.958e-05/0.005127, allocations: 24 kB / 330.2 MB, free: 10.86 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.92e-05/0.005166, allocations: 46.5 kB / 330.3 MB, free: 10.8 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.523e-05/0.005231, allocations: 70.72 kB / 330.3 MB, free: 10.73 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.005233, allocations: 0 / 330.3 MB, free: 10.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 9.89e-05/0.005332, allocations: 109.5 kB / 330.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.408e-05/0.005346, allocations: 4 kB / 330.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.005352, allocations: 0 / 330.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.005366, allocations: 4 kB / 330.5 MB, free: 10.61 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.592e-05/0.005462, allocations: 27.98 kB / 330.5 MB, free: 10.58 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.659e-06/0.005467, allocations: 4 kB / 330.5 MB, free: 10.57 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.337e-05/0.00549, allocations: 11.94 kB / 330.5 MB, free: 10.56 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.911e-06/0.005496, allocations: 4.188 kB / 330.5 MB, free: 10.56 MB / 298.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.217e-05/0.005548, allocations: 113.8 kB / 330.6 MB, free: 10.44 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.191e-05/0.00556, allocations: 7.953 kB / 330.6 MB, free: 10.43 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.081e-05/0.005581, allocations: 12.42 kB / 330.6 MB, free: 10.42 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.005585, allocations: 8 kB / 330.6 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.005588, allocations: 0 / 330.6 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.00559, allocations: 0 / 330.6 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001064/0.005697, allocations: 133.2 kB / 330.8 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.005697, allocations: 4 kB / 330.8 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.568e-05/0.005753, allocations: 23.92 kB / 330.8 MB, free: 10.22 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.005755, allocations: 7.984 kB / 330.8 MB, free: 10.21 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.493e-06/0.005762, allocations: 0 / 330.8 MB, free: 10.21 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.31e-07/0.005763, allocations: 0 / 330.8 MB, free: 10.21 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.61e-07/0.005763, allocations: 0 / 330.8 MB, free: 10.21 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001361/0.005899, allocations: 195.4 kB / 331 MB, free: 10.01 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.955e-06/0.005907, allocations: 11.92 kB / 331 MB, free: 9.996 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.087e-06/0.005916, allocations: 0 / 331 MB, free: 9.996 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.876e-05/0.005945, allocations: 3.938 kB / 331 MB, free: 9.992 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.36e-05/0.005959, allocations: 8.047 kB / 331 MB, free: 9.984 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.955e-06/0.005962, allocations: 11.94 kB / 331 MB, free: 9.973 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.419e-05/0.005986, allocations: 83.28 kB / 331.1 MB, free: 9.891 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005986, allocations: 0 / 331.1 MB, free: 9.891 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001498/0.006136, allocations: 20 kB / 331.1 MB, free: 9.871 MB / 298.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.485e-05/0.0062, allocations: 99.23 kB / 331.2 MB, free: 9.762 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.433e-05/0.006295, allocations: 63.78 kB / 331.3 MB, free: 9.699 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.082e-06/0.006296, allocations: 0 / 331.3 MB, free: 9.699 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.027e-05/0.006316, allocations: 20 kB / 331.3 MB, free: 9.68 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001775/0.006494, allocations: 12.11 kB / 331.3 MB, free: 9.668 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000373/0.006867, allocations: 291 kB / 331.6 MB, free: 9.352 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.694e-05/0.006914, allocations: 79.08 kB / 331.7 MB, free: 9.254 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.295e-05/0.006937, allocations: 12.5 kB / 331.7 MB, free: 9.242 MB / 298.7 MB Notification: Performance of SimCode: time 4.01e-07/0.006937, allocations: 0 / 331.7 MB, free: 9.242 MB / 298.7 MB Notification: Performance of Templates: time 0.001497/0.008434, allocations: 1.016 MB / 332.7 MB, free: 8.223 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & ./Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/HeatTransfer/Examples/TwoMasses/TwoMasses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.085343205370009]