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.001641/0.001641, allocations: 111 kB / 21.18 MB, free: 0.6641 MB / 14.72 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.002249/0.002249, allocations: 207.5 kB / 24.48 MB, free: 3.969 MB / 14.72 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 2.004/2.004, allocations: 230.6 MB / 258.2 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] 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 0.002426/0.002426, allocations: 43.94 kB / 378.9 MB, free: 2.605 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3577/0.3602, allocations: 53.37 MB / 432.3 MB, free: 6.777 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.004322/0.3645, allocations: 1.609 MB / 433.9 MB, free: 5.164 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001459/0.366, allocations: 0.5182 MB / 434.4 MB, free: 4.641 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.597e-05/0.366, allocations: 0 / 434.4 MB, free: 4.641 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.54e-05/0.3661, allocations: 19.86 kB / 434.5 MB, free: 4.621 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001138/0.3662, allocations: 27.77 kB / 434.5 MB, free: 4.594 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002446/0.3664, allocations: 27.91 kB / 434.5 MB, free: 4.566 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000202/0.3666, allocations: 99.53 kB / 434.6 MB, free: 4.469 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001511/0.3668, allocations: 27.97 kB / 434.6 MB, free: 4.441 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.342e-05/0.3669, allocations: 35.92 kB / 434.7 MB, free: 4.406 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001143/0.367, allocations: 35.86 kB / 434.7 MB, free: 4.371 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.794e-05/0.367, allocations: 8 kB / 434.7 MB, free: 4.363 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.41e-05/0.3671, allocations: 19.92 kB / 434.7 MB, free: 4.344 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.605e-05/0.3671, allocations: 23.94 kB / 434.8 MB, free: 4.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.829e-05/0.3672, allocations: 39.84 kB / 434.8 MB, free: 4.281 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002371/0.3674, allocations: 101.3 kB / 434.9 MB, free: 4.188 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.3675, allocations: 0 / 434.9 MB, free: 4.188 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3675, allocations: 0 / 434.9 MB, free: 4.188 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.52e-06/0.3675, allocations: 4 kB / 434.9 MB, free: 4.184 MB / 334.1 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.0006383/0.3681, allocations: 298.1 kB / 435.2 MB, free: 3.863 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.567e-05/0.3681, allocations: 12.03 kB / 435.2 MB, free: 3.852 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000184/0.3683, allocations: 8.891 kB / 435.2 MB, free: 3.844 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001577/0.3685, allocations: 118.4 kB / 435.3 MB, free: 3.703 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.024e-05/0.3685, allocations: 8.375 kB / 435.3 MB, free: 3.695 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.927e-05/0.3685, allocations: 8.375 kB / 435.3 MB, free: 3.688 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003085/0.3689, allocations: 97.89 kB / 435.4 MB, free: 3.586 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.871e-05/0.3689, allocations: 0 / 435.4 MB, free: 3.586 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.576e-05/0.3689, allocations: 0 / 435.4 MB, free: 3.586 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/0.3689, allocations: 4 kB / 435.4 MB, free: 3.582 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001959/0.3691, allocations: 51.97 kB / 435.5 MB, free: 3.531 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009561/0.37, allocations: 328.2 kB / 435.8 MB, free: 3.18 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000217/0.3703, allocations: 66.56 kB / 435.9 MB, free: 3.105 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.32e-05/0.3704, allocations: 32.84 kB / 435.9 MB, free: 3.07 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.621e-05/0.3704, allocations: 0 / 435.9 MB, free: 3.07 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.2e-05/0.3704, allocations: 38.5 kB / 435.9 MB, free: 3.023 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.673e-06/0.3704, allocations: 3.938 kB / 435.9 MB, free: 3.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003352/0.3708, allocations: 81.92 kB / 436 MB, free: 2.934 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.17e-05/0.3708, allocations: 59.34 kB / 436.1 MB, free: 2.863 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001264/0.371, allocations: 117.9 kB / 436.2 MB, free: 2.738 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.522e-05/0.371, allocations: 25.7 kB / 436.2 MB, free: 2.707 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001009/0.3711, allocations: 104 kB / 436.3 MB, free: 2.602 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.374e-05/0.3711, allocations: 31.89 kB / 436.4 MB, free: 2.57 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.713e-05/0.3712, allocations: 33.7 kB / 436.4 MB, free: 2.531 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001759/0.3714, allocations: 310.8 kB / 436.7 MB, free: 2.219 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.918e-05/0.3715, allocations: 23.98 kB / 436.7 MB, free: 2.195 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001194/0.3716, allocations: 50.5 kB / 436.8 MB, free: 2.137 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001685/0.3717, allocations: 62.58 kB / 436.8 MB, free: 2.066 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.3717, allocations: 0 / 436.8 MB, free: 2.066 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002773/0.372, allocations: 109.5 kB / 436.9 MB, free: 1.953 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.372, allocations: 7.938 kB / 436.9 MB, free: 1.945 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.372, allocations: 4.141 kB / 436.9 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.242e-05/0.3721, allocations: 4 kB / 436.9 MB, free: 1.938 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002458/0.3723, allocations: 27.92 kB / 437 MB, free: 1.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.321e-05/0.3723, allocations: 7.922 kB / 437 MB, free: 1.902 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.673e-05/0.3724, allocations: 15.89 kB / 437 MB, free: 1.887 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.808e-06/0.3724, allocations: 0 / 437 MB, free: 1.887 MB / 334.1 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 0.0001328/0.3726, allocations: 113.8 kB / 437.1 MB, free: 1.766 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.54e-05/0.3726, allocations: 4 kB / 437.1 MB, free: 1.762 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.912e-05/0.3727, allocations: 12.38 kB / 437.1 MB, free: 1.746 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.3727, allocations: 4 kB / 437.1 MB, free: 1.742 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/0.3727, allocations: 7.938 kB / 437.1 MB, free: 1.734 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.3727, allocations: 0 / 437.1 MB, free: 1.734 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000269/0.3729, allocations: 121.3 kB / 437.3 MB, free: 1.586 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.3729, allocations: 3.938 kB / 437.3 MB, free: 1.582 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001824/0.3731, allocations: 16 kB / 437.3 MB, free: 1.566 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.098e-06/0.3731, allocations: 4 kB / 437.3 MB, free: 1.562 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.238e-05/0.3731, allocations: 0 / 437.3 MB, free: 1.562 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.3731, allocations: 0 / 437.3 MB, free: 1.562 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3731, allocations: 0 / 437.3 MB, free: 1.562 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003471/0.3735, allocations: 199.4 kB / 437.5 MB, free: 1.352 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.137e-05/0.3735, allocations: 15.98 kB / 437.5 MB, free: 1.336 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.77e-05/0.3735, allocations: 3.984 kB / 437.5 MB, free: 1.332 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001113/0.3737, allocations: 4 kB / 437.5 MB, free: 1.328 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.586e-05/0.3737, allocations: 11.88 kB / 437.5 MB, free: 1.316 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.923e-06/0.3737, allocations: 0 / 437.5 MB, free: 1.316 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.006e-05/0.3738, allocations: 95.45 kB / 437.6 MB, free: 1.223 MB / 334.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3738, allocations: 4 kB / 437.6 MB, free: 1.219 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004639/0.3742, allocations: 16 kB / 437.6 MB, free: 1.203 MB / 334.1 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 0.0001527/0.3744, allocations: 99.25 kB / 437.7 MB, free: 1.098 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002291/0.3746, allocations: 55.92 kB / 437.8 MB, free: 1.043 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.3746, allocations: 0 / 437.8 MB, free: 1.043 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.487e-05/0.3747, allocations: 19.98 kB / 437.8 MB, free: 1.023 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005153/0.3752, allocations: 15.92 kB / 437.8 MB, free: 1.008 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001024/0.3762, allocations: 311.3 kB / 438.1 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001164/0.3763, allocations: 87.12 kB / 438.2 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.876e-05/0.3764, allocations: 11.94 kB / 438.2 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.386e-05/0.3765, allocations: 11.44 kB / 438.2 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3765, allocations: 0 / 438.2 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of Templates: time 0.004837/0.3813, allocations: 0.7208 MB / 438.9 MB, free: 15.84 MB / 350.1 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/HeatTransfer/Examples/TwoMasses/TwoMasses.csv","/var/lib/jenkins1/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: 6.347212352004135]