Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.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.FluidHeatFlow.Examples.TwoMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|heatCapacitor1.T|heatCapacitor2.T|pipe1.T|pipe2.T|pipe3.T",fileNamePrefix="Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|heatCapacitor1.T|heatCapacitor2.T|pipe1.T|pipe2.T|pipe3.T",fileNamePrefix="Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009891/0.0009892, allocations: 200 kB / 18.11 MB, free: 3.719 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.286/1.286, allocations: 226.5 MB / 245.4 MB, free: 6.504 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007792/0.0007792, allocations: 87.14 kB / 297.5 MB, free: 6.668 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002063/0.0002063, allocations: 7.984 kB / 358.1 MB, free: 10.06 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2139/0.2142, allocations: 51.29 MB / 409.4 MB, free: 27.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09581/0.31, allocations: 82.4 MB / 491.8 MB, free: 9.09 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002278/0.3103, allocations: 75.97 kB / 491.8 MB, free: 9.016 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04276/0.3531, allocations: 16.23 MB / 0.4962 GB, free: 8.668 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.365e-06/0.3531, allocations: 0 / 0.4962 GB, free: 8.668 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.491e-05/0.3532, allocations: 16 kB / 0.4962 GB, free: 8.652 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.002504/0.3557, allocations: 1.189 MB / 0.4973 GB, free: 7.395 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.88e-05/0.3557, allocations: 8.031 kB / 0.4973 GB, free: 7.387 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002655/0.356, allocations: 111.8 kB / 0.4974 GB, free: 7.277 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009179/0.3569, allocations: 0.5559 MB / 0.498 GB, free: 6.68 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002073/0.3572, allocations: 147 kB / 0.4981 GB, free: 6.516 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001058/0.3573, allocations: 60.75 kB / 0.4982 GB, free: 6.457 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001443/0.3587, allocations: 0.8758 MB / 0.499 GB, free: 5.48 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.052e-05/0.3588, allocations: 0 / 0.499 GB, free: 5.48 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.718e-05/0.3588, allocations: 28 kB / 0.4991 GB, free: 5.453 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.313e-05/0.3589, allocations: 12 kB / 0.4991 GB, free: 5.441 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001481/0.3603, allocations: 0.6493 MB / 0.4997 GB, free: 4.793 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003587/0.3639, allocations: 2.088 MB / 0.5018 GB, free: 2.613 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001697/0.3657, allocations: 1.081 MB / 0.5028 GB, free: 1.449 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007508/0.3664, allocations: 410.6 kB / 0.5032 GB, free: 1.047 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.268e-05/0.3665, allocations: 8.656 kB / 0.5032 GB, free: 1.035 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.069e-05/0.3665, allocations: 55.22 kB / 0.5033 GB, free: 0.9727 MB / 378.7 MB Notification: Performance of pre-optimization done (n=74): time 2.706e-06/0.3665, allocations: 0 / 0.5033 GB, free: 0.9727 MB / 378.7 MB Notification: Performance of matching and sorting (n=74): time 0.186/0.5526, allocations: 2.002 MB / 0.5052 GB, free: 90.43 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001764/0.5528, allocations: 0.8235 MB / 0.506 GB, free: 89.43 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001081/0.5539, allocations: 0.6258 MB / 0.5066 GB, free: 89.3 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001155/0.554, allocations: 47.11 kB / 0.5067 GB, free: 89.27 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002543/0.5543, allocations: 331.5 kB / 0.507 GB, free: 89.19 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000209/0.5545, allocations: 260 kB / 0.5072 GB, free: 89.07 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.218e-05/0.5545, allocations: 15.25 kB / 0.5073 GB, free: 89.07 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.00016/0.5547, allocations: 384.9 kB / 0.5076 GB, free: 88.76 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006789/0.5554, allocations: 303.2 kB / 0.5079 GB, free: 88.75 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008322/0.5562, allocations: 0.568 MB / 0.5085 GB, free: 88.48 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001297/0.5575, allocations: 0.7258 MB / 0.5092 GB, free: 88.36 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.5575, allocations: 0.9688 kB / 0.5092 GB, free: 88.36 MB / 378.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.003053/0.5606, allocations: 1.19 MB / 0.5103 GB, free: 88.12 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.236e-05/0.5607, allocations: 86 kB / 0.5104 GB, free: 88.03 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.5607, allocations: 0 / 0.5104 GB, free: 88.03 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006608/0.5613, allocations: 252.2 kB / 0.5107 GB, free: 88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006042/0.562, allocations: 152.5 kB / 0.5108 GB, free: 88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005691/0.5677, allocations: 6.488 MB / 0.5171 GB, free: 82.89 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006517/0.5683, allocations: 114.8 kB / 0.5173 GB, free: 82.88 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.921e-05/0.5684, allocations: 26.09 kB / 0.5173 GB, free: 82.88 MB / 378.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 (70): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {3 3,1 3,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003214/0.5687, allocations: 218.6 kB / 0.5175 GB, free: 82.76 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001317/0.5688, allocations: 93.84 kB / 0.5176 GB, free: 82.71 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001536/0.569, allocations: 93.34 kB / 0.5177 GB, free: 82.69 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.569, allocations: 7.625 kB / 0.5177 GB, free: 82.69 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.084e-05/0.569, allocations: 3.156 kB / 0.5177 GB, free: 82.69 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002026/0.5711, allocations: 1.332 MB / 0.519 GB, free: 81.98 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003154/0.5742, allocations: 2.018 MB / 0.5209 GB, free: 81.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.5742, allocations: 2.812 kB / 0.521 GB, free: 81.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006127/0.5749, allocations: 149.6 kB / 0.5211 GB, free: 81.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000444/0.5753, allocations: 222 kB / 0.5213 GB, free: 81.02 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.212e-05/0.5754, allocations: 14.64 kB / 0.5213 GB, free: 81.01 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004605/0.58, allocations: 5.061 MB / 0.5263 GB, free: 76.66 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.58, allocations: 3.609 kB / 0.5263 GB, free: 76.66 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002703/0.5827, allocations: 1.509 MB / 0.5277 GB, free: 76.04 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002656/0.583, allocations: 241.8 kB / 0.528 GB, free: 75.85 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.988e-05/0.5831, allocations: 15 kB / 0.528 GB, free: 75.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004866/0.5836, allocations: 67.55 kB / 0.528 GB, free: 75.82 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001385/0.5837, allocations: 61.27 kB / 0.5281 GB, free: 75.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.576e-05/0.5838, allocations: 22.7 kB / 0.5281 GB, free: 75.81 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004165/0.5842, allocations: 447.3 kB / 0.5286 GB, free: 75.61 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5842, allocations: 0 / 0.5286 GB, free: 75.61 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000676/0.5849, allocations: 286.3 kB / 0.5288 GB, free: 75.57 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (pipe1.T,pipe2.T,pipe3.T,heatCapacitor1.T,heatCapacitor2.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 (62): * Single equations (assignments): 59 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,1 3,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001729/0.5851, allocations: 143 kB / 0.529 GB, free: 75.46 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001709/0.5868, allocations: 1.392 MB / 0.5303 GB, free: 74.57 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.5868, allocations: 0 / 0.5303 GB, free: 74.57 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001135/0.588, allocations: 0.8115 MB / 0.5311 GB, free: 74.08 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008969/0.5889, allocations: 219.2 kB / 0.5313 GB, free: 74.01 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002197/0.5911, allocations: 1.912 MB / 0.5332 GB, free: 72.89 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003062/0.5914, allocations: 0.9437 MB / 0.5341 GB, free: 72.09 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000395/0.5918, allocations: 90.2 kB / 0.5342 GB, free: 72.03 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001425/0.5919, allocations: 63.44 kB / 0.5343 GB, free: 71.97 MB / 378.7 MB Notification: Performance of SimCode: time 3.6e-07/0.5919, allocations: 0 / 0.5343 GB, free: 71.97 MB / 378.7 MB Notification: Performance of Templates: time 0.02079/0.6127, allocations: 16.43 MB / 0.5503 GB, free: 57.61 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.makefile (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & ./Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches