Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002444/0.002444, allocations: 195 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.97/2.97, allocations: 226.5 MB / 245.4 MB, free: 8.172 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001496/0.001496, allocations: 110.6 kB / 297.4 MB, free: 6.883 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004105/0.0004112, allocations: 4 kB / 357.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3872/0.3876, allocations: 51.29 MB / 408.7 MB, free: 27.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1601/0.5478, allocations: 77.24 MB / 485.9 MB, free: 14.38 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003683/0.5483, allocations: 67.97 kB / 486 MB, free: 14.32 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007008/0.5553, allocations: 1.844 MB / 487.8 MB, free: 12.49 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.815e-06/0.5553, allocations: 0 / 487.8 MB, free: 12.49 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.498e-06/0.5554, allocations: 0 / 487.8 MB, free: 12.49 MB / 362.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.0005881/0.556, allocations: 371.4 kB / 488.2 MB, free: 12.07 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.02e-05/0.556, allocations: 12.03 kB / 488.2 MB, free: 12.06 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001735/0.5562, allocations: 12.78 kB / 488.2 MB, free: 12.05 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001792/0.5564, allocations: 168.3 kB / 488.4 MB, free: 11.85 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.06e-05/0.5564, allocations: 8.375 kB / 488.4 MB, free: 11.84 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.817e-05/0.5565, allocations: 4.375 kB / 488.4 MB, free: 11.84 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002487/0.5567, allocations: 92.56 kB / 488.5 MB, free: 11.74 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.5568, allocations: 192 / 488.5 MB, free: 11.74 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.09e-05/0.5568, allocations: 11.94 kB / 488.5 MB, free: 11.73 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.807e-06/0.5568, allocations: 4 kB / 488.5 MB, free: 11.73 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001775/0.557, allocations: 51.97 kB / 488.5 MB, free: 11.68 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005285/0.5623, allocations: 408.2 kB / 488.9 MB, free: 11.23 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002294/0.5626, allocations: 74.55 kB / 489 MB, free: 11.14 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001026/0.5627, allocations: 32.86 kB / 489 MB, free: 11.11 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.747e-05/0.5628, allocations: 3.984 kB / 489 MB, free: 11.11 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.974e-05/0.5628, allocations: 34.56 kB / 489.1 MB, free: 11.06 MB / 362.7 MB Notification: Performance of pre-optimization done (n=8): time 3.646e-06/0.5628, allocations: 3.938 kB / 489.1 MB, free: 11.06 MB / 362.7 MB Notification: Performance of matching and sorting (n=8): time 0.000348/0.5632, allocations: 81.83 kB / 489.1 MB, free: 10.97 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.008e-05/0.5633, allocations: 59.34 kB / 489.2 MB, free: 10.9 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001231/0.5634, allocations: 105.8 kB / 489.3 MB, free: 10.79 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.294e-05/0.5635, allocations: 29.7 kB / 489.3 MB, free: 10.75 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.989e-05/0.5635, allocations: 99.88 kB / 489.4 MB, free: 10.65 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.605e-05/0.5636, allocations: 27.56 kB / 489.5 MB, free: 10.62 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.004e-05/0.5636, allocations: 4 kB / 489.5 MB, free: 10.62 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001819/0.5638, allocations: 322.8 kB / 489.8 MB, free: 10.3 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.723e-05/0.5639, allocations: 16 kB / 489.8 MB, free: 10.28 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001057/0.564, allocations: 46.56 kB / 489.8 MB, free: 10.23 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000177/0.5642, allocations: 73.45 kB / 489.9 MB, free: 10.15 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.175e-06/0.5642, allocations: 0 / 489.9 MB, free: 10.15 MB / 362.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002698/0.5645, allocations: 105.5 kB / 490 MB, free: 10.04 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/0.5645, allocations: 4 kB / 490 MB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.363e-06/0.5646, allocations: 0 / 490 MB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.894e-05/0.5646, allocations: 4.062 kB / 490 MB, free: 10.03 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002026/0.5648, allocations: 31.92 kB / 490.1 MB, free: 10 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.035e-05/0.5648, allocations: 7.938 kB / 490.1 MB, free: 9.992 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.387e-05/0.565, allocations: 4 kB / 490.1 MB, free: 9.988 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.44e-05/0.565, allocations: 4 kB / 490.1 MB, free: 9.984 MB / 362.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 0.000149/0.5651, allocations: 121.8 kB / 490.2 MB, free: 9.855 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.94e-05/0.5652, allocations: 4.156 kB / 490.2 MB, free: 9.852 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.137e-05/0.5653, allocations: 8.375 kB / 490.2 MB, free: 9.84 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.542e-06/0.5653, allocations: 8 kB / 490.2 MB, free: 9.832 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.365e-05/0.5653, allocations: 7.938 kB / 490.2 MB, free: 9.824 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.5653, allocations: 0 / 490.2 MB, free: 9.824 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003422/0.5657, allocations: 189.6 kB / 490.4 MB, free: 9.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.5657, allocations: 3.938 kB / 490.4 MB, free: 9.586 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001851/0.5659, allocations: 19.94 kB / 490.4 MB, free: 9.566 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/0.5659, allocations: 0 / 490.4 MB, free: 9.566 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.014e-05/0.566, allocations: 7.984 kB / 490.4 MB, free: 9.559 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.425e-06/0.566, allocations: 0 / 490.4 MB, free: 9.559 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.566, allocations: 3.938 kB / 490.4 MB, free: 9.555 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003363/0.5663, allocations: 191.5 kB / 490.6 MB, free: 9.352 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.259e-05/0.5664, allocations: 85 kB / 490.7 MB, free: 9.25 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.707e-05/0.5664, allocations: 4.031 kB / 490.7 MB, free: 9.246 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000113/0.5666, allocations: 4 kB / 490.7 MB, free: 9.242 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.094e-05/0.5666, allocations: 7.938 kB / 490.7 MB, free: 9.234 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.262e-06/0.5666, allocations: 0 / 490.7 MB, free: 9.234 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.969e-05/0.5667, allocations: 87.27 kB / 490.8 MB, free: 9.148 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.67e-06/0.5667, allocations: 4.062 kB / 490.8 MB, free: 9.145 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004547/0.5672, allocations: 27.88 kB / 490.8 MB, free: 9.117 MB / 362.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 0.0001854/0.5674, allocations: 99.25 kB / 490.9 MB, free: 9.012 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002134/0.5676, allocations: 51.92 kB / 491 MB, free: 8.961 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.5677, allocations: 0 / 491 MB, free: 8.961 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.191e-05/0.5677, allocations: 23.98 kB / 491 MB, free: 8.938 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004681/0.5682, allocations: 8 kB / 491 MB, free: 8.93 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00105/0.5693, allocations: 422.7 kB / 491.4 MB, free: 8.48 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004354/0.5697, allocations: 0.6965 MB / 492.1 MB, free: 7.758 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.331e-05/0.5698, allocations: 11.44 kB / 492.1 MB, free: 7.746 MB / 362.7 MB Notification: Performance of SimCode: time 5.91e-07/0.5698, allocations: 0 / 492.1 MB, free: 7.746 MB / 362.7 MB Notification: Performance of Templates: time 0.007358/0.5772, allocations: 0.9505 MB / 493.1 MB, free: 6.797 MB / 362.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.makefile (rm -f Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & ./Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/HeatTransfer/Examples/TwoMasses/TwoMasses.csv","../files/Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches