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.0009666/0.0009666, allocations: 177.1 kB / 8.349 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.286/1.286, allocations: 221.5 MB / 230.3 MB, free: 7.512 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.0009028/0.0009028, allocations: 101.8 kB / 281.2 MB, free: 5.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.554e-05/1.529e-05, allocations: 4 kB / 337 MB, free: 10.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09546/0.09549, allocations: 50.41 MB / 387.5 MB, free: 7.57 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2955/0.391, allocations: 75.76 MB / 463.2 MB, free: 3.082 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002519/0.3914, allocations: 63.97 kB / 463.3 MB, free: 3.02 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004789/0.3962, allocations: 1.781 MB / 465.1 MB, free: 1.25 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3962, allocations: 0 / 465.1 MB, free: 1.25 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.039e-05/0.3962, allocations: 4 kB / 465.1 MB, free: 1.246 MB / 330.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.0003665/0.3966, allocations: 358.9 kB / 465.4 MB, free: 0.8516 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.3966, allocations: 8.031 kB / 465.4 MB, free: 0.8438 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000113/0.3967, allocations: 11.91 kB / 465.4 MB, free: 0.832 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001249/0.3969, allocations: 170.9 kB / 465.6 MB, free: 0.625 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.653e-05/0.3969, allocations: 7.938 kB / 465.6 MB, free: 0.6172 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.73e-05/0.3969, allocations: 8 kB / 465.6 MB, free: 0.6094 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001374/0.3971, allocations: 47.98 kB / 465.7 MB, free: 0.5625 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001248/0.3972, allocations: 72.27 kB / 465.7 MB, free: 500 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.306e-05/0.3972, allocations: 0 / 465.7 MB, free: 500 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.185e-05/0.3973, allocations: 0 / 465.7 MB, free: 500 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.3973, allocations: 4 kB / 465.7 MB, free: 496 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006391/0.3979, allocations: 369 kB / 466.1 MB, free: 88 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001103/0.398, allocations: 70.5 kB / 466.2 MB, free: 8 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.001e-05/0.3981, allocations: 24.91 kB / 466.2 MB, free: 15.98 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.307e-05/0.3981, allocations: 4 kB / 466.2 MB, free: 15.97 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.23e-05/0.3982, allocations: 30.56 kB / 466.2 MB, free: 15.93 MB / 346.7 MB Notification: Performance of pre-optimization done (n=8): time 1.393e-06/0.3982, allocations: 4 kB / 466.2 MB, free: 15.93 MB / 346.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001754/0.3983, allocations: 73.81 kB / 466.3 MB, free: 15.86 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.732e-05/0.3984, allocations: 51.41 kB / 466.3 MB, free: 15.79 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.032e-05/0.3985, allocations: 101 kB / 466.4 MB, free: 15.69 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.468e-05/0.3985, allocations: 25.7 kB / 466.5 MB, free: 15.66 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.493e-05/0.3985, allocations: 99.89 kB / 466.6 MB, free: 15.55 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.219e-05/0.3986, allocations: 31.55 kB / 466.6 MB, free: 15.52 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.699e-06/0.3986, allocations: 0 / 466.6 MB, free: 15.52 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000126/0.3987, allocations: 318.8 kB / 466.9 MB, free: 15.2 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.406e-05/0.3988, allocations: 23.94 kB / 466.9 MB, free: 15.18 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.013e-05/0.3988, allocations: 38.56 kB / 467 MB, free: 15.13 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.679e-05/0.3989, allocations: 27.92 kB / 467 MB, free: 15.11 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.3989, allocations: 0 / 467 MB, free: 15.11 MB / 346.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000135/0.399, allocations: 89.62 kB / 467.1 MB, free: 15.01 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.399, allocations: 4 kB / 467.1 MB, free: 15.01 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.3991, allocations: 8.062 kB / 467.1 MB, free: 15 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.317e-05/0.3991, allocations: 0 / 467.1 MB, free: 15 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001294/0.3992, allocations: 23.98 kB / 467.1 MB, free: 14.98 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/0.3992, allocations: 3.953 kB / 467.1 MB, free: 14.97 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.804e-05/0.3993, allocations: 11.84 kB / 467.1 MB, free: 14.96 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.524e-06/0.3993, allocations: 4 kB / 467.1 MB, free: 14.96 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.361e-05/0.3994, allocations: 104.9 kB / 467.2 MB, free: 14.85 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.792e-05/0.3994, allocations: 11.89 kB / 467.3 MB, free: 14.84 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.23e-05/0.3995, allocations: 12.62 kB / 467.3 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.3995, allocations: 4 kB / 467.3 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.3995, allocations: 0 / 467.3 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.736e-06/0.3995, allocations: 7.938 kB / 467.3 MB, free: 14.81 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001578/0.3997, allocations: 158.2 kB / 467.4 MB, free: 14.62 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-06/0.3997, allocations: 0.6875 kB / 467.4 MB, free: 14.62 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.874e-05/0.3998, allocations: 19.98 kB / 467.5 MB, free: 14.6 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.3998, allocations: 3.938 kB / 467.5 MB, free: 14.59 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.197e-05/0.3998, allocations: 4 kB / 467.5 MB, free: 14.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.3998, allocations: 0 / 467.5 MB, free: 14.59 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.3998, allocations: 4.25 kB / 467.5 MB, free: 14.59 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001956/0.4, allocations: 187.3 kB / 467.7 MB, free: 14.39 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.791e-05/0.4001, allocations: 81.14 kB / 467.7 MB, free: 14.29 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.546e-05/0.4001, allocations: 4 kB / 467.7 MB, free: 14.29 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.5e-05/0.4002, allocations: 3.984 kB / 467.7 MB, free: 14.28 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.155e-05/0.4002, allocations: 8 kB / 467.7 MB, free: 14.27 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.627e-06/0.4002, allocations: 0 / 467.7 MB, free: 14.27 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.995e-05/0.4002, allocations: 83.34 kB / 467.8 MB, free: 14.19 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4002, allocations: 0 / 467.8 MB, free: 14.19 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002445/0.4005, allocations: 31.84 kB / 467.9 MB, free: 14.16 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.0001134/0.4006, allocations: 99.23 kB / 468 MB, free: 14.05 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001231/0.4007, allocations: 51.94 kB / 468 MB, free: 14 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.4008, allocations: 0 / 468 MB, free: 14 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.732e-05/0.4008, allocations: 20 kB / 468 MB, free: 13.98 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001954/0.401, allocations: 8.078 kB / 468 MB, free: 13.98 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004732/0.4015, allocations: 236.5 kB / 468.3 MB, free: 13.72 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002574/0.4017, allocations: 0.7002 MB / 469 MB, free: 13 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.737e-05/0.4018, allocations: 4 kB / 469 MB, free: 12.99 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.172e-05/0.4018, allocations: 19.36 kB / 469 MB, free: 12.97 MB / 346.7 MB Notification: Performance of SimCode: time 2.61e-07/0.4018, allocations: 0 / 469 MB, free: 12.97 MB / 346.7 MB Notification: Performance of Templates: time 0.00235/0.4042, allocations: 0.5528 MB / 469.5 MB, free: 12.43 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