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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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=2000,variableFilter="time|mass1.T|mass2.T",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001364/0.001364, allocations: 175.1 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.372/1.372, allocations: 221.3 MB / 235.5 MB, free: 2.887 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009835/0.0009835, allocations: 91.67 kB / 286.5 MB, free: 176 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.188e-05/2.19e-05, allocations: 4 kB / 343.8 MB, free: 4.312 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0818/0.08184, allocations: 50.41 MB / 394.2 MB, free: 1.855 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2925/0.3744, allocations: 76.43 MB / 470.7 MB, free: 11.14 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003631/0.3749, allocations: 71.78 kB / 470.7 MB, free: 11.07 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005524/0.3804, allocations: 1.774 MB / 472.5 MB, free: 9.305 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.145e-06/0.3805, allocations: 0 / 472.5 MB, free: 9.305 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.383e-05/0.3805, allocations: 4 kB / 472.5 MB, free: 9.301 MB / 346.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.0004445/0.381, allocations: 358.9 kB / 472.9 MB, free: 8.906 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.608e-05/0.381, allocations: 12.03 kB / 472.9 MB, free: 8.895 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001313/0.3812, allocations: 19.89 kB / 472.9 MB, free: 8.875 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001523/0.3813, allocations: 171 kB / 473.1 MB, free: 8.668 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.73e-05/0.3814, allocations: 0 / 473.1 MB, free: 8.668 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.533e-05/0.3814, allocations: 12 kB / 473.1 MB, free: 8.656 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002104/0.3816, allocations: 89.11 kB / 473.2 MB, free: 8.566 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.042e-05/0.3817, allocations: 3.938 kB / 473.2 MB, free: 8.562 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.796e-05/0.3817, allocations: 0 / 473.2 MB, free: 8.562 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.336e-05/0.3817, allocations: 4 kB / 473.2 MB, free: 8.559 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001437/0.3818, allocations: 51.98 kB / 473.2 MB, free: 8.508 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008411/0.3827, allocations: 396.4 kB / 473.6 MB, free: 8.07 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001452/0.3829, allocations: 78.62 kB / 473.7 MB, free: 7.984 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.666e-05/0.3829, allocations: 40.84 kB / 473.7 MB, free: 7.941 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.486e-05/0.383, allocations: 0 / 473.7 MB, free: 7.941 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.615e-05/0.383, allocations: 30.56 kB / 473.7 MB, free: 7.902 MB / 346.7 MB Notification: Performance of pre-optimization done (n=8): time 1.352e-06/0.383, allocations: 0 / 473.7 MB, free: 7.902 MB / 346.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002195/0.3832, allocations: 77.58 kB / 473.8 MB, free: 7.82 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.23e-05/0.3833, allocations: 51.41 kB / 473.9 MB, free: 7.758 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.308e-05/0.3834, allocations: 97 kB / 474 MB, free: 7.656 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.227e-05/0.3834, allocations: 29.69 kB / 474 MB, free: 7.621 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.469e-05/0.3835, allocations: 103.9 kB / 474.1 MB, free: 7.516 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.445e-05/0.3835, allocations: 31.7 kB / 474.1 MB, free: 7.484 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.358e-06/0.3835, allocations: 0 / 474.1 MB, free: 7.484 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.3837, allocations: 318.8 kB / 474.4 MB, free: 7.164 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.299e-05/0.3837, allocations: 23.94 kB / 474.5 MB, free: 7.141 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.632e-05/0.3838, allocations: 47.44 kB / 474.5 MB, free: 7.086 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.782e-05/0.3839, allocations: 31.92 kB / 474.5 MB, free: 7.055 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3839, allocations: 0 / 474.5 MB, free: 7.055 MB / 346.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001816/0.3841, allocations: 101.6 kB / 474.6 MB, free: 6.949 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.3841, allocations: 8 kB / 474.6 MB, free: 6.941 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.982e-06/0.3841, allocations: 256 / 474.6 MB, free: 6.941 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.3841, allocations: 0 / 474.6 MB, free: 6.941 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001384/0.3843, allocations: 27.98 kB / 474.7 MB, free: 6.914 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.404e-05/0.3843, allocations: 4 kB / 474.7 MB, free: 6.91 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.112e-05/0.3843, allocations: 19.78 kB / 474.7 MB, free: 6.891 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.697e-06/0.3844, allocations: 8.062 kB / 474.7 MB, free: 6.883 MB / 346.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 7.953e-05/0.3844, allocations: 107.4 kB / 474.8 MB, free: 6.773 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.935e-05/0.3845, allocations: 11.86 kB / 474.8 MB, free: 6.762 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.253e-05/0.3845, allocations: 8.625 kB / 474.8 MB, free: 6.75 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.3845, allocations: 0 / 474.8 MB, free: 6.75 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.766e-06/0.3846, allocations: 3.984 kB / 474.8 MB, free: 6.746 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.3846, allocations: 3.938 kB / 474.8 MB, free: 6.742 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002056/0.3848, allocations: 185.6 kB / 475 MB, free: 6.512 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.3848, allocations: 0 / 475 MB, free: 6.512 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001091/0.3849, allocations: 23.98 kB / 475 MB, free: 6.488 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.3849, allocations: 0 / 475 MB, free: 6.488 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.433e-05/0.3849, allocations: 3.953 kB / 475 MB, free: 6.484 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.3849, allocations: 0 / 475 MB, free: 6.484 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.3849, allocations: 3.938 kB / 475.1 MB, free: 6.48 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002445/0.3852, allocations: 195.4 kB / 475.2 MB, free: 6.273 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.191e-05/0.3853, allocations: 77.11 kB / 475.3 MB, free: 6.18 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.295e-05/0.3853, allocations: 8.031 kB / 475.3 MB, free: 6.172 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.13e-05/0.3854, allocations: 8.016 kB / 475.3 MB, free: 6.164 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.417e-05/0.3854, allocations: 7.984 kB / 475.3 MB, free: 6.156 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.357e-06/0.3854, allocations: 0 / 475.3 MB, free: 6.156 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.314e-05/0.3855, allocations: 83.28 kB / 475.4 MB, free: 6.074 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3855, allocations: 0 / 475.4 MB, free: 6.074 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000233/0.3857, allocations: 31.84 kB / 475.5 MB, free: 6.043 MB / 346.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.0001493/0.3859, allocations: 99.19 kB / 475.6 MB, free: 5.938 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001558/0.386, allocations: 57.19 kB / 475.6 MB, free: 5.883 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.386, allocations: 0 / 475.6 MB, free: 5.883 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.07e-05/0.3861, allocations: 31.92 kB / 475.6 MB, free: 5.852 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002317/0.3863, allocations: 5.719 kB / 475.6 MB, free: 5.848 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005437/0.3869, allocations: 241.6 kB / 475.9 MB, free: 5.59 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003083/0.3872, allocations: 0.7004 MB / 476.6 MB, free: 4.863 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.691e-05/0.3872, allocations: 4 kB / 476.6 MB, free: 4.859 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.407e-05/0.3873, allocations: 11.44 kB / 476.6 MB, free: 4.848 MB / 346.7 MB Notification: Performance of SimCode: time 2.31e-07/0.3873, allocations: 0 / 476.6 MB, free: 4.848 MB / 346.7 MB Notification: Performance of Templates: time 0.002834/0.3901, allocations: 0.5911 MB / 477.2 MB, free: 4.266 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.makefile (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) 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","../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches