Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001428/0.001428, allocations: 179.2 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.286/1.286, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007675/0.0007675, allocations: 84.48 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002621/0.0002622, allocations: 8 kB / 327 MB, free: 196 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2529/0.2532, allocations: 47.57 MB / 374.5 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.001571/0.2548, allocations: 1.31 MB / 375.9 MB, free: 44.37 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006774/0.2555, allocations: 497.9 kB / 376.3 MB, free: 43.98 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.269e-05/0.2556, allocations: 2.406 kB / 376.3 MB, free: 43.98 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.322e-05/0.2556, allocations: 9.109 kB / 376.4 MB, free: 43.98 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.265e-05/0.2557, allocations: 19.34 kB / 376.4 MB, free: 43.96 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001915/0.2559, allocations: 28.91 kB / 376.4 MB, free: 43.94 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000106/0.256, allocations: 93.34 kB / 376.5 MB, free: 43.88 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000135/0.2562, allocations: 23.77 kB / 376.5 MB, free: 43.87 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.884e-05/0.2562, allocations: 35.75 kB / 376.6 MB, free: 43.85 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.204e-05/0.2563, allocations: 32.52 kB / 376.6 MB, free: 43.83 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.682e-05/0.2563, allocations: 4.562 kB / 376.6 MB, free: 43.83 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.029e-05/0.2564, allocations: 16.02 kB / 376.6 MB, free: 43.82 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.201e-05/0.2564, allocations: 6.281 kB / 376.6 MB, free: 43.82 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.256e-05/0.2565, allocations: 42.52 kB / 376.7 MB, free: 43.78 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001033/0.2566, allocations: 72.92 kB / 376.7 MB, free: 43.73 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.2566, allocations: 1.156 kB / 376.7 MB, free: 43.73 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2566, allocations: 4 kB / 376.7 MB, free: 43.73 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.674e-06/0.2566, allocations: 3.938 kB / 376.7 MB, free: 43.72 MB / 298.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.0003864/0.257, allocations: 376.2 kB / 377.1 MB, free: 43.33 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.257, allocations: 10 kB / 377.1 MB, free: 43.33 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001212/0.2572, allocations: 9.438 kB / 377.1 MB, free: 43.33 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.354e-05/0.2573, allocations: 169.2 kB / 377.3 MB, free: 43.12 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.392e-05/0.2573, allocations: 8.422 kB / 377.3 MB, free: 43.12 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.087e-05/0.2573, allocations: 9.812 kB / 377.3 MB, free: 43.12 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000172/0.2575, allocations: 87.12 kB / 377.4 MB, free: 43.05 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.2575, allocations: 3.984 kB / 377.4 MB, free: 43.05 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.273e-05/0.2575, allocations: 5.156 kB / 377.4 MB, free: 43.04 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.792e-06/0.2576, allocations: 2.5 kB / 377.4 MB, free: 43.04 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001285/0.2577, allocations: 54.8 kB / 377.5 MB, free: 43.02 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005822/0.2583, allocations: 402 kB / 377.8 MB, free: 42.64 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001257/0.2584, allocations: 74.67 kB / 377.9 MB, free: 42.59 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.013e-05/0.2585, allocations: 28.33 kB / 377.9 MB, free: 42.57 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.717e-06/0.2585, allocations: 1.031 kB / 377.9 MB, free: 42.57 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.982e-05/0.2585, allocations: 35.53 kB / 378 MB, free: 42.53 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 1.834e-06/0.2585, allocations: 4 kB / 378 MB, free: 42.53 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001926/0.2587, allocations: 91.03 kB / 378.1 MB, free: 42.46 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.396e-05/0.2588, allocations: 53.44 kB / 378.1 MB, free: 42.4 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.601e-05/0.2588, allocations: 113.2 kB / 378.2 MB, free: 42.29 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.084e-05/0.2588, allocations: 25.7 kB / 378.3 MB, free: 42.26 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.861e-05/0.2589, allocations: 99.7 kB / 378.4 MB, free: 42.16 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.947e-05/0.2589, allocations: 31.73 kB / 378.4 MB, free: 42.13 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.901e-06/0.2589, allocations: 5.281 kB / 378.4 MB, free: 42.13 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.52e-05/0.259, allocations: 319.7 kB / 378.7 MB, free: 41.81 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.141e-05/0.259, allocations: 22.94 kB / 378.7 MB, free: 41.8 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.165e-05/0.2591, allocations: 42.41 kB / 378.8 MB, free: 41.76 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.188e-05/0.2591, allocations: 25.88 kB / 378.8 MB, free: 41.75 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2591, allocations: 0 / 378.8 MB, free: 41.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001495/0.2593, allocations: 111.6 kB / 378.9 MB, free: 41.68 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.442e-05/0.2593, allocations: 5.531 kB / 378.9 MB, free: 41.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.2593, allocations: 5.094 kB / 378.9 MB, free: 41.67 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.313e-05/0.2593, allocations: 1.031 kB / 378.9 MB, free: 41.67 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001254/0.2595, allocations: 28.48 kB / 378.9 MB, free: 41.66 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.2595, allocations: 1.125 kB / 378.9 MB, free: 41.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.567e-05/0.2596, allocations: 4.344 kB / 378.9 MB, free: 41.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.315e-06/0.2596, allocations: 7.375 kB / 379 MB, free: 41.66 MB / 298.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 () * 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 5.781e-05/0.2596, allocations: 118.2 kB / 379.1 MB, free: 41.54 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.416e-05/0.2597, allocations: 5.438 kB / 379.1 MB, free: 41.54 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.982e-05/0.2597, allocations: 13.72 kB / 379.1 MB, free: 41.53 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.2597, allocations: 1.375 kB / 379.1 MB, free: 41.53 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.2597, allocations: 3.938 kB / 379.1 MB, free: 41.52 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.2597, allocations: 4.984 kB / 379.1 MB, free: 41.52 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001451/0.2599, allocations: 182.5 kB / 379.3 MB, free: 41.31 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.2599, allocations: 0 / 379.3 MB, free: 41.31 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001041/0.26, allocations: 27.55 kB / 379.3 MB, free: 41.3 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.26, allocations: 1.344 kB / 379.3 MB, free: 41.3 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.566e-06/0.26, allocations: 0 / 379.3 MB, free: 41.3 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.26, allocations: 5.094 kB / 379.3 MB, free: 41.29 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.26, allocations: 4 kB / 379.3 MB, free: 41.29 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000172/0.2602, allocations: 195.9 kB / 379.5 MB, free: 41.12 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.038e-05/0.2602, allocations: 91.05 kB / 379.6 MB, free: 41.02 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.476e-05/0.2603, allocations: 1 kB / 379.6 MB, free: 41.02 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.104e-05/0.2603, allocations: 1.281 kB / 379.6 MB, free: 41.02 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.706e-05/0.2604, allocations: 7.078 kB / 379.6 MB, free: 41.01 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.759e-06/0.2604, allocations: 5.031 kB / 379.6 MB, free: 41.01 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.68e-05/0.2604, allocations: 88.69 kB / 379.7 MB, free: 40.93 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2604, allocations: 0 / 379.7 MB, free: 40.93 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000225/0.2606, allocations: 22.41 kB / 379.7 MB, free: 40.92 MB / 298.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 () * 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 8.405e-05/0.2607, allocations: 104.9 kB / 379.8 MB, free: 40.82 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001278/0.2609, allocations: 48.89 kB / 379.9 MB, free: 40.8 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.2609, allocations: 3.938 kB / 379.9 MB, free: 40.8 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.297e-05/0.2609, allocations: 27.03 kB / 379.9 MB, free: 40.79 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002598/0.2612, allocations: 19.73 kB / 379.9 MB, free: 40.77 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000573/0.2618, allocations: 406.1 kB / 380.3 MB, free: 40.43 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001429/0.2619, allocations: 0.6964 MB / 381 MB, free: 39.72 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.196e-05/0.2619, allocations: 10.75 kB / 381 MB, free: 39.71 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.262, allocations: 0.9688 kB / 381 MB, free: 39.71 MB / 298.7 MB Notification: Performance of Templates: time 0.002158/0.2641, allocations: 0.9383 MB / 382 MB, free: 39.24 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & ./Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/HeatTransfer/Examples/TwoMasses/TwoMasses.csv","../files/Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches