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.001356/0.001356, allocations: 177.8 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.053/2.053, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001117/0.001117, allocations: 91.84 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 1.896e-05/1.906e-05, allocations: 4 kB / 314.8 MB, free: 9.18 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3434/0.3435, allocations: 47.56 MB / 362.3 MB, free: 45.8 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1229/0.4665, allocations: 74.91 MB / 437.2 MB, free: 11.41 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002706/0.4668, allocations: 76.23 kB / 437.3 MB, free: 11.34 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.00735/0.4742, allocations: 1.775 MB / 439.1 MB, free: 9.586 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.4742, allocations: 2.719 kB / 439.1 MB, free: 9.586 MB / 331.1 MB Notification: Performance of Transformations before backend: time 8.105e-06/0.4743, allocations: 0 / 439.1 MB, free: 9.586 MB / 331.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.0005179/0.4748, allocations: 357.2 kB / 439.4 MB, free: 9.195 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.146e-05/0.4748, allocations: 12.03 kB / 439.4 MB, free: 9.184 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000142/0.475, allocations: 15.89 kB / 439.5 MB, free: 9.168 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001753/0.4752, allocations: 167.9 kB / 439.6 MB, free: 8.965 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.835e-05/0.4752, allocations: 4.844 kB / 439.6 MB, free: 8.961 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.748e-05/0.4753, allocations: 9.953 kB / 439.6 MB, free: 8.953 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001809/0.4755, allocations: 47.92 kB / 439.7 MB, free: 8.906 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001796/0.4757, allocations: 65.69 kB / 439.8 MB, free: 8.836 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.701e-05/0.4757, allocations: 3.984 kB / 439.8 MB, free: 8.832 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.342e-05/0.4757, allocations: 0 / 439.8 MB, free: 8.832 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.857e-06/0.4757, allocations: 7.438 kB / 439.8 MB, free: 8.828 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008667/0.4766, allocations: 365.2 kB / 440.1 MB, free: 8.434 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001728/0.4768, allocations: 69.36 kB / 440.2 MB, free: 8.359 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.412e-05/0.4769, allocations: 32.48 kB / 440.2 MB, free: 8.328 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.463e-05/0.4769, allocations: 0 / 440.2 MB, free: 8.328 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.168e-05/0.477, allocations: 42.56 kB / 440.3 MB, free: 8.277 MB / 331.1 MB Notification: Performance of pre-optimization done (n=8): time 3.556e-06/0.477, allocations: 1.203 kB / 440.3 MB, free: 8.277 MB / 331.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002183/0.4772, allocations: 69.53 kB / 440.3 MB, free: 8.203 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.812e-05/0.4773, allocations: 51.41 kB / 440.4 MB, free: 8.141 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.159e-05/0.4774, allocations: 96.98 kB / 440.5 MB, free: 8.039 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 1.822e-05/0.4774, allocations: 25.7 kB / 440.5 MB, free: 8.008 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.507e-05/0.4775, allocations: 166.3 kB / 440.7 MB, free: 7.844 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.762e-05/0.4775, allocations: 31.55 kB / 440.7 MB, free: 7.812 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.571e-06/0.4776, allocations: 0 / 440.7 MB, free: 7.812 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.4777, allocations: 322.8 kB / 441 MB, free: 7.488 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.54e-05/0.4778, allocations: 16 kB / 441 MB, free: 7.473 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001008/0.4779, allocations: 44.31 kB / 441.1 MB, free: 7.422 MB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.449e-05/0.478, allocations: 20 kB / 441.1 MB, free: 7.402 MB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.478, allocations: 0 / 441.1 MB, free: 7.402 MB / 331.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002233/0.4782, allocations: 105.4 kB / 441.2 MB, free: 7.297 MB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.765e-05/0.4782, allocations: 4 kB / 441.2 MB, free: 7.293 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.4783, allocations: 0 / 441.2 MB, free: 7.293 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/0.4783, allocations: 0 / 441.2 MB, free: 7.293 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001999/0.4785, allocations: 27.92 kB / 441.2 MB, free: 7.266 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.4785, allocations: 4.625 kB / 441.2 MB, free: 7.262 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.392e-05/0.4786, allocations: 15.91 kB / 441.2 MB, free: 7.25 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.349e-05/0.4786, allocations: 8 kB / 441.3 MB, free: 7.242 MB / 331.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 () * 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 9.339e-05/0.4787, allocations: 105 kB / 441.4 MB, free: 7.133 MB / 331.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.499e-05/0.4788, allocations: 7.859 kB / 441.4 MB, free: 7.125 MB / 331.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.615e-05/0.4789, allocations: 12.62 kB / 441.4 MB, free: 7.109 MB / 331.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.4789, allocations: 0 / 441.4 MB, free: 7.109 MB / 331.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.4789, allocations: 0 / 441.4 MB, free: 7.109 MB / 331.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.4789, allocations: 0 / 441.4 MB, free: 7.109 MB / 331.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002242/0.4791, allocations: 162.3 kB / 441.5 MB, free: 6.914 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.4791, allocations: 0 / 441.5 MB, free: 6.914 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001898/0.4793, allocations: 19.94 kB / 441.6 MB, free: 6.895 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.4794, allocations: 0 / 441.6 MB, free: 6.895 MB / 331.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.079e-05/0.4794, allocations: 0 / 441.6 MB, free: 6.895 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.488e-05/0.4794, allocations: 14.06 kB / 441.6 MB, free: 6.883 MB / 331.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.4794, allocations: 0 / 441.6 MB, free: 6.883 MB / 331.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002703/0.4797, allocations: 184 kB / 441.7 MB, free: 6.688 MB / 331.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.885e-05/0.4798, allocations: 77.11 kB / 441.8 MB, free: 6.594 MB / 331.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.862e-05/0.4798, allocations: 0 / 441.8 MB, free: 6.594 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001023/0.4799, allocations: 4 kB / 441.8 MB, free: 6.59 MB / 331.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.031e-05/0.4799, allocations: 11.88 kB / 441.8 MB, free: 6.578 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.895e-06/0.48, allocations: 4.062 kB / 441.8 MB, free: 6.574 MB / 331.1 MB Notification: Performance of sorting global known variables: time 6.297e-05/0.48, allocations: 87.28 kB / 441.9 MB, free: 6.488 MB / 331.1 MB Notification: Performance of sort global known variables: time 4.3e-07/0.48, allocations: 0 / 441.9 MB, free: 6.488 MB / 331.1 MB Notification: Performance of remove unused functions: time 0.0003414/0.4804, allocations: 23.84 kB / 441.9 MB, free: 6.465 MB / 331.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 () * 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.0001398/0.4805, allocations: 110.2 kB / 442.1 MB, free: 6.352 MB / 331.1 MB Notification: Performance of simCode: created initialization part: time 0.0001728/0.4807, allocations: 49.23 kB / 442.1 MB, free: 6.305 MB / 331.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.4807, allocations: 0 / 442.1 MB, free: 6.305 MB / 331.1 MB Notification: Performance of simCode: created simulation system equations: time 5.148e-05/0.4808, allocations: 27.94 kB / 442.1 MB, free: 6.277 MB / 331.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002384/0.4811, allocations: 4.125 kB / 442.1 MB, free: 6.273 MB / 331.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006811/0.4817, allocations: 255.1 kB / 442.4 MB, free: 5.996 MB / 331.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003593/0.4821, allocations: 0.7041 MB / 443.1 MB, free: 5.266 MB / 331.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.779e-05/0.4822, allocations: 11.44 kB / 443.1 MB, free: 5.254 MB / 331.1 MB Notification: Performance of SimCode: time 7.31e-07/0.4822, allocations: 0 / 443.1 MB, free: 5.254 MB / 331.1 MB Notification: Performance of Templates: time 0.003151/0.4853, allocations: 0.9201 MB / 444 MB, free: 4.355 MB / 331.1 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