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.001686/0.001686, allocations: 114.9 kB / 19.04 MB, free: 3.281 MB / 14.72 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.002189/0.002189, allocations: 190 kB / 22.21 MB, free: 112 kB / 14.72 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 1.392/1.392, allocations: 225.6 MB / 250.8 MB, free: 13.41 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001473/0.001473, allocations: 55.91 kB / 368.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2479/0.2493, allocations: 52.14 MB / 420.8 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.002748/0.2521, allocations: 1.632 MB / 422.5 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008838/0.253, allocations: 0.5319 MB / 423 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.625e-05/0.253, allocations: 0 / 423 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.135e-05/0.2531, allocations: 11.86 kB / 423 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.862e-05/0.2531, allocations: 27.78 kB / 423.1 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001966/0.2533, allocations: 35.83 kB / 423.1 MB, free: 13 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001489/0.2535, allocations: 99.53 kB / 423.2 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001163/0.2536, allocations: 27.97 kB / 423.2 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.755e-05/0.2536, allocations: 31.92 kB / 423.2 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.749e-05/0.2537, allocations: 43.8 kB / 423.3 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.751e-05/0.2537, allocations: 8 kB / 423.3 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.654e-05/0.2538, allocations: 12 kB / 423.3 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.161e-05/0.2538, allocations: 15.98 kB / 423.3 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.505e-05/0.2539, allocations: 47.78 kB / 423.4 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001647/0.2541, allocations: 97.17 kB / 423.5 MB, free: 12.62 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2541, allocations: 8 kB / 423.5 MB, free: 12.62 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.12e-07/0.2541, allocations: 0 / 423.5 MB, free: 12.62 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.62e-06/0.2541, allocations: 0 / 423.5 MB, free: 12.62 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.0005032/0.2546, allocations: 383.1 kB / 423.8 MB, free: 12.2 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.578e-05/0.2546, allocations: 8.031 kB / 423.9 MB, free: 12.19 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001211/0.2547, allocations: 12.89 kB / 423.9 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001583/0.2549, allocations: 168.3 kB / 424 MB, free: 11.97 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.584e-05/0.2549, allocations: 8.375 kB / 424 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.993e-05/0.2549, allocations: 12.38 kB / 424 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000178/0.2551, allocations: 93.92 kB / 424.1 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.681e-05/0.2551, allocations: 3.938 kB / 424.1 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.253e-05/0.2551, allocations: 0 / 424.1 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.305e-06/0.2551, allocations: 4 kB / 424.1 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001559/0.2553, allocations: 51.97 kB / 424.2 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006744/0.256, allocations: 400.5 kB / 424.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001383/0.2561, allocations: 74.52 kB / 424.7 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.063e-05/0.2562, allocations: 36.84 kB / 424.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.32e-05/0.2562, allocations: 0 / 424.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.85e-05/0.2562, allocations: 34.55 kB / 424.7 MB, free: 11.19 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 9.22e-07/0.2562, allocations: 0 / 424.7 MB, free: 11.19 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002396/0.2565, allocations: 93.69 kB / 424.8 MB, free: 11.09 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.066e-05/0.2565, allocations: 55.41 kB / 424.9 MB, free: 11.03 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.987e-05/0.2566, allocations: 109.8 kB / 425 MB, free: 10.91 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.123e-05/0.2566, allocations: 29.7 kB / 425 MB, free: 10.88 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.289e-05/0.2567, allocations: 99.97 kB / 425.1 MB, free: 10.77 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.894e-05/0.2567, allocations: 35.7 kB / 425.1 MB, free: 10.74 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.875e-05/0.2568, allocations: 29.7 kB / 425.2 MB, free: 10.7 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.2569, allocations: 318.8 kB / 425.5 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.294e-05/0.2569, allocations: 19.98 kB / 425.5 MB, free: 10.36 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.956e-05/0.257, allocations: 46.56 kB / 425.6 MB, free: 10.31 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001/0.2571, allocations: 66.67 kB / 425.6 MB, free: 10.23 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.2571, allocations: 0 / 425.6 MB, free: 10.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001629/0.2573, allocations: 113.5 kB / 425.7 MB, free: 10.12 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.274e-05/0.2573, allocations: 4 kB / 425.7 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.227e-06/0.2573, allocations: 4.062 kB / 425.7 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/0.2573, allocations: 7.938 kB / 425.7 MB, free: 10.1 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000121/0.2574, allocations: 23.94 kB / 425.8 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.992e-06/0.2574, allocations: 0 / 425.8 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.73e-05/0.2575, allocations: 15.88 kB / 425.8 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.904e-06/0.2575, allocations: 4 kB / 425.8 MB, free: 10.06 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 9.008e-05/0.2576, allocations: 117.8 kB / 425.9 MB, free: 9.934 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.526e-05/0.2576, allocations: 7.953 kB / 425.9 MB, free: 9.926 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.029e-05/0.2576, allocations: 12.38 kB / 425.9 MB, free: 9.914 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.2576, allocations: 7.938 kB / 425.9 MB, free: 9.906 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.2576, allocations: 0 / 425.9 MB, free: 9.906 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-06/0.2576, allocations: 0 / 425.9 MB, free: 9.906 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002077/0.2578, allocations: 189.6 kB / 426.1 MB, free: 9.672 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.2578, allocations: 0 / 426.1 MB, free: 9.672 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001044/0.2579, allocations: 19.98 kB / 426.1 MB, free: 9.652 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.764e-06/0.258, allocations: 3.938 kB / 426.1 MB, free: 9.648 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.186e-05/0.258, allocations: 4 kB / 426.1 MB, free: 9.645 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.258, allocations: 3.938 kB / 426.1 MB, free: 9.641 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.258, allocations: 0 / 426.1 MB, free: 9.641 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000216/0.2582, allocations: 191.5 kB / 426.3 MB, free: 9.438 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.956e-05/0.2582, allocations: 81.11 kB / 426.4 MB, free: 9.34 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.584e-05/0.2582, allocations: 4.031 kB / 426.4 MB, free: 9.336 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.947e-05/0.2583, allocations: 3.938 kB / 426.4 MB, free: 9.332 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.407e-05/0.2583, allocations: 0 / 426.4 MB, free: 9.332 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.012e-06/0.2583, allocations: 4.25 kB / 426.4 MB, free: 9.328 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.212e-05/0.2584, allocations: 91.27 kB / 426.5 MB, free: 9.238 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2584, allocations: 64 / 426.5 MB, free: 9.238 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002493/0.2586, allocations: 39.83 kB / 426.6 MB, free: 9.199 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.0001011/0.2587, allocations: 95.72 kB / 426.6 MB, free: 9.098 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000158/0.2589, allocations: 51.97 kB / 426.7 MB, free: 9.047 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.2589, allocations: 0 / 426.7 MB, free: 9.047 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.688e-05/0.2589, allocations: 31.92 kB / 426.7 MB, free: 9.016 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002856/0.2592, allocations: 7.438 kB / 426.7 MB, free: 9.012 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006285/0.2598, allocations: 330.6 kB / 427.1 MB, free: 8.664 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003338/0.2602, allocations: 0.6924 MB / 427.7 MB, free: 7.945 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.216e-05/0.2602, allocations: 8 kB / 427.8 MB, free: 7.938 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.803e-05/0.2602, allocations: 11.44 kB / 427.8 MB, free: 7.926 MB / 334.1 MB Notification: Performance of SimCode: time 6.42e-07/0.2602, allocations: 3.938 kB / 427.8 MB, free: 7.922 MB / 334.1 MB Notification: Performance of Templates: time 0.003252/0.2635, allocations: 0.6595 MB / 428.4 MB, free: 7.266 MB / 334.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.361509748734534]