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.001462/0.001462, allocations: 179.9 kB / 16.38 MB, free: 5.766 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.242/1.242, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008534/0.0008535, allocations: 83.8 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003084/0.0003084, allocations: 11.94 kB / 351.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2077/0.208, allocations: 50.4 MB / 401.5 MB, free: 32.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09182/0.2999, allocations: 81.64 MB / 483.1 MB, free: 14.85 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002333/0.3002, allocations: 71.97 kB / 483.2 MB, free: 14.78 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04185/0.342, allocations: 16.15 MB / 499.4 MB, free: 14.51 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.216e-06/0.3421, allocations: 0 / 499.4 MB, free: 14.51 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.046e-05/0.3421, allocations: 27.86 kB / 499.4 MB, free: 14.48 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.002035/0.3442, allocations: 1.204 MB / 0.4889 GB, free: 13.21 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.3442, allocations: 12.03 kB / 0.4889 GB, free: 13.2 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001705/0.3444, allocations: 106.9 kB / 0.489 GB, free: 13.09 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000812/0.3452, allocations: 0.5357 MB / 0.4895 GB, free: 12.51 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001847/0.3454, allocations: 138.4 kB / 0.4896 GB, free: 12.36 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.826e-05/0.3455, allocations: 63.98 kB / 0.4897 GB, free: 12.3 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001318/0.3468, allocations: 0.8607 MB / 0.4905 GB, free: 11.34 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.191e-05/0.3469, allocations: 11.84 kB / 0.4905 GB, free: 11.32 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.494e-05/0.3469, allocations: 28 kB / 0.4906 GB, free: 11.3 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.104e-05/0.3469, allocations: 12 kB / 0.4906 GB, free: 11.29 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001407/0.3484, allocations: 0.6531 MB / 0.4912 GB, free: 10.63 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003173/0.3515, allocations: 2.08 MB / 0.4932 GB, free: 8.453 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001632/0.3532, allocations: 1.073 MB / 0.4943 GB, free: 7.297 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.727e-05/0.3533, allocations: 16.64 kB / 0.4943 GB, free: 7.281 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.248e-05/0.3533, allocations: 47.22 kB / 0.4944 GB, free: 7.227 MB / 378.7 MB Notification: Performance of pre-optimization done (n=74): time 2.514e-06/0.3533, allocations: 0 / 0.4944 GB, free: 7.227 MB / 378.7 MB Notification: Performance of matching and sorting (n=74): time 0.005353/0.3587, allocations: 2.006 MB / 0.4963 GB, free: 5.129 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003101/0.359, allocations: 0.8195 MB / 0.4971 GB, free: 4.113 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006481/0.3597, allocations: 0.5543 MB / 0.4977 GB, free: 3.551 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.502e-05/0.3597, allocations: 41.7 kB / 0.4977 GB, free: 3.504 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002359/0.36, allocations: 338.8 kB / 0.498 GB, free: 3.168 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002039/0.3602, allocations: 268.1 kB / 0.4983 GB, free: 2.902 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.882e-05/0.3602, allocations: 20 kB / 0.4983 GB, free: 2.883 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001558/0.3604, allocations: 386.7 kB / 0.4987 GB, free: 2.496 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006508/0.361, allocations: 293.8 kB / 0.4989 GB, free: 2.207 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008511/0.3619, allocations: 0.5702 MB / 0.4995 GB, free: 1.539 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007283/0.3626, allocations: 422.7 kB / 0.4999 GB, free: 1.113 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.3627, allocations: 0 / 0.4999 GB, free: 1.113 MB / 378.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.1639/0.5266, allocations: 1.175 MB / 0.5011 GB, free: 94.54 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.338e-05/0.5267, allocations: 87.2 kB / 0.5011 GB, free: 94.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.5267, allocations: 4.141 kB / 0.5011 GB, free: 94.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007521/0.5275, allocations: 248.5 kB / 0.5014 GB, free: 94.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000838/0.5283, allocations: 147.4 kB / 0.5015 GB, free: 94.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006481/0.5348, allocations: 6.578 MB / 0.5079 GB, free: 89.37 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008722/0.5357, allocations: 113.5 kB / 0.508 GB, free: 89.37 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.611e-05/0.5358, allocations: 27.7 kB / 0.5081 GB, free: 89.37 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.0004034/0.5362, allocations: 226.5 kB / 0.5083 GB, free: 89.25 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001455/0.5363, allocations: 84.09 kB / 0.5084 GB, free: 89.23 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000166/0.5365, allocations: 95.91 kB / 0.5085 GB, free: 89.22 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.5365, allocations: 7.344 kB / 0.5085 GB, free: 89.22 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.5365, allocations: 0.75 kB / 0.5085 GB, free: 89.22 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002475/0.539, allocations: 1.337 MB / 0.5098 GB, free: 88.65 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003226/0.5422, allocations: 2.013 MB / 0.5117 GB, free: 88.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.5423, allocations: 0 / 0.5117 GB, free: 88.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006722/0.5429, allocations: 155.3 kB / 0.5119 GB, free: 88.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004632/0.5434, allocations: 222.3 kB / 0.5121 GB, free: 88.27 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.162e-05/0.5435, allocations: 15.09 kB / 0.5121 GB, free: 88.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004974/0.5484, allocations: 5.124 MB / 0.5171 GB, free: 84.42 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.5485, allocations: 6.328 kB / 0.5171 GB, free: 84.42 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002806/0.5513, allocations: 1.516 MB / 0.5186 GB, free: 83.84 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002524/0.5515, allocations: 240.5 kB / 0.5188 GB, free: 83.65 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.527e-05/0.5516, allocations: 18.09 kB / 0.5189 GB, free: 83.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005181/0.5522, allocations: 61.22 kB / 0.5189 GB, free: 83.63 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001328/0.5523, allocations: 59.97 kB / 0.519 GB, free: 83.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.729e-05/0.5524, allocations: 24.78 kB / 0.519 GB, free: 83.61 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004036/0.5528, allocations: 447.6 kB / 0.5194 GB, free: 83.4 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5528, allocations: 6.062 kB / 0.5194 GB, free: 83.4 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007458/0.5535, allocations: 286.2 kB / 0.5197 GB, free: 83.37 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.0001752/0.5537, allocations: 151.3 kB / 0.5198 GB, free: 83.27 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00174/0.5555, allocations: 1.391 MB / 0.5212 GB, free: 82.39 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.5555, allocations: 3.062 kB / 0.5212 GB, free: 82.39 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001154/0.5566, allocations: 0.8133 MB / 0.522 GB, free: 81.91 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007262/0.5574, allocations: 217.4 kB / 0.5222 GB, free: 81.84 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00208/0.5595, allocations: 1.911 MB / 0.5241 GB, free: 80.72 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002898/0.5598, allocations: 0.9567 MB / 0.525 GB, free: 80.02 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003611/0.5601, allocations: 89.78 kB / 0.5251 GB, free: 80 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001494/0.5603, allocations: 63.88 kB / 0.5252 GB, free: 79.99 MB / 378.7 MB Notification: Performance of SimCode: time 3.41e-07/0.5603, allocations: 0 / 0.5252 GB, free: 79.99 MB / 378.7 MB Notification: Performance of Templates: time 0.01916/0.5795, allocations: 16.09 MB / 0.5409 GB, free: 67.7 MB / 378.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