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.00109/0.00109, allocations: 196.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.559/1.559, allocations: 225.6 MB / 234.8 MB, free: 3.25 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008761/0.0008764, allocations: 94.38 kB / 286.7 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.569e-05/1.572e-05, allocations: 4 kB / 343.7 MB, free: 8.293 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.106, allocations: 51.48 MB / 395.2 MB, free: 4.773 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3741/0.4802, allocations: 81.73 MB / 476.9 MB, free: 10.87 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001968/0.4804, allocations: 72.5 kB / 477 MB, free: 10.84 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03688/0.5173, allocations: 16.02 MB / 493 MB, free: 14.34 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.5174, allocations: 0 / 493 MB, free: 14.34 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.135e-05/0.5174, allocations: 20 kB / 493 MB, free: 14.32 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.001798/0.5192, allocations: 1.065 MB / 494.1 MB, free: 13.25 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/0.5193, allocations: 8.031 kB / 494.1 MB, free: 13.24 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001914/0.5195, allocations: 106.8 kB / 494.2 MB, free: 13.13 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008714/0.5204, allocations: 0.5362 MB / 494.7 MB, free: 12.64 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001868/0.5206, allocations: 131.8 kB / 494.8 MB, free: 12.5 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.806e-05/0.5207, allocations: 35.98 kB / 494.9 MB, free: 12.46 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008527/0.5215, allocations: 480.6 kB / 495.3 MB, free: 12.17 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00101/0.5225, allocations: 0.6941 MB / 496 MB, free: 11.54 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.901e-05/0.5226, allocations: 0 / 496 MB, free: 11.54 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.335e-05/0.5226, allocations: 8 kB / 496 MB, free: 11.54 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.309e-05/0.5227, allocations: 12 kB / 496.1 MB, free: 11.52 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003184/0.5258, allocations: 1.982 MB / 498 MB, free: 9.984 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001/0.5269, allocations: 0.8713 MB / 498.9 MB, free: 9.25 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004074/0.5273, allocations: 314.9 kB / 499.2 MB, free: 9.062 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.787e-05/0.5274, allocations: 16.7 kB / 499.2 MB, free: 9.051 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.267e-05/0.5274, allocations: 47.22 kB / 499.3 MB, free: 9 MB / 362.7 MB Notification: Performance of pre-optimization done (n=74): time 2.184e-06/0.5274, allocations: 0 / 499.3 MB, free: 9 MB / 362.7 MB Notification: Performance of matching and sorting (n=74): time 0.002017/0.5294, allocations: 0.8386 MB / 0.4884 GB, free: 8.332 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004378/0.5299, allocations: 0.8269 MB / 0.4892 GB, free: 7.312 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006634/0.5306, allocations: 0.4913 MB / 0.4897 GB, free: 6.945 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.32e-05/0.5306, allocations: 25.7 kB / 0.4897 GB, free: 6.914 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00028/0.5309, allocations: 336.5 kB / 0.49 GB, free: 6.707 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002333/0.5312, allocations: 245.7 kB / 0.4903 GB, free: 6.492 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.513e-05/0.5312, allocations: 6.906 kB / 0.4903 GB, free: 6.488 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002149/0.5314, allocations: 385.2 kB / 0.4906 GB, free: 6.137 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003468/0.5318, allocations: 202.8 kB / 0.4908 GB, free: 6.023 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006253/0.5324, allocations: 475.4 kB / 0.4913 GB, free: 5.582 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003994/0.5328, allocations: 242.2 kB / 0.4915 GB, free: 5.438 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.5328, allocations: 0 / 0.4915 GB, free: 5.438 MB / 362.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002064/0.5349, allocations: 0.8961 MB / 0.4924 GB, free: 4.633 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.776e-05/0.535, allocations: 93.11 kB / 0.4925 GB, free: 4.523 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.5351, allocations: 7.938 kB / 0.4925 GB, free: 4.516 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006146/0.5357, allocations: 203.3 kB / 0.4927 GB, free: 4.305 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006471/0.5363, allocations: 151.8 kB / 0.4928 GB, free: 4.156 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006644/0.543, allocations: 6.03 MB / 0.4987 GB, free: 13.67 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009772/0.544, allocations: 87.53 kB / 0.4988 GB, free: 13.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.191e-05/0.5441, allocations: 27.98 kB / 0.4988 GB, free: 13.55 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient2.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pipe1.flowPort_b.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pipe1.flowPort_a.h:VARIABLE(flow=false unit = "J/kg" ) type: Real ambient1.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real 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.0003132/0.5444, allocations: 141.5 kB / 0.499 GB, free: 13.41 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001554/0.5446, allocations: 87.02 kB / 0.499 GB, free: 13.32 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002447/0.5448, allocations: 80.03 kB / 0.4991 GB, free: 13.24 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.353e-06/0.5448, allocations: 8 kB / 0.4991 GB, free: 13.23 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.698e-06/0.5448, allocations: 0 / 0.4991 GB, free: 13.23 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002001/0.5469, allocations: 1.127 MB / 0.5002 GB, free: 11.99 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003124/0.55, allocations: 1.742 MB / 0.5019 GB, free: 10.19 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.55, allocations: 1.312 kB / 0.5019 GB, free: 10.19 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006665/0.5507, allocations: 147.8 kB / 0.5021 GB, free: 10.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003984/0.5511, allocations: 166.5 kB / 0.5022 GB, free: 9.875 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.956e-05/0.5511, allocations: 4 kB / 0.5022 GB, free: 9.871 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005067/0.5562, allocations: 4.652 MB / 0.5068 GB, free: 4.871 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.5563, allocations: 4.125 kB / 0.5068 GB, free: 4.867 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00251/0.5588, allocations: 1.219 MB / 0.508 GB, free: 3.621 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004565/0.5593, allocations: 235.9 kB / 0.5082 GB, free: 3.371 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001012/0.5594, allocations: 7.953 kB / 0.5082 GB, free: 3.363 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005204/0.5599, allocations: 47.95 kB / 0.5082 GB, free: 3.316 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002209/0.5601, allocations: 64.62 kB / 0.5083 GB, free: 3.254 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.663e-05/0.5602, allocations: 19.98 kB / 0.5083 GB, free: 3.234 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006764/0.5609, allocations: 391.2 kB / 0.5087 GB, free: 2.859 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5609, allocations: 4 kB / 0.5087 GB, free: 2.855 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001207/0.5621, allocations: 257.8 kB / 0.509 GB, free: 2.605 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 () * 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.0003108/0.5624, allocations: 126.9 kB / 0.5091 GB, free: 2.477 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00187/0.5643, allocations: 1.178 MB / 0.5102 GB, free: 1.227 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.153e-06/0.5643, allocations: 6.938 kB / 0.5102 GB, free: 1.223 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001211/0.5655, allocations: 0.6915 MB / 0.5109 GB, free: 0.5039 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009959/0.5665, allocations: 190.9 kB / 0.5111 GB, free: 328 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002679/0.5692, allocations: 1.19 MB / 0.5122 GB, free: 15.1 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006318/0.5699, allocations: 0.956 MB / 0.5132 GB, free: 14.12 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0005568/0.5705, allocations: 90 kB / 0.5133 GB, free: 14.03 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001698/0.5706, allocations: 63.42 kB / 0.5133 GB, free: 13.96 MB / 394.7 MB Notification: Performance of SimCode: time 8.52e-07/0.5706, allocations: 0 / 0.5133 GB, free: 13.96 MB / 394.7 MB Notification: Performance of Templates: time 0.02513/0.5958, allocations: 14.52 MB / 0.5275 GB, free: 15.75 MB / 410.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/jenkins/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