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.001462/0.001466, allocations: 181.3 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.97/1.97, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001065/0.001065, allocations: 86.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.96e-05/2.994e-05, allocations: 11.98 kB / 321.5 MB, free: 17.83 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09567/0.09572, allocations: 47.56 MB / 369.1 MB, free: 2.199 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3927/0.4885, allocations: 75.57 MB / 444.6 MB, free: 1.598 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002758/0.4888, allocations: 70.02 kB / 444.7 MB, free: 1.562 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007294/0.4961, allocations: 1.787 MB / 446.5 MB, free: 28 kB / 314.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.4962, allocations: 0 / 446.5 MB, free: 28 kB / 314.7 MB Notification: Performance of Transformations before backend: time 1.129e-05/0.4962, allocations: 4 kB / 446.5 MB, free: 24 kB / 314.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.0004977/0.4967, allocations: 354.8 kB / 446.9 MB, free: 15.64 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.961e-05/0.4968, allocations: 8.031 kB / 446.9 MB, free: 15.63 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000155/0.4969, allocations: 19.89 kB / 446.9 MB, free: 15.61 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001413/0.4971, allocations: 175.4 kB / 447.1 MB, free: 15.4 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.128e-05/0.4971, allocations: 7.953 kB / 447.1 MB, free: 15.39 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.394e-05/0.4972, allocations: 7.938 kB / 447.1 MB, free: 15.39 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002249/0.4974, allocations: 81.78 kB / 447.1 MB, free: 15.32 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.467e-05/0.4974, allocations: 0 / 447.1 MB, free: 15.32 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.599e-05/0.4975, allocations: 3.688 kB / 447.2 MB, free: 15.32 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.906e-06/0.4975, allocations: 4 kB / 447.2 MB, free: 15.32 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001657/0.4977, allocations: 55.62 kB / 447.2 MB, free: 15.28 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008879/0.4986, allocations: 398.5 kB / 447.6 MB, free: 14.89 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001833/0.4988, allocations: 74.19 kB / 447.7 MB, free: 14.82 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.048e-05/0.4989, allocations: 36.23 kB / 447.7 MB, free: 14.79 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.536e-05/0.4989, allocations: 4 kB / 447.7 MB, free: 14.79 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.137e-05/0.4989, allocations: 30.56 kB / 447.7 MB, free: 14.75 MB / 330.7 MB Notification: Performance of pre-optimization done (n=8): time 2.124e-06/0.499, allocations: 4.766 kB / 447.7 MB, free: 14.75 MB / 330.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002291/0.4992, allocations: 76.92 kB / 447.8 MB, free: 14.68 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.748e-05/0.4992, allocations: 51.41 kB / 447.9 MB, free: 14.61 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.017e-05/0.4993, allocations: 96.88 kB / 448 MB, free: 14.52 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.791e-05/0.4994, allocations: 25.7 kB / 448 MB, free: 14.48 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.234e-05/0.4995, allocations: 178.5 kB / 448.2 MB, free: 14.31 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.045e-05/0.4995, allocations: 31.42 kB / 448.2 MB, free: 14.29 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.294e-06/0.4995, allocations: 5.875 kB / 448.2 MB, free: 14.29 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001112/0.4997, allocations: 318.8 kB / 448.5 MB, free: 13.96 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.515e-05/0.4997, allocations: 19.69 kB / 448.5 MB, free: 13.95 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.816e-05/0.4998, allocations: 50.06 kB / 448.6 MB, free: 13.91 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.184e-05/0.4999, allocations: 23.56 kB / 448.6 MB, free: 13.89 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.4999, allocations: 0 / 448.6 MB, free: 13.89 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002359/0.5002, allocations: 104.9 kB / 448.7 MB, free: 13.8 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.094e-05/0.5002, allocations: 8 kB / 448.7 MB, free: 13.79 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.5002, allocations: 0 / 448.7 MB, free: 13.79 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/0.5003, allocations: 0 / 448.7 MB, free: 13.79 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000219/0.5005, allocations: 23.94 kB / 448.7 MB, free: 13.77 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.294e-05/0.5005, allocations: 7.984 kB / 448.7 MB, free: 13.76 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001204/0.5007, allocations: 11.84 kB / 448.8 MB, free: 13.75 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.083e-05/0.5007, allocations: 4.062 kB / 448.8 MB, free: 13.75 MB / 330.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 () * 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 8.34e-05/0.5008, allocations: 112.7 kB / 448.9 MB, free: 13.63 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.697e-05/0.5008, allocations: 7.906 kB / 448.9 MB, free: 13.62 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.085e-05/0.5009, allocations: 8.5 kB / 448.9 MB, free: 13.62 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.5009, allocations: 0 / 448.9 MB, free: 13.62 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.5009, allocations: 0 / 448.9 MB, free: 13.62 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.5009, allocations: 0 / 448.9 MB, free: 13.62 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002605/0.5012, allocations: 192.8 kB / 449.1 MB, free: 13.39 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.5012, allocations: 4 kB / 449.1 MB, free: 13.39 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002029/0.5014, allocations: 27.92 kB / 449.1 MB, free: 13.36 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.919e-06/0.5014, allocations: 0 / 449.1 MB, free: 13.36 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.194e-05/0.5014, allocations: 0 / 449.1 MB, free: 13.36 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/0.5015, allocations: 0 / 449.1 MB, free: 13.36 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.5015, allocations: 0 / 449.1 MB, free: 13.36 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002947/0.5018, allocations: 194.5 kB / 449.3 MB, free: 13.18 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.855e-05/0.5018, allocations: 81.09 kB / 449.4 MB, free: 13.08 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.909e-05/0.5019, allocations: 0 / 449.4 MB, free: 13.08 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001066/0.502, allocations: 8.344 kB / 449.4 MB, free: 13.07 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.236e-05/0.502, allocations: 0 / 449.4 MB, free: 13.07 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.438e-05/0.502, allocations: 15.56 kB / 449.4 MB, free: 13.06 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.443e-05/0.5021, allocations: 87.2 kB / 449.5 MB, free: 12.98 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.5021, allocations: 0 / 449.5 MB, free: 12.98 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003293/0.5025, allocations: 31.78 kB / 449.5 MB, free: 12.95 MB / 330.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 () * 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.0001388/0.5026, allocations: 91.25 kB / 449.6 MB, free: 12.85 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001829/0.5028, allocations: 61.5 kB / 449.7 MB, free: 12.81 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.5028, allocations: 4.125 kB / 449.7 MB, free: 12.8 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.834e-05/0.5029, allocations: 24.08 kB / 449.7 MB, free: 12.79 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002363/0.5031, allocations: 15.56 kB / 449.7 MB, free: 12.77 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007038/0.5039, allocations: 278.5 kB / 450 MB, free: 12.48 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002642/0.5041, allocations: 0.6965 MB / 450.7 MB, free: 11.76 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.521e-05/0.5042, allocations: 11.44 kB / 450.7 MB, free: 11.75 MB / 330.7 MB Notification: Performance of SimCode: time 1.082e-06/0.5042, allocations: 0 / 450.7 MB, free: 11.75 MB / 330.7 MB Notification: Performance of Templates: time 0.003059/0.5073, allocations: 0.929 MB / 451.6 MB, free: 10.82 MB / 330.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