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.001081/0.001081, allocations: 176.1 kB / 17.4 MB, free: 4.305 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.271/1.271, allocations: 223.3 MB / 241.4 MB, free: 11.7 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.0007868/0.0007868, allocations: 98.34 kB / 292.6 MB, free: 10.78 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004098/0.0004101, allocations: 15.94 kB / 352.3 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2213/0.2217, allocations: 50.4 MB / 402.7 MB, free: 32.47 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08625/0.308, allocations: 81.69 MB / 484.4 MB, free: 14.66 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001672/0.3082, allocations: 74.34 kB / 484.5 MB, free: 14.59 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03963/0.3478, allocations: 16.16 MB / 0.4889 GB, free: 14.31 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3478, allocations: 0 / 0.4889 GB, free: 14.31 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.913e-05/0.3479, allocations: 16 kB / 0.4889 GB, free: 14.29 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.002072/0.35, allocations: 1.201 MB / 0.4901 GB, free: 13.02 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.077e-05/0.35, allocations: 8.031 kB / 0.4901 GB, free: 13.02 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002001/0.3502, allocations: 107.8 kB / 0.4902 GB, free: 12.91 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008123/0.3511, allocations: 0.5675 MB / 0.4908 GB, free: 12.3 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001805/0.3512, allocations: 143 kB / 0.4909 GB, free: 12.14 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.067e-05/0.3513, allocations: 56.75 kB / 0.491 GB, free: 12.09 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001351/0.3527, allocations: 0.8798 MB / 0.4918 GB, free: 11.11 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.888e-05/0.3527, allocations: 0 / 0.4918 GB, free: 11.11 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.134e-05/0.3528, allocations: 24 kB / 0.4918 GB, free: 11.08 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.3528, allocations: 12 kB / 0.4919 GB, free: 11.07 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001417/0.3542, allocations: 0.6609 MB / 0.4925 GB, free: 10.41 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003183/0.3574, allocations: 2.08 MB / 0.4945 GB, free: 8.23 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001594/0.359, allocations: 1.075 MB / 0.4956 GB, free: 7.07 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007342/0.3598, allocations: 406.5 kB / 0.496 GB, free: 6.672 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.289e-05/0.3599, allocations: 12.64 kB / 0.496 GB, free: 6.656 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.532e-05/0.3599, allocations: 59.16 kB / 0.496 GB, free: 6.59 MB / 378.7 MB Notification: Performance of pre-optimization done (n=74): time 2.004e-06/0.3599, allocations: 0 / 0.496 GB, free: 6.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=74): time 0.005156/0.3651, allocations: 2 MB / 0.498 GB, free: 4.5 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003633/0.3655, allocations: 0.8272 MB / 0.4988 GB, free: 3.473 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008074/0.3663, allocations: 0.6254 MB / 0.4994 GB, free: 2.84 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.768e-05/0.3664, allocations: 45.7 kB / 0.4995 GB, free: 2.789 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000227/0.3666, allocations: 334.9 kB / 0.4998 GB, free: 2.461 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001861/0.3668, allocations: 264.2 kB / 0.5 GB, free: 2.199 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.639e-05/0.3668, allocations: 12 kB / 0.5 GB, free: 2.188 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.367, allocations: 386.8 kB / 0.5004 GB, free: 1.801 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006802/0.3677, allocations: 293.8 kB / 0.5007 GB, free: 1.512 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000868/0.3686, allocations: 0.5741 MB / 0.5012 GB, free: 0.8398 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001373/0.3699, allocations: 0.7247 MB / 0.502 GB, free: 92 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.37, allocations: 0 / 0.502 GB, free: 92 kB / 378.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.1647/0.5347, allocations: 1.183 MB / 0.5031 GB, free: 94.78 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.26e-05/0.5348, allocations: 84.75 kB / 0.5032 GB, free: 94.69 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.228e-06/0.5348, allocations: 0.5938 kB / 0.5032 GB, free: 94.69 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007151/0.5355, allocations: 258.7 kB / 0.5034 GB, free: 94.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007224/0.5362, allocations: 146.5 kB / 0.5036 GB, free: 94.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006658/0.5429, allocations: 6.494 MB / 0.5099 GB, free: 89.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008317/0.5438, allocations: 115.2 kB / 0.51 GB, free: 89.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000107/0.5439, allocations: 27.42 kB / 0.5101 GB, free: 89.59 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.0004669/0.5444, allocations: 214 kB / 0.5103 GB, free: 89.48 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002188/0.5446, allocations: 90.59 kB / 0.5103 GB, free: 89.45 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001874/0.5448, allocations: 95.52 kB / 0.5104 GB, free: 89.43 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.5448, allocations: 7.781 kB / 0.5104 GB, free: 89.43 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.633e-06/0.5448, allocations: 6.969 kB / 0.5105 GB, free: 89.42 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002143/0.547, allocations: 1.326 MB / 0.5117 GB, free: 88.86 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003441/0.5504, allocations: 2.014 MB / 0.5137 GB, free: 88.51 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.5504, allocations: 6.344 kB / 0.5137 GB, free: 88.51 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006262/0.5511, allocations: 152.4 kB / 0.5139 GB, free: 88.51 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004653/0.5515, allocations: 210.3 kB / 0.5141 GB, free: 88.48 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.617e-05/0.5516, allocations: 21.36 kB / 0.5141 GB, free: 88.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00476/0.5564, allocations: 5.07 MB / 0.519 GB, free: 84.46 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.5564, allocations: 0 / 0.519 GB, free: 84.46 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002817/0.5592, allocations: 1.517 MB / 0.5205 GB, free: 83.86 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003344/0.5596, allocations: 237.2 kB / 0.5207 GB, free: 83.67 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001224/0.5597, allocations: 22.28 kB / 0.5208 GB, free: 83.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005085/0.5602, allocations: 54.78 kB / 0.5208 GB, free: 83.65 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001492/0.5604, allocations: 70.23 kB / 0.5209 GB, free: 83.63 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.616e-05/0.5604, allocations: 21.34 kB / 0.5209 GB, free: 83.63 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004982/0.5609, allocations: 448.9 kB / 0.5213 GB, free: 83.42 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5609, allocations: 1.688 kB / 0.5213 GB, free: 83.42 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008402/0.5618, allocations: 290.9 kB / 0.5216 GB, free: 83.39 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.0001867/0.562, allocations: 133.3 kB / 0.5217 GB, free: 83.29 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001938/0.5639, allocations: 1.398 MB / 0.5231 GB, free: 82.38 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.291e-06/0.5639, allocations: 3.938 kB / 0.5231 GB, free: 82.38 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001162/0.5651, allocations: 0.8083 MB / 0.5239 GB, free: 81.89 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009607/0.5661, allocations: 220.6 kB / 0.5241 GB, free: 81.82 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002405/0.5685, allocations: 1.908 MB / 0.526 GB, free: 80.71 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003288/0.5688, allocations: 0.9448 MB / 0.5269 GB, free: 80 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004169/0.5693, allocations: 98.62 kB / 0.527 GB, free: 79.98 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001423/0.5694, allocations: 61.88 kB / 0.527 GB, free: 79.97 MB / 378.7 MB Notification: Performance of SimCode: time 3.81e-07/0.5694, allocations: 0 / 0.527 GB, free: 79.97 MB / 378.7 MB Notification: Performance of Templates: time 0.02238/0.5918, allocations: 16.43 MB / 0.5431 GB, free: 66.53 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/jenkins1/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