Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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_4.0.0_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_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008922/0.0008922, allocations: 175.1 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.356/1.356, allocations: 221.3 MB / 235.5 MB, free: 2.871 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008701/0.0008704, allocations: 95.8 kB / 286.5 MB, free: 168 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.976e-05/2.988e-05, allocations: 4 kB / 343.8 MB, free: 4.301 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1228, allocations: 50.41 MB / 394.2 MB, free: 1.848 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3513/0.4741, allocations: 81.57 MB / 475.8 MB, free: 5.961 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000165/0.4743, allocations: 75.8 kB / 475.9 MB, free: 5.891 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04121/0.5156, allocations: 16.15 MB / 492 MB, free: 5.621 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.5156, allocations: 3.938 kB / 492 MB, free: 5.617 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.447e-05/0.5157, allocations: 19.98 kB / 492.1 MB, free: 5.598 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: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.001782/0.5174, allocations: 1.065 MB / 493.1 MB, free: 4.465 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.781e-05/0.5175, allocations: 8.031 kB / 493.1 MB, free: 4.457 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001692/0.5177, allocations: 110.9 kB / 493.2 MB, free: 4.348 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008487/0.5185, allocations: 0.5279 MB / 493.8 MB, free: 3.781 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001947/0.5187, allocations: 150.4 kB / 493.9 MB, free: 3.617 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.139e-05/0.5188, allocations: 52 kB / 494 MB, free: 3.566 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001065/0.5199, allocations: 0.7832 MB / 494.8 MB, free: 2.684 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.774e-05/0.5199, allocations: 3.953 kB / 494.8 MB, free: 2.68 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.2e-05/0.52, allocations: 28 kB / 494.8 MB, free: 2.652 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.854e-05/0.52, allocations: 16 kB / 494.8 MB, free: 2.637 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008094/0.5209, allocations: 0.4932 MB / 495.3 MB, free: 2.145 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003035/0.5239, allocations: 2.084 MB / 497.4 MB, free: 15.96 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001085/0.525, allocations: 0.924 MB / 498.3 MB, free: 14.95 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004805/0.5255, allocations: 330.9 kB / 498.6 MB, free: 14.62 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.07e-05/0.5256, allocations: 20.75 kB / 498.6 MB, free: 14.6 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.48e-05/0.5256, allocations: 51.34 kB / 498.7 MB, free: 14.54 MB / 378.7 MB Notification: Performance of pre-optimization done (n=74): time 2.735e-06/0.5256, allocations: 0 / 498.7 MB, free: 14.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=74): time 0.002075/0.5277, allocations: 0.8967 MB / 499.6 MB, free: 13.62 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003265/0.528, allocations: 0.8235 MB / 0.4887 GB, free: 12.61 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006658/0.5287, allocations: 0.5467 MB / 0.4892 GB, free: 12.05 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.181e-05/0.5288, allocations: 41.7 kB / 0.4893 GB, free: 12 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000247/0.529, allocations: 333 kB / 0.4896 GB, free: 11.67 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001991/0.5293, allocations: 256.2 kB / 0.4898 GB, free: 11.42 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.913e-05/0.5293, allocations: 16 kB / 0.4898 GB, free: 11.4 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001806/0.5295, allocations: 390.7 kB / 0.4902 GB, free: 11.01 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003805/0.5299, allocations: 217.6 kB / 0.4904 GB, free: 10.8 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005994/0.5305, allocations: 497.7 kB / 0.4909 GB, free: 10.21 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005029/0.531, allocations: 347.7 kB / 0.4912 GB, free: 9.859 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.531, allocations: 0 / 0.4912 GB, free: 9.859 MB / 378.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002117/0.5331, allocations: 1.05 MB / 0.4922 GB, free: 8.77 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.964e-05/0.5332, allocations: 85.11 kB / 0.4923 GB, free: 8.668 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.867e-06/0.5332, allocations: 0 / 0.4923 GB, free: 8.668 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006329/0.5339, allocations: 207.3 kB / 0.4925 GB, free: 8.453 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006227/0.5345, allocations: 147.8 kB / 0.4927 GB, free: 8.309 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006286/0.5408, allocations: 6.216 MB / 0.4987 GB, free: 1.559 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009362/0.5418, allocations: 119.4 kB / 0.4989 GB, free: 1.441 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.242e-05/0.5418, allocations: 23.98 kB / 0.4989 GB, free: 1.418 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 () * 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.0002129/0.5421, allocations: 161.3 kB / 0.499 GB, free: 1.254 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001451/0.5422, allocations: 86.97 kB / 0.4991 GB, free: 1.168 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002222/0.5424, allocations: 92.06 kB / 0.4992 GB, free: 1.07 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.5425, allocations: 7.938 kB / 0.4992 GB, free: 1.062 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.5425, allocations: 4 kB / 0.4992 GB, free: 1.059 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00193/0.5444, allocations: 1.189 MB / 0.5004 GB, free: 15.75 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003276/0.5477, allocations: 1.862 MB / 0.5022 GB, free: 13.82 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.938e-06/0.5477, allocations: 0 / 0.5022 GB, free: 13.82 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006824/0.5484, allocations: 155.8 kB / 0.5023 GB, free: 13.67 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004091/0.5488, allocations: 166.7 kB / 0.5025 GB, free: 13.5 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.469e-05/0.5489, allocations: 15.98 kB / 0.5025 GB, free: 13.48 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005068/0.554, allocations: 4.805 MB / 0.5072 GB, free: 8.281 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.554, allocations: 0 / 0.5072 GB, free: 8.281 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002566/0.5566, allocations: 1.281 MB / 0.5085 GB, free: 6.973 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000412/0.557, allocations: 236 kB / 0.5087 GB, free: 6.723 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001016/0.5571, allocations: 16.19 kB / 0.5087 GB, free: 6.707 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005337/0.5576, allocations: 59.91 kB / 0.5088 GB, free: 6.648 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001839/0.5578, allocations: 72.66 kB / 0.5088 GB, free: 6.578 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.209e-05/0.5579, allocations: 16 kB / 0.5088 GB, free: 6.562 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005894/0.5585, allocations: 451.2 kB / 0.5093 GB, free: 6.125 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5585, allocations: 0 / 0.5093 GB, free: 6.125 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008842/0.5594, allocations: 283.7 kB / 0.5095 GB, free: 5.848 MB / 394.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 () * 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.0002561/0.5597, allocations: 131.1 kB / 0.5097 GB, free: 5.707 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001743/0.5614, allocations: 1.251 MB / 0.5109 GB, free: 4.367 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.421e-06/0.5614, allocations: 4 kB / 0.5109 GB, free: 4.363 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001093/0.5625, allocations: 0.723 MB / 0.5116 GB, free: 3.602 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008308/0.5634, allocations: 199.1 kB / 0.5118 GB, free: 3.414 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002114/0.5655, allocations: 1.236 MB / 0.513 GB, free: 2.152 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005308/0.566, allocations: 0.9558 MB / 0.5139 GB, free: 1.172 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003923/0.5664, allocations: 94.22 kB / 0.514 GB, free: 1.078 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001682/0.5666, allocations: 67.42 kB / 0.5141 GB, free: 1.012 MB / 394.7 MB Notification: Performance of SimCode: time 3.9e-07/0.5666, allocations: 3.938 kB / 0.5141 GB, free: 1.008 MB / 394.7 MB Notification: Performance of Templates: time 0.02413/0.5908, allocations: 16.1 MB / 0.5298 GB, free: 1.098 MB / 410.7 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.makefile (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & ./Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches