Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling") Notification: Performance of loadModel(Modelica): time 0.9369/0.9369, allocations: 111.3 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.857e-05/1.866e-05, allocations: 4 kB / 148.1 MB, free: 6.234 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04516/0.0452, allocations: 25.17 MB / 173.3 MB, free: 13.02 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1765/0.2217, allocations: 37.04 MB / 210.3 MB, free: 7 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001903/0.2219, allocations: 64.11 kB / 210.4 MB, free: 7 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03177/0.2537, allocations: 9.279 MB / 219.7 MB, free: 5 MB / 170.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.2538, allocations: 0 / 219.7 MB, free: 5 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.86e-05/0.2538, allocations: 11.55 kB / 219.7 MB, free: 5 MB / 170.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 83 * Number of variables: 83 Notification: Performance of Generate backend data structure: time 0.0009522/0.2548, allocations: 0.6798 MB / 220.4 MB, free: 4.445 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.2548, allocations: 11.62 kB / 220.4 MB, free: 4.445 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001184/0.2549, allocations: 58.19 kB / 220.4 MB, free: 4.418 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005512/0.2555, allocations: 367.4 kB / 220.8 MB, free: 4.145 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.811e-05/0.2556, allocations: 49.64 kB / 220.8 MB, free: 4.109 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.6e-05/0.2557, allocations: 22.09 kB / 220.8 MB, free: 4.109 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005578/0.2563, allocations: 243.3 kB / 221.1 MB, free: 4.094 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006217/0.2569, allocations: 398.3 kB / 221.5 MB, free: 3.875 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.927e-05/0.257, allocations: 3.984 kB / 221.5 MB, free: 3.871 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.184e-05/0.257, allocations: 11.7 kB / 221.5 MB, free: 3.863 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.157e-05/0.257, allocations: 7.812 kB / 221.5 MB, free: 3.863 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002217/0.2593, allocations: 1.285 MB / 222.8 MB, free: 3.074 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001186/0.2605, allocations: 409.7 kB / 223.2 MB, free: 2.918 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002397/0.2607, allocations: 126.8 kB / 223.3 MB, free: 2.902 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.836e-05/0.2608, allocations: 8.031 kB / 223.3 MB, free: 2.902 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.154e-05/0.2608, allocations: 41.47 kB / 223.4 MB, free: 2.863 MB / 170.7 MB Notification: Performance of pre-optimization done (n=33): time 3.407e-06/0.2608, allocations: 0 / 223.4 MB, free: 2.863 MB / 170.7 MB Notification: Performance of matching and sorting (n=33): time 0.0008326/0.2617, allocations: 312.4 kB / 223.7 MB, free: 2.762 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.809e-05/0.2618, allocations: 448.7 kB / 224.1 MB, free: 2.227 MB / 170.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/Thermal/FluidHeatFlow.mo:1600:7-1602:56:writable] Warning: Parameter ambient2.constantAmbientPressure has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/Thermal/FluidHeatFlow.mo:1309:7-1310:76:writable] Warning: Parameter pipe.h_g has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/Thermal/FluidHeatFlow.mo:2262:9-2264:54:writable] Warning: Parameter pipe.dpNominal has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/Thermal/FluidHeatFlow.mo:2259:9-2261:54:writable] Warning: Parameter pipe.V_flowNominal has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/Thermal/FluidHeatFlow.mo:2256:9-2258:54:writable] Warning: Parameter pipe.dpLaminar has no value, and is fixed during initialization (fixed=true), using available start value (start=0.1) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/Thermal/FluidHeatFlow.mo:2253:9-2255:54:writable] Warning: Parameter pipe.V_flowLaminar has no value, and is fixed during initialization (fixed=true), using available start value (start=0.1) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/Thermal/FluidHeatFlow.mo:1702:7-1704:58:writable] Warning: Parameter pump.constantVolumeFlow has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/Thermal/FluidHeatFlow.mo:1600:7-1602:56:writable] Warning: Parameter ambient1.constantAmbientPressure has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000507/0.2623, allocations: 342.2 kB / 224.4 MB, free: 2.09 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 3.855e-05/0.2623, allocations: 29.58 kB / 224.5 MB, free: 2.059 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001181/0.2625, allocations: 279.4 kB / 224.7 MB, free: 1.855 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.419e-05/0.2626, allocations: 113.3 kB / 224.8 MB, free: 1.77 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.087e-05/0.2626, allocations: 4 kB / 224.9 MB, free: 1.766 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 5.696e-05/0.2627, allocations: 326.5 kB / 225.2 MB, free: 1.449 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001989/0.2629, allocations: 88.84 kB / 225.3 MB, free: 1.441 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000283/0.2632, allocations: 221.2 kB / 225.5 MB, free: 1.297 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002466/0.2634, allocations: 119.4 kB / 225.6 MB, free: 1.277 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.2635, allocations: 0 / 225.6 MB, free: 1.277 MB / 170.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0007759/0.2642, allocations: 336 kB / 225.9 MB, free: 1.188 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.61e-05/0.2643, allocations: 33.33 kB / 225.9 MB, free: 1.156 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/0.2643, allocations: 3.938 kB / 226 MB, free: 1.152 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003539/0.2647, allocations: 79.86 kB / 226 MB, free: 1.109 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00041/0.2651, allocations: 66.31 kB / 226.1 MB, free: 1.102 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002699/0.2678, allocations: 2.629 MB / 228.7 MB, free: 14.62 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000462/0.2683, allocations: 39.52 kB / 228.8 MB, free: 14.6 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.208e-05/0.2684, allocations: 15.25 kB / 228.8 MB, free: 14.6 MB / 186.7 MB Warning: Assuming fixed start value for the following 2 variables: heatCapacitor.T:VARIABLE(min = max(1.0, max(1.0, max(1.0, 1.0))) max = min(6000.0, min(6000.0, min(6000.0, 6000.0))) start = TAmb unit = "K" nominal = 300.0 ) "Temperature of element" type: Real pipe.T:VARIABLE(min = 1.0 max = 6000.0 start = pipe.T0 unit = "K" nominal = 300.0 ) "Outlet temperature of medium" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient1.flowPort.h:VARIABLE(flow=false unit = "J/kg" nominal = 1000000.0 ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient2.flowPort.h:VARIABLE(flow=false unit = "J/kg" nominal = 1000000.0 ) 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 1,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002785/0.2687, allocations: 151.4 kB / 228.9 MB, free: 14.46 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001157/0.2688, allocations: 42.95 kB / 229 MB, free: 14.44 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001085/0.2689, allocations: 41.72 kB / 229 MB, free: 14.42 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.836e-06/0.2689, allocations: 3.844 kB / 229 MB, free: 14.42 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.889e-06/0.2689, allocations: 0 / 229 MB, free: 14.42 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007871/0.2697, allocations: 0.6167 MB / 229.6 MB, free: 13.86 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001529/0.2713, allocations: 0.8658 MB / 230.5 MB, free: 13.34 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.059e-06/0.2713, allocations: 4.062 kB / 230.5 MB, free: 13.34 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004568/0.2718, allocations: 72.5 kB / 230.6 MB, free: 13.33 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.655e-06/0.2718, allocations: 3.984 kB / 230.6 MB, free: 13.32 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.808e-05/0.2718, allocations: 3.844 kB / 230.6 MB, free: 13.32 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.715e-06/0.2719, allocations: 0 / 230.6 MB, free: 13.32 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.575e-06/0.2719, allocations: 3.984 kB / 230.6 MB, free: 13.32 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008238/0.2727, allocations: 492.7 kB / 231.1 MB, free: 13.13 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001737/0.2729, allocations: 119.6 kB / 231.2 MB, free: 13 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.608e-05/0.273, allocations: 7.438 kB / 231.2 MB, free: 13 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000345/0.2733, allocations: 15.73 kB / 231.2 MB, free: 13 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.954e-05/0.2734, allocations: 15.52 kB / 231.2 MB, free: 12.99 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.821e-05/0.2735, allocations: 10.95 kB / 231.2 MB, free: 12.99 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0003426/0.2738, allocations: 249.7 kB / 231.5 MB, free: 12.9 MB / 186.7 MB Notification: Performance of sort global known variables: time 7.44e-07/0.2738, allocations: 4.062 kB / 231.5 MB, free: 12.89 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0006069/0.2744, allocations: 131 kB / 231.6 MB, free: 12.88 MB / 186.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.0002095/0.2747, allocations: 118.2 kB / 231.7 MB, free: 12.78 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.00118/0.2759, allocations: 0.5253 MB / 232.2 MB, free: 12.48 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.2759, allocations: 4 kB / 232.2 MB, free: 12.47 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002317/0.2761, allocations: 119.6 kB / 232.4 MB, free: 12.46 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001312/0.2775, allocations: 208.5 kB / 232.6 MB, free: 12.39 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001555/0.279, allocations: 0.6238 MB / 233.2 MB, free: 12.02 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005387/0.2796, allocations: 0.8282 MB / 234 MB, free: 11.26 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001775/0.2798, allocations: 42.14 kB / 234.1 MB, free: 11.25 MB / 186.7 MB Notification: Performance of SimCode: time 1.962e-06/0.2798, allocations: 3.938 kB / 234.1 MB, free: 11.24 MB / 186.7 MB Notification: Performance of Templates: time 0.01384/0.2937, allocations: 7.851 MB / 241.9 MB, free: 5.77 MB / 186.7 MB