Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_3.2.3_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_Modelica.Thermal.HeatTransfer.Examples.TwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001432/0.001432, allocations: 108.4 kB / 18.34 MB, free: 4.832 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001522/0.001522, allocations: 190.9 kB / 19.28 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.36/1.36, allocations: 205.1 MB / 225.1 MB, free: 12.27 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 51.92 kB / 282.1 MB, free: 2.449 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08635/0.08768, allocations: 46.62 MB / 328.7 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.003534/0.09127, allocations: 1.635 MB / 330.3 MB, free: 2.105 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001126/0.09243, allocations: 0.5161 MB / 330.9 MB, free: 1.582 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.607e-05/0.09251, allocations: 0 / 330.9 MB, free: 1.582 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 6.734e-05/0.09261, allocations: 11.86 kB / 330.9 MB, free: 1.57 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 9.225e-05/0.09271, allocations: 27.77 kB / 330.9 MB, free: 1.543 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002595/0.09299, allocations: 31.91 kB / 330.9 MB, free: 1.512 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001782/0.09318, allocations: 103.5 kB / 331 MB, free: 1.41 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001735/0.09336, allocations: 31.98 kB / 331.1 MB, free: 1.379 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.902e-05/0.09343, allocations: 35.92 kB / 331.1 MB, free: 1.344 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000116/0.09356, allocations: 39.84 kB / 331.1 MB, free: 1.305 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.496e-05/0.09359, allocations: 11.98 kB / 331.1 MB, free: 1.293 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.722e-05/0.09369, allocations: 12 kB / 331.2 MB, free: 1.281 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 2.79e-05/0.09372, allocations: 19.92 kB / 331.2 MB, free: 1.262 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.519e-05/0.0938, allocations: 43.81 kB / 331.2 MB, free: 1.219 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001945/0.094, allocations: 99.67 kB / 331.3 MB, free: 1.121 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.09402, allocations: 0 / 331.3 MB, free: 1.121 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.103e-06/0.09403, allocations: 0 / 331.3 MB, free: 1.121 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.853e-06/0.09404, allocations: 0 / 331.3 MB, free: 1.121 MB / 270.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.0005779/0.09462, allocations: 387.3 kB / 331.7 MB, free: 0.6953 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.008e-05/0.09468, allocations: 8.031 kB / 331.7 MB, free: 0.6875 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001883/0.09488, allocations: 12.84 kB / 331.7 MB, free: 0.6758 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001469/0.09504, allocations: 176.2 kB / 331.9 MB, free: 476 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.911e-05/0.09507, allocations: 8.375 kB / 331.9 MB, free: 468 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.918e-05/0.09512, allocations: 12.38 kB / 331.9 MB, free: 456 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002164/0.09534, allocations: 77.98 kB / 332 MB, free: 372 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.511e-05/0.09537, allocations: 0 / 332 MB, free: 372 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.98e-05/0.0954, allocations: 12 kB / 332 MB, free: 360 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.09541, allocations: 0 / 332 MB, free: 360 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001523/0.09557, allocations: 51.97 kB / 332 MB, free: 308 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008666/0.09645, allocations: 404.3 kB / 332.4 MB, free: 15.86 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001757/0.09664, allocations: 70.5 kB / 332.5 MB, free: 15.78 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.249e-05/0.09672, allocations: 40.84 kB / 332.5 MB, free: 15.73 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.524e-05/0.09675, allocations: 0 / 332.5 MB, free: 15.73 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.615e-05/0.09679, allocations: 34.56 kB / 332.6 MB, free: 15.69 MB / 286.1 MB Notification: Performance of pre-optimization done (n=8): time 1.242e-06/0.0968, allocations: 0 / 332.6 MB, free: 15.69 MB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002522/0.09705, allocations: 89.75 kB / 332.7 MB, free: 15.6 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.329e-05/0.09711, allocations: 55.41 kB / 332.7 MB, free: 15.53 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.707e-05/0.09721, allocations: 113.7 kB / 332.8 MB, free: 15.41 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.749e-05/0.09724, allocations: 37.58 kB / 332.9 MB, free: 15.37 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.169e-05/0.09732, allocations: 107.9 kB / 333 MB, free: 15.26 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.171e-05/0.09736, allocations: 35.55 kB / 333 MB, free: 15.22 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.31e-05/0.09742, allocations: 21.72 kB / 333 MB, free: 15.2 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.09758, allocations: 318.8 kB / 333.3 MB, free: 14.88 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.656e-05/0.09765, allocations: 20 kB / 333.4 MB, free: 14.86 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.171e-05/0.09774, allocations: 42.56 kB / 333.4 MB, free: 14.8 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001283/0.09787, allocations: 66.52 kB / 333.5 MB, free: 14.73 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.09789, allocations: 256 / 333.5 MB, free: 14.73 MB / 286.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002108/0.09811, allocations: 109.5 kB / 333.6 MB, free: 14.62 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.916e-05/0.09815, allocations: 8 kB / 333.6 MB, free: 14.61 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.09817, allocations: 7.938 kB / 333.6 MB, free: 14.6 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.338e-05/0.0982, allocations: 3.938 kB / 333.6 MB, free: 14.6 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001728/0.09838, allocations: 23.98 kB / 333.6 MB, free: 14.57 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.22e-05/0.0984, allocations: 4 kB / 333.6 MB, free: 14.57 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.429e-05/0.09847, allocations: 7.969 kB / 333.6 MB, free: 14.56 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.314e-05/0.09849, allocations: 8 kB / 333.6 MB, free: 14.55 MB / 286.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 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001195/0.09861, allocations: 121.7 kB / 333.8 MB, free: 14.43 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.594e-05/0.09866, allocations: 4 kB / 333.8 MB, free: 14.42 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.337e-05/0.09871, allocations: 8.375 kB / 333.8 MB, free: 14.41 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.221e-06/0.09873, allocations: 3.938 kB / 333.8 MB, free: 14.41 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.09874, allocations: 0 / 333.8 MB, free: 14.41 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/0.09876, allocations: 3.984 kB / 333.8 MB, free: 14.41 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002851/0.09905, allocations: 185.6 kB / 334 MB, free: 14.18 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.09907, allocations: 8 kB / 334 MB, free: 14.17 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001437/0.09922, allocations: 19.98 kB / 334 MB, free: 14.15 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.09923, allocations: 0 / 334 MB, free: 14.15 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.272e-05/0.09925, allocations: 0 / 334 MB, free: 14.15 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.196e-05/0.09927, allocations: 3.938 kB / 334 MB, free: 14.14 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.09928, allocations: 0 / 334 MB, free: 14.14 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002787/0.09956, allocations: 195.5 kB / 334.2 MB, free: 13.94 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.393e-05/0.09963, allocations: 85.05 kB / 334.3 MB, free: 13.84 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.903e-05/0.09966, allocations: 4.062 kB / 334.3 MB, free: 13.83 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.26e-05/0.09975, allocations: 3.938 kB / 334.3 MB, free: 13.83 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.526e-05/0.09978, allocations: 7.984 kB / 334.3 MB, free: 13.82 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.88e-06/0.0998, allocations: 0 / 334.3 MB, free: 13.82 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.63e-05/0.09985, allocations: 83.28 kB / 334.4 MB, free: 13.74 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.09986, allocations: 0 / 334.4 MB, free: 13.74 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003367/0.1002, allocations: 27.94 kB / 334.4 MB, free: 13.71 MB / 286.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 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001198/0.1003, allocations: 95.23 kB / 334.5 MB, free: 13.61 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001727/0.1005, allocations: 71.84 kB / 334.6 MB, free: 13.54 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.1005, allocations: 0 / 334.6 MB, free: 13.54 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 4.401e-05/0.1006, allocations: 23.94 kB / 334.6 MB, free: 13.51 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004031/0.101, allocations: 8 kB / 334.6 MB, free: 13.5 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007673/0.1018, allocations: 326.8 kB / 334.9 MB, free: 13.16 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003076/0.1021, allocations: 0.6885 MB / 335.6 MB, free: 12.44 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.102e-05/0.1021, allocations: 7.953 kB / 335.6 MB, free: 12.43 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.776e-05/0.1022, allocations: 11.44 kB / 335.6 MB, free: 12.43 MB / 286.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1022, allocations: 0 / 335.6 MB, free: 12.43 MB / 286.1 MB Notification: Performance of Templates: time 0.002847/0.105, allocations: 0.628 MB / 336.2 MB, free: 11.8 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.makefile (rm -f Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & ./Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches