Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.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.FluidHeatFlow.Examples.TwoMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|heatCapacitor1.T|heatCapacitor2.T|pipe1.T|pipe2.T|pipe3.T",fileNamePrefix="Modelica_3.2.3_cpp_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_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002435/0.002435, allocations: 185.2 kB / 16.41 MB, free: 5.723 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.967/1.967, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001151/0.001151, allocations: 92.41 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003723/0.0003724, allocations: 12 kB / 327 MB, free: 204 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3402/0.3406, allocations: 47.56 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1802/0.5209, allocations: 82.39 MB / 456.9 MB, free: 14.37 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000317/0.5213, allocations: 75.95 kB / 457 MB, free: 14.29 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07362/0.5949, allocations: 16.45 MB / 473.4 MB, free: 13.71 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.595e-06/0.595, allocations: 0 / 473.4 MB, free: 13.71 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.523e-05/0.5951, allocations: 20 kB / 473.5 MB, free: 13.7 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.004028/0.5991, allocations: 1.197 MB / 474.7 MB, free: 12.43 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.101e-05/0.5992, allocations: 12.03 kB / 474.7 MB, free: 12.41 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004016/0.5996, allocations: 102.9 kB / 474.8 MB, free: 12.31 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001514/0.6011, allocations: 0.536 MB / 475.3 MB, free: 11.74 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003247/0.6015, allocations: 150.4 kB / 475.5 MB, free: 11.57 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001737/0.6017, allocations: 55.91 kB / 475.5 MB, free: 11.52 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002498/0.6042, allocations: 0.8713 MB / 476.4 MB, free: 10.55 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.307e-05/0.6042, allocations: 0 / 476.4 MB, free: 10.55 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001193/0.6044, allocations: 28 kB / 476.4 MB, free: 10.52 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.111e-05/0.6044, allocations: 15.94 kB / 476.4 MB, free: 10.5 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002715/0.6071, allocations: 0.6493 MB / 477.1 MB, free: 9.855 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006308/0.6135, allocations: 2.088 MB / 479.2 MB, free: 7.676 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003058/0.6166, allocations: 1.077 MB / 480.2 MB, free: 6.516 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001332/0.6168, allocations: 12.66 kB / 480.3 MB, free: 6.504 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.026e-05/0.6169, allocations: 55.16 kB / 480.3 MB, free: 6.441 MB / 362.7 MB Notification: Performance of pre-optimization done (n=74): time 3.727e-06/0.6169, allocations: 0 / 480.3 MB, free: 6.441 MB / 362.7 MB Notification: Performance of matching and sorting (n=74): time 0.01039/0.6273, allocations: 1.994 MB / 482.3 MB, free: 4.352 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004418/0.6278, allocations: 0.8234 MB / 483.1 MB, free: 3.332 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001242/0.629, allocations: 0.5582 MB / 483.7 MB, free: 2.766 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002391/0.6293, allocations: 45.7 kB / 483.7 MB, free: 2.715 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000347/0.6297, allocations: 347.6 kB / 484.1 MB, free: 2.371 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003804/0.63, allocations: 260.1 kB / 484.3 MB, free: 2.113 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.401e-05/0.6301, allocations: 16 kB / 484.3 MB, free: 2.098 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001628/0.6303, allocations: 334.8 kB / 484.7 MB, free: 1.762 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001315/0.6316, allocations: 301.8 kB / 485 MB, free: 1.465 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001743/0.6334, allocations: 0.5703 MB / 485.5 MB, free: 0.7969 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001499/0.635, allocations: 424.7 kB / 485.9 MB, free: 376 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.462e-06/0.635, allocations: 0 / 485.9 MB, free: 376 kB / 362.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.004959/0.64, allocations: 1.13 MB / 487.1 MB, free: 15.2 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001013/0.6401, allocations: 89.11 kB / 487.2 MB, free: 15.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.472e-05/0.6402, allocations: 0 / 487.2 MB, free: 15.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001214/0.6414, allocations: 247.2 kB / 487.4 MB, free: 14.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001304/0.6427, allocations: 151.8 kB / 487.6 MB, free: 14.69 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01301/0.6558, allocations: 6.585 MB / 494.1 MB, free: 7.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001419/0.6572, allocations: 111.4 kB / 494.2 MB, free: 7.461 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001225/0.6574, allocations: 31.98 kB / 494.3 MB, free: 7.43 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.0005901/0.658, allocations: 223.2 kB / 494.5 MB, free: 7.203 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002882/0.6583, allocations: 94.95 kB / 494.6 MB, free: 7.109 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002832/0.6586, allocations: 84.44 kB / 494.7 MB, free: 7.02 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.498e-06/0.6586, allocations: 8 kB / 494.7 MB, free: 7.012 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/0.6586, allocations: 0 / 494.7 MB, free: 7.012 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004755/0.6634, allocations: 1.338 MB / 496 MB, free: 5.562 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007327/0.6708, allocations: 2.019 MB / 498 MB, free: 3.477 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.388e-05/0.6709, allocations: 4 kB / 498 MB, free: 3.473 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001445/0.6723, allocations: 147.8 kB / 498.2 MB, free: 3.328 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001052/0.6734, allocations: 210.5 kB / 498.4 MB, free: 3.113 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001365/0.6736, allocations: 23.98 kB / 498.4 MB, free: 3.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2813/0.9549, allocations: 5.11 MB / 0.4917 GB, free: 102.9 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.9549, allocations: 0 / 0.4917 GB, free: 102.9 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006358/0.9613, allocations: 1.522 MB / 0.4932 GB, free: 102.8 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006303/0.962, allocations: 232 kB / 0.4934 GB, free: 102.7 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001869/0.9622, allocations: 23.69 kB / 0.4935 GB, free: 102.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009796/0.9632, allocations: 70.08 kB / 0.4935 GB, free: 102.7 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002687/0.9635, allocations: 57.84 kB / 0.4936 GB, free: 102.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.64e-05/0.9635, allocations: 19.34 kB / 0.4936 GB, free: 102.7 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008595/0.9644, allocations: 450.2 kB / 0.494 GB, free: 102.6 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.9644, allocations: 0 / 0.494 GB, free: 102.6 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001471/0.9659, allocations: 287.6 kB / 0.4943 GB, free: 102.6 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.0002889/0.9662, allocations: 140.1 kB / 0.4944 GB, free: 102.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003631/0.9699, allocations: 1.399 MB / 0.4958 GB, free: 101.8 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.113e-05/0.9699, allocations: 1.969 kB / 0.4958 GB, free: 101.8 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002435/0.9724, allocations: 0.8076 MB / 0.4966 GB, free: 101.5 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001637/0.9741, allocations: 218.7 kB / 0.4968 GB, free: 101.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004328/0.9784, allocations: 1.953 MB / 0.4987 GB, free: 100.6 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005244/0.979, allocations: 0.9594 MB / 0.4996 GB, free: 99.93 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000431/0.9795, allocations: 66.41 kB / 0.4997 GB, free: 99.92 MB / 378.7 MB Notification: Performance of SimCode: time 1.062e-06/0.9795, allocations: 1.688 kB / 0.4997 GB, free: 99.92 MB / 378.7 MB Notification: Performance of Templates: time 0.0349/1.014, allocations: 21.19 MB / 0.5204 GB, free: 89.96 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & ./Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches