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.001153/0.001153, allocations: 89.31 kB / 16.3 MB, free: 6.457 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.001345/0.001345, allocations: 179.7 kB / 17.2 MB, free: 6.34 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.256/1.256, allocations: 223.2 MB / 241.1 MB, free: 5.465 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002626/0.000263, allocations: 5.438 kB / 300.7 MB, free: 6.492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08733/0.08761, allocations: 50.43 MB / 351.1 MB, free: 11.91 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.001702/0.08935, allocations: 1.267 MB / 352.4 MB, free: 10.63 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007556/0.09013, allocations: 495.1 kB / 352.9 MB, free: 10.14 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.208e-05/0.0902, allocations: 8 kB / 352.9 MB, free: 10.14 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.066e-05/0.09024, allocations: 7.922 kB / 352.9 MB, free: 10.13 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.583e-05/0.09032, allocations: 31.92 kB / 352.9 MB, free: 10.1 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001722/0.0905, allocations: 23.92 kB / 353 MB, free: 10.07 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001045/0.09061, allocations: 71.83 kB / 353 MB, free: 10 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000125/0.09075, allocations: 28.2 kB / 353.1 MB, free: 9.977 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.591e-05/0.09081, allocations: 27.92 kB / 353.1 MB, free: 9.949 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.917e-05/0.09092, allocations: 43.83 kB / 353.1 MB, free: 9.906 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.783e-05/0.09094, allocations: 4 kB / 353.1 MB, free: 9.902 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.432e-05/0.09103, allocations: 8 kB / 353.1 MB, free: 9.895 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.773e-05/0.09106, allocations: 12 kB / 353.1 MB, free: 9.883 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.3e-05/0.09111, allocations: 45.62 kB / 353.2 MB, free: 9.832 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001174/0.09123, allocations: 63.86 kB / 353.3 MB, free: 9.77 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.09124, allocations: 0 / 353.3 MB, free: 9.77 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.577e-06/0.09125, allocations: 3.984 kB / 353.3 MB, free: 9.766 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.358e-06/0.09126, allocations: 0 / 353.3 MB, free: 9.766 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.0004641/0.09173, allocations: 367.2 kB / 353.6 MB, free: 9.359 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.917e-05/0.09178, allocations: 12.03 kB / 353.6 MB, free: 9.348 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001367/0.09192, allocations: 11.86 kB / 353.6 MB, free: 9.336 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001691/0.0921, allocations: 171 kB / 353.8 MB, free: 9.129 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.509e-05/0.09212, allocations: 8 kB / 353.8 MB, free: 9.121 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.085e-05/0.09216, allocations: 11.92 kB / 353.8 MB, free: 9.109 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001779/0.09234, allocations: 85.62 kB / 353.9 MB, free: 9.02 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.265e-05/0.09236, allocations: 3.906 kB / 353.9 MB, free: 9.016 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.386e-05/0.09238, allocations: 4 kB / 353.9 MB, free: 9.012 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.0924, allocations: 11.94 kB / 353.9 MB, free: 9 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000122/0.09252, allocations: 43.97 kB / 354 MB, free: 8.957 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006694/0.0932, allocations: 404.4 kB / 354.4 MB, free: 8.512 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001237/0.09334, allocations: 78.66 kB / 354.4 MB, free: 8.426 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.189e-05/0.09336, allocations: 3.953 kB / 354.4 MB, free: 8.422 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.038e-05/0.09338, allocations: 30.56 kB / 354.5 MB, free: 8.383 MB / 286.1 MB Notification: Performance of pre-optimization done (n=8): time 1.252e-06/0.09339, allocations: 0 / 354.5 MB, free: 8.383 MB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002002/0.09359, allocations: 81.69 kB / 354.6 MB, free: 8.297 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.485e-05/0.09364, allocations: 55.41 kB / 354.6 MB, free: 8.23 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.205e-05/0.09371, allocations: 109.8 kB / 354.7 MB, free: 8.113 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.314e-05/0.09373, allocations: 25.7 kB / 354.7 MB, free: 8.082 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.201e-05/0.0938, allocations: 107.9 kB / 354.8 MB, free: 7.973 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.62e-05/0.09383, allocations: 35.69 kB / 354.9 MB, free: 7.938 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.488e-06/0.09384, allocations: 0 / 354.9 MB, free: 7.938 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001002/0.09395, allocations: 318.8 kB / 355.2 MB, free: 7.617 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.286e-05/0.094, allocations: 23.98 kB / 355.2 MB, free: 7.594 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.377e-05/0.09407, allocations: 42.56 kB / 355.3 MB, free: 7.543 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.335e-05/0.09413, allocations: 32 kB / 355.3 MB, free: 7.512 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.09413, allocations: 0 / 355.3 MB, free: 7.512 MB / 286.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.00015/0.09429, allocations: 101.5 kB / 355.4 MB, free: 7.406 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.09431, allocations: 14.92 kB / 355.4 MB, free: 7.395 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.09432, allocations: 0 / 355.4 MB, free: 7.395 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.018e-05/0.09434, allocations: 0 / 355.4 MB, free: 7.395 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001272/0.09447, allocations: 31.92 kB / 355.4 MB, free: 7.363 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.456e-05/0.09449, allocations: 4 kB / 355.4 MB, free: 7.359 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.203e-05/0.09456, allocations: 15.91 kB / 355.5 MB, free: 7.344 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.181e-06/0.09457, allocations: 0 / 355.5 MB, free: 7.344 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.417e-05/0.09465, allocations: 117.8 kB / 355.6 MB, free: 7.219 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.633e-05/0.09468, allocations: 7.984 kB / 355.6 MB, free: 7.211 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.157e-05/0.09472, allocations: 12.33 kB / 355.6 MB, free: 7.195 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-06/0.09473, allocations: 4 kB / 355.6 MB, free: 7.191 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.09474, allocations: 256 / 355.6 MB, free: 7.191 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.09474, allocations: 0 / 355.6 MB, free: 7.191 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001894/0.09494, allocations: 185.6 kB / 355.8 MB, free: 6.961 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.09495, allocations: 4 kB / 355.8 MB, free: 6.957 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001025/0.09506, allocations: 19.94 kB / 355.8 MB, free: 6.938 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.09507, allocations: 0 / 355.8 MB, free: 6.938 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.01e-05/0.09508, allocations: 4 kB / 355.8 MB, free: 6.934 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.921e-06/0.09509, allocations: 15.88 kB / 355.8 MB, free: 6.918 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.0951, allocations: 0 / 355.8 MB, free: 6.918 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001957/0.0953, allocations: 187.5 kB / 356 MB, free: 6.719 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.571e-05/0.09536, allocations: 85 kB / 356.1 MB, free: 6.617 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.603e-05/0.09538, allocations: 4.062 kB / 356.1 MB, free: 6.613 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.876e-05/0.09545, allocations: 11.94 kB / 356.1 MB, free: 6.602 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.819e-05/0.09548, allocations: 3.953 kB / 356.1 MB, free: 6.598 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.279e-06/0.09549, allocations: 4 kB / 356.1 MB, free: 6.594 MB / 286.1 MB Notification: Performance of sorting global known variables: time 3.911e-05/0.09553, allocations: 87.27 kB / 356.2 MB, free: 6.508 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.204e-06/0.09554, allocations: 0 / 356.2 MB, free: 6.508 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002437/0.09579, allocations: 23.94 kB / 356.2 MB, free: 6.484 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 (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 9.114e-05/0.09588, allocations: 99.19 kB / 356.3 MB, free: 6.379 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001425/0.09603, allocations: 56.38 kB / 356.4 MB, free: 6.324 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.09604, allocations: 3.938 kB / 356.4 MB, free: 6.32 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 3.365e-05/0.09608, allocations: 23.98 kB / 356.4 MB, free: 6.297 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001977/0.09629, allocations: 4.484 kB / 356.4 MB, free: 6.293 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005919/0.09689, allocations: 397 kB / 356.8 MB, free: 5.875 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002629/0.09716, allocations: 0.7004 MB / 357.5 MB, free: 5.148 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.284e-05/0.0972, allocations: 0 / 357.5 MB, free: 5.148 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.483e-05/0.09724, allocations: 15.44 kB / 357.5 MB, free: 5.133 MB / 286.1 MB Notification: Performance of SimCode: time 2.21e-07/0.09724, allocations: 0 / 357.5 MB, free: 5.133 MB / 286.1 MB Notification: Performance of Templates: time 0.002439/0.09968, allocations: 0.5588 MB / 358.1 MB, free: 4.578 MB / 286.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","../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches