Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass1.T|mass2.T",fileNamePrefix="Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses") translateModel(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass1.T|mass2.T",fileNamePrefix="Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008911/0.0008911, allocations: 196.9 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.206/1.206, allocations: 226.6 MB / 244.3 MB, free: 8.312 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007386/0.0007386, allocations: 104.7 kB / 296.4 MB, free: 7.027 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001779/0.0001779, allocations: 4 kB / 356.2 MB, free: 11.25 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1662/0.1664, allocations: 51.3 MB / 407.5 MB, free: 27.86 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.00107/0.1675, allocations: 1.32 MB / 408.8 MB, free: 26.53 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005134/0.168, allocations: 0.5249 MB / 409.3 MB, free: 26 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.467e-05/0.1681, allocations: 5.344 kB / 409.3 MB, free: 26 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.168e-05/0.1681, allocations: 7.922 kB / 409.3 MB, free: 25.99 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.505e-05/0.1682, allocations: 25.55 kB / 409.4 MB, free: 25.97 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001394/0.1683, allocations: 23.92 kB / 409.4 MB, free: 25.95 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.478e-05/0.1684, allocations: 91.53 kB / 409.5 MB, free: 25.86 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.479e-05/0.1685, allocations: 29.78 kB / 409.5 MB, free: 25.83 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.147e-05/0.1685, allocations: 31.92 kB / 409.5 MB, free: 25.8 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.04e-05/0.1686, allocations: 27.92 kB / 409.6 MB, free: 25.77 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.288e-05/0.1686, allocations: 7.938 kB / 409.6 MB, free: 25.76 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.624e-05/0.1687, allocations: 9.5 kB / 409.6 MB, free: 25.75 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.388e-06/0.1687, allocations: 7.984 kB / 409.6 MB, free: 25.75 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.05e-05/0.1687, allocations: 49.58 kB / 409.6 MB, free: 25.69 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.059e-05/0.1688, allocations: 76.77 kB / 409.7 MB, free: 25.62 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.1688, allocations: 1.188 kB / 409.7 MB, free: 25.62 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.243e-06/0.1688, allocations: 0 / 409.7 MB, free: 25.62 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.446e-06/0.1688, allocations: 0 / 409.7 MB, free: 25.62 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.0002918/0.1691, allocations: 361 kB / 410.1 MB, free: 25.22 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.83e-05/0.1692, allocations: 12.03 kB / 410.1 MB, free: 25.21 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.55e-05/0.1693, allocations: 15.89 kB / 410.1 MB, free: 25.19 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.265e-05/0.1693, allocations: 171 kB / 410.3 MB, free: 24.98 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.164e-05/0.1694, allocations: 4 kB / 410.3 MB, free: 24.98 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.409e-05/0.1694, allocations: 11.95 kB / 410.3 MB, free: 24.97 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001308/0.1695, allocations: 87.89 kB / 410.4 MB, free: 24.88 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.919e-06/0.1695, allocations: 3.906 kB / 410.4 MB, free: 24.88 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.127e-06/0.1696, allocations: 0 / 410.4 MB, free: 24.88 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.1696, allocations: 4 kB / 410.4 MB, free: 24.87 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.378e-05/0.1697, allocations: 47.97 kB / 410.4 MB, free: 24.82 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004927/0.1702, allocations: 412.5 kB / 410.8 MB, free: 24.37 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.848e-05/0.1703, allocations: 70.5 kB / 410.9 MB, free: 24.29 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.874e-05/0.1703, allocations: 36.83 kB / 410.9 MB, free: 24.25 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.668e-06/0.1703, allocations: 0 / 410.9 MB, free: 24.25 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.158e-05/0.1703, allocations: 34.56 kB / 411 MB, free: 24.21 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 9.11e-07/0.1704, allocations: 0 / 411 MB, free: 24.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001477/0.1705, allocations: 89.83 kB / 411.1 MB, free: 24.12 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.556e-05/0.1705, allocations: 55.39 kB / 411.1 MB, free: 24.05 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.229e-05/0.1706, allocations: 101.9 kB / 411.2 MB, free: 23.94 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.833e-06/0.1706, allocations: 25.7 kB / 411.2 MB, free: 23.91 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.735e-05/0.1706, allocations: 103.9 kB / 411.3 MB, free: 23.8 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.529e-05/0.1706, allocations: 35.48 kB / 411.4 MB, free: 23.77 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.687e-06/0.1707, allocations: 4 kB / 411.4 MB, free: 23.77 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.243e-05/0.1707, allocations: 318.8 kB / 411.7 MB, free: 23.45 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.341e-05/0.1707, allocations: 23.98 kB / 411.7 MB, free: 23.42 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.988e-05/0.1708, allocations: 46.56 kB / 411.7 MB, free: 23.37 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.002e-05/0.1708, allocations: 25.86 kB / 411.8 MB, free: 23.34 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.1708, allocations: 4 kB / 411.8 MB, free: 23.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001127/0.1709, allocations: 109.5 kB / 411.9 MB, free: 23.23 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.939e-06/0.171, allocations: 8 kB / 411.9 MB, free: 23.22 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.226e-06/0.171, allocations: 0 / 411.9 MB, free: 23.22 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.829e-06/0.171, allocations: 0 / 411.9 MB, free: 23.22 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001053/0.1711, allocations: 23.98 kB / 411.9 MB, free: 23.2 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.689e-06/0.1711, allocations: 4.25 kB / 411.9 MB, free: 23.19 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.996e-05/0.1712, allocations: 11.84 kB / 411.9 MB, free: 23.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.25e-06/0.1712, allocations: 4 kB / 411.9 MB, free: 23.18 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.701e-05/0.1712, allocations: 133.8 kB / 412.1 MB, free: 23.04 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.257e-05/0.1712, allocations: 4 kB / 412.1 MB, free: 23.03 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.393e-05/0.1713, allocations: 8.375 kB / 412.1 MB, free: 23.02 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-06/0.1713, allocations: 0 / 412.1 MB, free: 23.02 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.1713, allocations: 4 kB / 412.1 MB, free: 23.02 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.1713, allocations: 0 / 412.1 MB, free: 23.02 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001226/0.1714, allocations: 189.8 kB / 412.3 MB, free: 22.78 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.1714, allocations: 0 / 412.3 MB, free: 22.78 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.919e-05/0.1715, allocations: 23.98 kB / 412.3 MB, free: 22.76 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.1715, allocations: 0 / 412.3 MB, free: 22.76 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.576e-06/0.1715, allocations: 8 kB / 412.3 MB, free: 22.75 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.714e-06/0.1716, allocations: 7.938 kB / 412.3 MB, free: 22.74 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.1716, allocations: 0 / 412.3 MB, free: 22.74 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00013/0.1717, allocations: 195.4 kB / 412.5 MB, free: 22.54 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.554e-05/0.1717, allocations: 84.95 kB / 412.6 MB, free: 22.43 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.19e-05/0.1717, allocations: 4 kB / 412.6 MB, free: 22.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.884e-05/0.1718, allocations: 4 kB / 412.6 MB, free: 22.43 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.374e-05/0.1718, allocations: 4.062 kB / 412.6 MB, free: 22.42 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.258e-06/0.1718, allocations: 7.984 kB / 412.6 MB, free: 22.41 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.047e-05/0.1719, allocations: 83.28 kB / 412.7 MB, free: 22.33 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1719, allocations: 0 / 412.7 MB, free: 22.33 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001977/0.1721, allocations: 24 kB / 412.7 MB, free: 22.31 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 5.442e-05/0.1721, allocations: 99.12 kB / 412.8 MB, free: 22.2 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.304e-05/0.1722, allocations: 47.98 kB / 412.8 MB, free: 22.16 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.1722, allocations: 4.125 kB / 412.9 MB, free: 22.15 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.537e-05/0.1723, allocations: 31.92 kB / 412.9 MB, free: 22.12 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002244/0.1725, allocations: 4 kB / 412.9 MB, free: 22.12 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004124/0.1729, allocations: 414.6 kB / 413.3 MB, free: 21.68 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.492e-05/0.173, allocations: 0.6926 MB / 414 MB, free: 20.96 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.286e-05/0.173, allocations: 11.44 kB / 414 MB, free: 20.95 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.173, allocations: 4 kB / 414 MB, free: 20.94 MB / 298.7 MB Notification: Performance of Templates: time 0.001491/0.1745, allocations: 0.9427 MB / 414.9 MB, free: 20 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.makefile (rm -f Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & ./Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches