Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002914/0.002922, allocations: 188.8 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.191/3.191, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.002008/0.002007, allocations: 102.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006513/0.0006518, allocations: 11.98 kB / 327 MB, free: 15.1 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1509/0.1516, allocations: 47.57 MB / 374.5 MB, free: 15.45 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.003893/0.1556, allocations: 1.273 MB / 375.8 MB, free: 14.16 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002036/0.1577, allocations: 0.4923 MB / 376.3 MB, free: 13.66 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.452e-05/0.1579, allocations: 4 kB / 376.3 MB, free: 13.66 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 5.344e-05/0.158, allocations: 3.984 kB / 376.3 MB, free: 13.65 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001607/0.1582, allocations: 31.88 kB / 376.3 MB, free: 13.62 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003369/0.1585, allocations: 23.97 kB / 376.4 MB, free: 13.6 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002185/0.1588, allocations: 71.83 kB / 376.4 MB, free: 13.53 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001937/0.159, allocations: 23.98 kB / 376.5 MB, free: 13.5 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001009/0.1591, allocations: 27.92 kB / 376.5 MB, free: 13.48 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001519/0.1593, allocations: 35.84 kB / 376.5 MB, free: 13.44 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.002e-05/0.1593, allocations: 4 kB / 376.5 MB, free: 13.44 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001366/0.1595, allocations: 19.98 kB / 376.5 MB, free: 13.42 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.057e-05/0.1596, allocations: 11.94 kB / 376.6 MB, free: 13.41 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.193e-05/0.1597, allocations: 37.7 kB / 376.6 MB, free: 13.36 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002554/0.1599, allocations: 80 kB / 376.7 MB, free: 13.29 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.16, allocations: 0 / 376.7 MB, free: 13.29 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.136e-06/0.16, allocations: 3.938 kB / 376.7 MB, free: 13.28 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.555e-06/0.16, allocations: 0 / 376.7 MB, free: 13.28 MB / 282.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.0008104/0.1608, allocations: 367.2 kB / 377 MB, free: 12.88 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.069e-05/0.1609, allocations: 8.031 kB / 377 MB, free: 12.87 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002559/0.1612, allocations: 11.91 kB / 377 MB, free: 12.86 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002311/0.1615, allocations: 167 kB / 377.2 MB, free: 12.65 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.749e-05/0.1615, allocations: 15.94 kB / 377.2 MB, free: 12.64 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.865e-05/0.1616, allocations: 8 kB / 377.2 MB, free: 12.63 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000353/0.162, allocations: 85.59 kB / 377.3 MB, free: 12.54 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.572e-05/0.162, allocations: 3.906 kB / 377.3 MB, free: 12.54 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.818e-05/0.1621, allocations: 4 kB / 377.3 MB, free: 12.53 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.507e-05/0.1621, allocations: 4 kB / 377.3 MB, free: 12.53 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002702/0.1624, allocations: 51.92 kB / 377.4 MB, free: 12.48 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001483/0.1639, allocations: 400.6 kB / 377.8 MB, free: 12.04 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003223/0.1643, allocations: 70.55 kB / 377.8 MB, free: 11.96 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.301e-05/0.1643, allocations: 0 / 377.8 MB, free: 11.96 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.23e-05/0.1644, allocations: 38.56 kB / 377.9 MB, free: 11.91 MB / 282.7 MB Notification: Performance of pre-optimization done (n=8): time 7.905e-06/0.1644, allocations: 0 / 377.9 MB, free: 11.91 MB / 282.7 MB Notification: Performance of matching and sorting (n=8): time 0.0004689/0.1649, allocations: 89.56 kB / 378 MB, free: 11.82 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.752e-05/0.165, allocations: 51.41 kB / 378 MB, free: 11.75 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001896/0.1652, allocations: 105.8 kB / 378.1 MB, free: 11.64 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.153e-05/0.1653, allocations: 25.7 kB / 378.1 MB, free: 11.61 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001589/0.1655, allocations: 178.3 kB / 378.3 MB, free: 11.43 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.408e-05/0.1656, allocations: 27.72 kB / 378.3 MB, free: 11.41 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.356e-05/0.1656, allocations: 8 kB / 378.4 MB, free: 11.4 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002124/0.1658, allocations: 318.8 kB / 378.7 MB, free: 11.08 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001098/0.166, allocations: 20 kB / 378.7 MB, free: 11.06 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001582/0.1662, allocations: 46.56 kB / 378.7 MB, free: 11 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000142/0.1663, allocations: 27.94 kB / 378.8 MB, free: 10.98 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.498e-06/0.1663, allocations: 4 kB / 378.8 MB, free: 10.97 MB / 282.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004194/0.1668, allocations: 113.5 kB / 378.9 MB, free: 10.86 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.93e-05/0.1668, allocations: 4 kB / 378.9 MB, free: 10.85 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.415e-05/0.1669, allocations: 4 kB / 378.9 MB, free: 10.85 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.161e-05/0.1669, allocations: 0 / 378.9 MB, free: 10.85 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003338/0.1673, allocations: 23.98 kB / 378.9 MB, free: 10.82 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.261e-05/0.1673, allocations: 0 / 378.9 MB, free: 10.82 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000164/0.1675, allocations: 4 kB / 378.9 MB, free: 10.82 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.757e-05/0.1675, allocations: 8 kB / 378.9 MB, free: 10.81 MB / 282.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 0.0002165/0.1678, allocations: 125.8 kB / 379 MB, free: 10.68 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.495e-05/0.1678, allocations: 7.906 kB / 379 MB, free: 10.67 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.291e-05/0.1679, allocations: 8.375 kB / 379.1 MB, free: 10.66 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.201e-06/0.1679, allocations: 0 / 379.1 MB, free: 10.66 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.001e-05/0.168, allocations: 7.922 kB / 379.1 MB, free: 10.66 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.807e-06/0.168, allocations: 4 kB / 379.1 MB, free: 10.65 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004363/0.1684, allocations: 189.5 kB / 379.3 MB, free: 10.42 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.399e-06/0.1685, allocations: 0 / 379.3 MB, free: 10.42 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003192/0.1688, allocations: 24.23 kB / 379.3 MB, free: 10.39 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.051e-05/0.1688, allocations: 0 / 379.3 MB, free: 10.39 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.494e-05/0.1689, allocations: 8 kB / 379.3 MB, free: 10.39 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.503e-06/0.1689, allocations: 0 / 379.3 MB, free: 10.39 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.1689, allocations: 0 / 379.3 MB, free: 10.39 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005411/0.1695, allocations: 195.3 kB / 379.5 MB, free: 10.18 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.885e-05/0.1696, allocations: 85.05 kB / 379.6 MB, free: 10.08 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.671e-05/0.1697, allocations: 4 kB / 379.6 MB, free: 10.07 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001806/0.1699, allocations: 3.984 kB / 379.6 MB, free: 10.07 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.966e-05/0.1699, allocations: 12.05 kB / 379.6 MB, free: 10.06 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.875e-05/0.17, allocations: 4 kB / 379.6 MB, free: 10.05 MB / 282.7 MB Notification: Performance of sorting global known variables: time 9.369e-05/0.1701, allocations: 83.28 kB / 379.7 MB, free: 9.973 MB / 282.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.1701, allocations: 0 / 379.7 MB, free: 9.973 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006075/0.1707, allocations: 20 kB / 379.7 MB, free: 9.953 MB / 282.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 0.0002224/0.171, allocations: 99.23 kB / 379.8 MB, free: 9.844 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003506/0.1714, allocations: 55.91 kB / 379.8 MB, free: 9.789 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.085e-05/0.1714, allocations: 128 / 379.8 MB, free: 9.789 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001029/0.1715, allocations: 35.88 kB / 379.9 MB, free: 9.754 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004439/0.172, allocations: 12.22 kB / 379.9 MB, free: 9.742 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00153/0.1736, allocations: 406.7 kB / 380.3 MB, free: 9.312 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004934/0.1741, allocations: 0.6926 MB / 381 MB, free: 8.594 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.078e-05/0.1743, allocations: 11.44 kB / 381 MB, free: 8.586 MB / 282.7 MB Notification: Performance of SimCode: time 1.893e-06/0.1743, allocations: 0 / 381 MB, free: 8.586 MB / 282.7 MB Notification: Performance of Templates: time 0.005362/0.1797, allocations: 0.9341 MB / 381.9 MB, free: 7.652 MB / 282.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & ./Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/HeatTransfer/Examples/TwoMasses/TwoMasses.csv","../files/Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches