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/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 4.0.0+maint.om/package.mo", uses=false) 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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001589/0.001589, allocations: 99.73 kB / 16.5 MB, free: 6.688 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.001814/0.001814, allocations: 193.2 kB / 17.42 MB, free: 6.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.295/1.295, allocations: 222.9 MB / 241.1 MB, free: 15.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009432/0.0009432, allocations: 46.92 kB / 299.9 MB, free: 6.273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07885/0.07981, allocations: 49.45 MB / 349.4 MB, free: 4.82 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.002333/0.08218, allocations: 1.666 MB / 351.1 MB, free: 3.137 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006576/0.08285, allocations: 0.5182 MB / 351.6 MB, free: 2.613 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.339e-05/0.08289, allocations: 4 kB / 351.6 MB, free: 2.609 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.507e-05/0.08294, allocations: 7.922 kB / 351.6 MB, free: 2.602 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 5.915e-05/0.08301, allocations: 19.84 kB / 351.6 MB, free: 2.582 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001595/0.08318, allocations: 27.91 kB / 351.6 MB, free: 2.555 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.268e-05/0.08328, allocations: 91.55 kB / 351.7 MB, free: 2.465 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001017/0.08339, allocations: 31.97 kB / 351.8 MB, free: 2.434 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.873e-05/0.08343, allocations: 39.84 kB / 351.8 MB, free: 2.395 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.114e-05/0.08351, allocations: 43.84 kB / 351.8 MB, free: 2.352 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.573e-05/0.08353, allocations: 7.938 kB / 351.8 MB, free: 2.344 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.599e-05/0.08361, allocations: 8 kB / 351.9 MB, free: 2.336 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.685e-05/0.08363, allocations: 19.92 kB / 351.9 MB, free: 2.316 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.595e-05/0.08368, allocations: 43.8 kB / 351.9 MB, free: 2.273 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001223/0.08381, allocations: 95.95 kB / 352 MB, free: 2.18 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.08382, allocations: 4 kB / 352 MB, free: 2.176 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.41e-07/0.08382, allocations: 0 / 352 MB, free: 2.176 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.357e-06/0.08383, allocations: 0 / 352 MB, free: 2.176 MB / 286.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.000396/0.08423, allocations: 383.3 kB / 352.4 MB, free: 1.754 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.967e-05/0.08427, allocations: 8.031 kB / 352.4 MB, free: 1.746 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001136/0.08439, allocations: 16.83 kB / 352.4 MB, free: 1.73 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.706e-05/0.08449, allocations: 164.3 kB / 352.6 MB, free: 1.531 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.908e-06/0.08451, allocations: 4.375 kB / 352.6 MB, free: 1.527 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.535e-05/0.08454, allocations: 12.38 kB / 352.6 MB, free: 1.516 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001506/0.0847, allocations: 97.86 kB / 352.7 MB, free: 1.414 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.08472, allocations: 4 kB / 352.7 MB, free: 1.41 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.472e-05/0.08474, allocations: 4 kB / 352.7 MB, free: 1.406 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.591e-06/0.08475, allocations: 0 / 352.7 MB, free: 1.406 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001005/0.08485, allocations: 51.91 kB / 352.7 MB, free: 1.355 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005835/0.08544, allocations: 404.4 kB / 353.1 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001122/0.08557, allocations: 70.55 kB / 353.2 MB, free: 0.832 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.747e-05/0.08562, allocations: 29 kB / 353.2 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.284e-06/0.08564, allocations: 4 kB / 353.2 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.16e-05/0.08566, allocations: 46.48 kB / 353.3 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of pre-optimization done (n=8): time 1.202e-06/0.08567, allocations: 0 / 353.3 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.0001824/0.08586, allocations: 93.53 kB / 353.4 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.732e-05/0.08589, allocations: 55.39 kB / 353.4 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.216e-05/0.08596, allocations: 101.9 kB / 353.5 MB, free: 480 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.288e-05/0.08598, allocations: 25.7 kB / 353.6 MB, free: 448 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.409e-05/0.08603, allocations: 103.9 kB / 353.7 MB, free: 340 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.118e-05/0.08606, allocations: 31.55 kB / 353.7 MB, free: 308 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.069e-05/0.0861, allocations: 29.72 kB / 353.7 MB, free: 272 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.514e-05/0.0862, allocations: 318.8 kB / 354 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.851e-05/0.08625, allocations: 20 kB / 354 MB, free: 15.93 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.34e-05/0.08631, allocations: 51.62 kB / 354.1 MB, free: 15.87 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.827e-05/0.0864, allocations: 70.5 kB / 354.2 MB, free: 15.79 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.08641, allocations: 0 / 354.2 MB, free: 15.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001415/0.08655, allocations: 97.56 kB / 354.3 MB, free: 15.69 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.009e-05/0.08657, allocations: 12.06 kB / 354.3 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/0.08658, allocations: 0 / 354.3 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.053e-05/0.0866, allocations: 3.938 kB / 354.3 MB, free: 15.67 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001182/0.08672, allocations: 31.92 kB / 354.3 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.643e-06/0.08674, allocations: 7.938 kB / 354.3 MB, free: 15.63 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.617e-05/0.0868, allocations: 7.906 kB / 354.3 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.073e-06/0.08681, allocations: 4 kB / 354.3 MB, free: 15.62 MB / 302.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 6.801e-05/0.08688, allocations: 117.8 kB / 354.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.917e-05/0.08692, allocations: 15.88 kB / 354.5 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.639e-05/0.08695, allocations: 8.375 kB / 354.5 MB, free: 15.47 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.08696, allocations: 7.938 kB / 354.5 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-06/0.08697, allocations: 0 / 354.5 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-06/0.08697, allocations: 0 / 354.5 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001698/0.08715, allocations: 189.6 kB / 354.7 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.71e-07/0.08716, allocations: 0 / 354.7 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001002/0.08726, allocations: 19.94 kB / 354.7 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.08727, allocations: 0 / 354.7 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.104e-05/0.08729, allocations: 8 kB / 354.7 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.168e-06/0.0873, allocations: 11.92 kB / 354.7 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.0873, allocations: 0 / 354.7 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001739/0.08748, allocations: 183.5 kB / 354.9 MB, free: 14.99 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.044e-05/0.08752, allocations: 81.09 kB / 355 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.592e-05/0.08754, allocations: 4.031 kB / 355 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.729e-05/0.08761, allocations: 8.188 kB / 355 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.569e-05/0.08763, allocations: 4 kB / 355 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.829e-06/0.08765, allocations: 8.062 kB / 355 MB, free: 14.87 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.072e-05/0.08769, allocations: 91.2 kB / 355.1 MB, free: 14.78 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.0877, allocations: 3.938 kB / 355.1 MB, free: 14.78 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002376/0.08794, allocations: 23.91 kB / 355.1 MB, free: 14.75 MB / 302.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 7.189e-05/0.08802, allocations: 107.1 kB / 355.2 MB, free: 14.64 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001151/0.08814, allocations: 55.91 kB / 355.3 MB, free: 14.59 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.08815, allocations: 0 / 355.3 MB, free: 14.59 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.425e-05/0.08818, allocations: 23.98 kB / 355.3 MB, free: 14.56 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002572/0.08845, allocations: 12.12 kB / 355.3 MB, free: 14.55 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000532/0.08899, allocations: 344.5 kB / 355.6 MB, free: 14.18 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001991/0.0892, allocations: 0.6926 MB / 356.3 MB, free: 13.46 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.382e-05/0.08924, allocations: 3.984 kB / 356.3 MB, free: 13.46 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.192e-05/0.08927, allocations: 11.44 kB / 356.3 MB, free: 13.45 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.08927, allocations: 0 / 356.3 MB, free: 13.45 MB / 302.1 MB Notification: Performance of Templates: time 0.002351/0.09163, allocations: 0.594 MB / 356.9 MB, free: 12.86 MB / 302.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches