Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.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.SimpleCooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|heatCapacitor.T|pipe.T",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|heatCapacitor.T|pipe.T",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001094/0.001094, allocations: 175.4 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.404/1.404, allocations: 221.5 MB / 230.3 MB, free: 7.566 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.0009592/0.000959, allocations: 111.5 kB / 281.2 MB, free: 5.316 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.949e-05/1.944e-05, allocations: 4 kB / 337 MB, free: 10.04 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09589/0.09593, allocations: 50.42 MB / 387.5 MB, free: 7.586 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3074/0.4034, allocations: 79.61 MB / 467.1 MB, free: 15.26 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002126/0.4037, allocations: 63.97 kB / 467.1 MB, free: 15.2 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02397/0.4277, allocations: 9.288 MB / 476.4 MB, free: 5.855 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.4277, allocations: 0 / 476.4 MB, free: 5.855 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.512e-05/0.4278, allocations: 19.94 kB / 476.4 MB, free: 5.836 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001123/0.4289, allocations: 0.6759 MB / 477.1 MB, free: 5.109 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.331e-05/0.4289, allocations: 12.03 kB / 477.1 MB, free: 5.098 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001442/0.4291, allocations: 63.34 kB / 477.2 MB, free: 5.035 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005654/0.4297, allocations: 360.3 kB / 477.5 MB, free: 4.641 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.427e-05/0.4298, allocations: 54.47 kB / 477.6 MB, free: 4.582 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.376e-05/0.4298, allocations: 20 kB / 477.6 MB, free: 4.562 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000448/0.4303, allocations: 237.5 kB / 477.8 MB, free: 4.332 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005895/0.4309, allocations: 401.7 kB / 478.2 MB, free: 3.883 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.57e-05/0.4309, allocations: 3.953 kB / 478.2 MB, free: 3.879 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.099e-05/0.431, allocations: 0 / 478.2 MB, free: 3.879 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.836e-06/0.431, allocations: 8 kB / 478.2 MB, free: 3.871 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001972/0.4329, allocations: 1.162 MB / 479.4 MB, free: 2.645 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009887/0.434, allocations: 405.3 kB / 479.8 MB, free: 2.219 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001913/0.4342, allocations: 125.4 kB / 479.9 MB, free: 2.094 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.757e-05/0.4342, allocations: 12.27 kB / 479.9 MB, free: 2.082 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.211e-05/0.4342, allocations: 46.73 kB / 480 MB, free: 2.027 MB / 346.7 MB Notification: Performance of pre-optimization done (n=33): time 1.473e-06/0.4342, allocations: 0 / 480 MB, free: 2.027 MB / 346.7 MB Notification: Performance of matching and sorting (n=33): time 0.0006291/0.4349, allocations: 313.2 kB / 480.3 MB, free: 1.711 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001977/0.4351, allocations: 445 kB / 480.7 MB, free: 1.172 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003892/0.4355, allocations: 337.3 kB / 481 MB, free: 0.8359 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.104e-05/0.4355, allocations: 25.7 kB / 481.1 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001595/0.4357, allocations: 236.5 kB / 481.3 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.785e-05/0.4358, allocations: 114.3 kB / 481.4 MB, free: 468 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.595e-05/0.4358, allocations: 0 / 481.4 MB, free: 468 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.436, allocations: 350.8 kB / 481.8 MB, free: 108 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001526/0.4361, allocations: 95.78 kB / 481.9 MB, free: 12 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002723/0.4364, allocations: 223.8 kB / 482.1 MB, free: 15.73 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001939/0.4366, allocations: 121.5 kB / 482.2 MB, free: 15.62 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.4366, allocations: 96 / 482.2 MB, free: 15.62 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000582/0.4372, allocations: 376.4 kB / 482.6 MB, free: 15.24 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.333e-05/0.4372, allocations: 30.8 kB / 482.6 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.4373, allocations: 0 / 482.6 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002813/0.4375, allocations: 77.67 kB / 482.7 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003085/0.4379, allocations: 71.89 kB / 482.7 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002212/0.4401, allocations: 2.649 MB / 485.4 MB, free: 12.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002686/0.4404, allocations: 31.77 kB / 485.4 MB, free: 12.13 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.029e-05/0.4404, allocations: 19.98 kB / 485.4 MB, free: 12.11 MB / 362.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: pipe.flowPort_a.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001651/0.4406, allocations: 124.9 kB / 485.6 MB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.304e-05/0.4407, allocations: 47.39 kB / 485.6 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.966e-05/0.4408, allocations: 44.95 kB / 485.6 MB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.4408, allocations: 7.984 kB / 485.7 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.374e-06/0.4408, allocations: 0 / 485.7 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004775/0.4413, allocations: 0.6143 MB / 486.3 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001062/0.4423, allocations: 0.8136 MB / 487.1 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.4423, allocations: 4 kB / 487.1 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003499/0.4427, allocations: 75.89 kB / 487.2 MB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.4427, allocations: 0 / 487.2 MB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.01e-05/0.4427, allocations: 0 / 487.2 MB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.107e-06/0.4428, allocations: 4 kB / 487.2 MB, free: 10.22 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.4428, allocations: 0 / 487.2 MB, free: 10.22 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006041/0.4434, allocations: 475.3 kB / 487.6 MB, free: 9.742 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001744/0.4436, allocations: 160.5 kB / 487.8 MB, free: 9.566 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.973e-05/0.4436, allocations: 12 kB / 487.8 MB, free: 9.555 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002248/0.4439, allocations: 11.98 kB / 487.8 MB, free: 9.543 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.094e-05/0.4439, allocations: 15.97 kB / 487.8 MB, free: 9.527 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.973e-05/0.4439, allocations: 12 kB / 487.8 MB, free: 9.516 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002699/0.4442, allocations: 263 kB / 488.1 MB, free: 9.262 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4442, allocations: 3.938 kB / 488.1 MB, free: 9.258 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004388/0.4447, allocations: 127.8 kB / 488.2 MB, free: 9.133 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (pipe.T,heatCapacitor.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 33 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002081/0.4449, allocations: 115.2 kB / 488.3 MB, free: 9.012 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009507/0.4458, allocations: 0.5224 MB / 488.9 MB, free: 8.457 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.4458, allocations: 0 / 488.9 MB, free: 8.457 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001671/0.446, allocations: 115.8 kB / 489 MB, free: 8.344 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005465/0.4466, allocations: 109.8 kB / 489.1 MB, free: 8.234 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001275/0.4479, allocations: 0.593 MB / 489.7 MB, free: 7.621 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003816/0.4483, allocations: 0.8276 MB / 490.5 MB, free: 6.766 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002213/0.4485, allocations: 47.33 kB / 490.5 MB, free: 6.719 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000102/0.4486, allocations: 43.42 kB / 490.6 MB, free: 6.68 MB / 362.7 MB Notification: Performance of SimCode: time 4.11e-07/0.4486, allocations: 0 / 490.6 MB, free: 6.68 MB / 362.7 MB Notification: Performance of Templates: time 0.01168/0.4603, allocations: 6.517 MB / 497.1 MB, free: 296 kB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.makefile (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.sim & ./Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/SimpleCooling/SimpleCooling.csv","../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches