Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling,fileNamePrefix="Modelica_3_1_cpp_Modelica_Thermal_FluidHeatFlow_Examples_SimpleCooling",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.115/1.115, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.326e-05/2.334e-05, allocations: 0 / 148.2 MB, free: 6.129 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05737/0.05743, allocations: 25.17 MB / 173.4 MB, free: 12.92 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2314/0.2889, allocations: 37.04 MB / 210.4 MB, free: 4.633 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002086/0.2891, allocations: 66.39 kB / 210.5 MB, free: 4.633 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03569/0.3249, allocations: 9.277 MB / 219.8 MB, free: 2.344 MB / 170.7 MB Notification: Performance of FrontEnd: time 3.697e-06/0.3249, allocations: 0 / 219.8 MB, free: 2.344 MB / 170.7 MB Notification: Performance of Transformations before backend: time 3.837e-05/0.325, allocations: 14.53 kB / 219.8 MB, free: 2.34 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.001362/0.3263, allocations: 0.6775 MB / 220.4 MB, free: 1.789 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.459e-05/0.3264, allocations: 9.594 kB / 220.5 MB, free: 1.789 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001704/0.3266, allocations: 65.75 kB / 220.5 MB, free: 1.758 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006831/0.3273, allocations: 370 kB / 220.9 MB, free: 1.48 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001447/0.3274, allocations: 49.73 kB / 220.9 MB, free: 1.445 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.664e-05/0.3275, allocations: 19.5 kB / 221 MB, free: 1.445 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006652/0.3282, allocations: 246.3 kB / 221.2 MB, free: 1.43 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007145/0.3289, allocations: 399.1 kB / 221.6 MB, free: 1.211 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.234e-05/0.329, allocations: 0 / 221.6 MB, free: 1.211 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.702e-05/0.329, allocations: 11.86 kB / 221.6 MB, free: 1.203 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.092e-05/0.3291, allocations: 7.531 kB / 221.6 MB, free: 1.203 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002745/0.3318, allocations: 1.278 MB / 222.9 MB, free: 428 kB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001593/0.3334, allocations: 413.7 kB / 223.3 MB, free: 264 kB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000285/0.3337, allocations: 126.7 kB / 223.4 MB, free: 248 kB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.663e-05/0.3338, allocations: 9.281 kB / 223.4 MB, free: 248 kB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.774e-05/0.3339, allocations: 45.66 kB / 223.5 MB, free: 204 kB / 170.7 MB Notification: Performance of pre-optimization done (n=33): time 2.004e-06/0.3339, allocations: 0 / 223.5 MB, free: 204 kB / 170.7 MB Notification: Performance of matching and sorting (n=33): time 0.0009633/0.3348, allocations: 307.2 kB / 223.8 MB, free: 104 kB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002627/0.3351, allocations: 456 kB / 224.2 MB, free: 15.56 MB / 186.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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/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/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/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/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/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/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.000723/0.3359, allocations: 344.7 kB / 224.5 MB, free: 15.43 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 8.768e-05/0.336, allocations: 25.7 kB / 224.6 MB, free: 15.39 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002165/0.3362, allocations: 277.6 kB / 224.8 MB, free: 15.19 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000139/0.3363, allocations: 113.3 kB / 224.9 MB, free: 15.11 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.517e-05/0.3364, allocations: 0 / 224.9 MB, free: 15.11 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.3365, allocations: 325.8 kB / 225.3 MB, free: 14.79 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000235/0.3368, allocations: 90.08 kB / 225.4 MB, free: 14.79 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003668/0.3372, allocations: 223.3 kB / 225.6 MB, free: 14.64 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003027/0.3375, allocations: 117.3 kB / 225.7 MB, free: 14.61 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.3375, allocations: 0 / 225.7 MB, free: 14.61 MB / 186.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009326/0.3384, allocations: 341.2 kB / 226 MB, free: 14.53 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.433e-05/0.3385, allocations: 29.39 kB / 226 MB, free: 14.5 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.3385, allocations: 0 / 226 MB, free: 14.5 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004654/0.339, allocations: 78.53 kB / 226.1 MB, free: 14.46 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006056/0.3396, allocations: 61.47 kB / 226.2 MB, free: 14.45 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003201/0.3428, allocations: 2.645 MB / 228.8 MB, free: 11.95 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006421/0.3435, allocations: 38.55 kB / 228.9 MB, free: 11.93 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.066e-05/0.3436, allocations: 10.94 kB / 228.9 MB, free: 11.93 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.0002941/0.3439, allocations: 132.9 kB / 229 MB, free: 11.81 MB / 186.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008747/0.3448, allocations: 317.9 kB / 229.3 MB, free: 11.71 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001024/0.3449, allocations: 43 kB / 229.4 MB, free: 11.69 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001366/0.345, allocations: 48.64 kB / 229.4 MB, free: 11.66 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.3451, allocations: 3.938 kB / 229.4 MB, free: 11.66 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.3451, allocations: 3.984 kB / 229.4 MB, free: 11.66 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006916/0.3458, allocations: 0.6145 MB / 230 MB, free: 11.11 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001647/0.3474, allocations: 0.8549 MB / 230.9 MB, free: 10.59 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.652e-06/0.3475, allocations: 7.891 kB / 230.9 MB, free: 10.59 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006548/0.3481, allocations: 73.52 kB / 231 MB, free: 10.57 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.596e-06/0.3482, allocations: 7.875 kB / 231 MB, free: 10.57 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.953e-05/0.3482, allocations: 0 / 231 MB, free: 10.57 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.126e-05/0.3482, allocations: 3.984 kB / 231 MB, free: 10.56 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.3482, allocations: 0 / 231 MB, free: 10.56 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009406/0.3492, allocations: 482.5 kB / 231.4 MB, free: 10.38 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001975/0.3494, allocations: 126 kB / 231.6 MB, free: 10.25 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.293e-05/0.3495, allocations: 3.75 kB / 231.6 MB, free: 10.25 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004359/0.35, allocations: 19.73 kB / 231.6 MB, free: 10.24 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.505e-05/0.35, allocations: 27.06 kB / 231.6 MB, free: 10.23 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.67e-05/0.3501, allocations: 7.875 kB / 231.6 MB, free: 10.23 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0004066/0.3505, allocations: 249.8 kB / 231.9 MB, free: 10.14 MB / 186.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.3505, allocations: 0 / 231.9 MB, free: 10.14 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0006927/0.3512, allocations: 143 kB / 232 MB, free: 10.12 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.001357/0.3526, allocations: 1.026 MB / 233 MB, free: 9.395 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.001409/0.354, allocations: 0.5238 MB / 233.6 MB, free: 9.094 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.3541, allocations: 0 / 233.6 MB, free: 9.094 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002731/0.3543, allocations: 124.9 kB / 233.7 MB, free: 9.074 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002021/0.3564, allocations: 211.9 kB / 233.9 MB, free: 9 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002359/0.3588, allocations: 0.6988 MB / 234.6 MB, free: 8.57 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004446/0.3592, allocations: 0.8275 MB / 235.4 MB, free: 7.809 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004006/0.3597, allocations: 156 kB / 235.6 MB, free: 7.785 MB / 186.7 MB Notification: Performance of SimCode: time 1.102e-06/0.3597, allocations: 0 / 235.6 MB, free: 7.785 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.722/3.082, allocations: 9.791 MB / 245.4 MB, free: 15.78 MB / 202.7 MB