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.PumpAndValve.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.PumpAndValve,fileNamePrefix="Modelica_3_1_cpp_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.044/1.044, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.011e-05/2.027e-05, allocations: 0 / 148.2 MB, free: 6.129 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05459/0.05466, allocations: 25.17 MB / 173.4 MB, free: 12.92 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2189/0.2736, allocations: 39.2 MB / 212.6 MB, free: 4.637 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002403/0.2739, allocations: 69.75 kB / 212.6 MB, free: 4.637 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05612/0.33, allocations: 14.04 MB / 226.7 MB, free: 156 kB / 170.7 MB Notification: Performance of FrontEnd: time 2.033e-06/0.3301, allocations: 0 / 226.7 MB, free: 156 kB / 170.7 MB Notification: Performance of Transformations before backend: time 5.217e-05/0.3302, allocations: 15.5 kB / 226.7 MB, free: 156 kB / 170.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.002511/0.3327, allocations: 0.8981 MB / 227.6 MB, free: 15.47 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.315e-05/0.3328, allocations: 7.75 kB / 227.6 MB, free: 15.47 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003141/0.3331, allocations: 85.59 kB / 227.7 MB, free: 15.43 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001108/0.3342, allocations: 456.2 kB / 228.1 MB, free: 15.12 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002194/0.3345, allocations: 80.03 kB / 228.2 MB, free: 15.06 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001185/0.3346, allocations: 30.78 kB / 228.2 MB, free: 15.05 MB / 186.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001022/0.3356, allocations: 366.5 kB / 228.6 MB, free: 15.02 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00116/0.3368, allocations: 0.5543 MB / 229.2 MB, free: 14.72 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.01e-05/0.3369, allocations: 7.125 kB / 229.2 MB, free: 14.72 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.318e-05/0.337, allocations: 0 / 229.2 MB, free: 14.72 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.445e-05/0.337, allocations: 11.41 kB / 229.2 MB, free: 14.72 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004984/0.342, allocations: 1.96 MB / 231.1 MB, free: 13.55 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002852/0.3449, allocations: 0.6424 MB / 231.8 MB, free: 13.37 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000555/0.3455, allocations: 220 kB / 232 MB, free: 13.35 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.172e-05/0.3456, allocations: 11.59 kB / 232 MB, free: 13.35 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.897e-05/0.3457, allocations: 42.97 kB / 232 MB, free: 13.31 MB / 186.7 MB Notification: Performance of pre-optimization done (n=56): time 4.047e-06/0.3457, allocations: 7.531 kB / 232.1 MB, free: 13.3 MB / 186.7 MB Notification: Performance of matching and sorting (n=56): time 0.00303/0.3487, allocations: 0.6576 MB / 232.7 MB, free: 13.1 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002819/0.349, allocations: 0.5642 MB / 233.3 MB, free: 12.41 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:1366:7-1367:48:writable] Warning: Parameter valve.frictionLoss 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:1363:7-1365:60:writable] Warning: Parameter valve.rho0 has no value, and is fixed during initialization (fixed=true), using available start value (start=10.0) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.1/Thermal/FluidHeatFlow.mo:1361:7-1362:60:writable] Warning: Parameter valve.dp0 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:1358:7-1360:60:writable] Warning: Parameter valve.kv0 has no value, and is fixed during initialization (fixed=true), using available start value (start=0.01) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.1/Thermal/FluidHeatFlow.mo:1355:7-1357:60:writable] Warning: Parameter valve.Kv1 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:1353:7-1354:60:writable] Warning: Parameter valve.y1 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:2340:9-2340:68:writable] Warning: Parameter valve.m 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:1843:7-1845:58:writable] Warning: Parameter idealPump.V_flow0 has no value, and is fixed during initialization (fixed=true), using available start value (start=2.0) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.1/Thermal/FluidHeatFlow.mo:1840:7-1842:58:writable] Warning: Parameter idealPump.dp0 has no value, and is fixed during initialization (fixed=true), using available start value (start=2.0) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.1/Thermal/FluidHeatFlow.mo:1837:7-1839:58:writable] Warning: Parameter idealPump.wNominal 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.0009128/0.35, allocations: 435.3 kB / 233.7 MB, free: 12.26 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001661/0.3502, allocations: 29.52 kB / 233.7 MB, free: 12.23 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002624/0.3504, allocations: 320.1 kB / 234 MB, free: 12.01 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000241/0.3507, allocations: 187.3 kB / 234.2 MB, free: 11.87 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.136e-05/0.3507, allocations: 0 / 234.2 MB, free: 11.87 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.3509, allocations: 333.4 kB / 234.5 MB, free: 11.54 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000387/0.3513, allocations: 155.3 kB / 234.7 MB, free: 11.54 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006435/0.3519, allocations: 356.7 kB / 235 MB, free: 11.27 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000514/0.3525, allocations: 184.5 kB / 235.2 MB, free: 11.16 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.98e-06/0.3525, allocations: 0 / 235.2 MB, free: 11.16 MB / 186.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00305/0.3556, allocations: 0.6653 MB / 235.9 MB, free: 10.63 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.94e-05/0.3557, allocations: 33.69 kB / 235.9 MB, free: 10.59 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.3557, allocations: 0 / 235.9 MB, free: 10.59 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001477/0.3572, allocations: 207.3 kB / 236.1 MB, free: 10.43 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001569/0.3588, allocations: 143.1 kB / 236.3 MB, free: 10.29 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009618/0.3684, allocations: 4.986 MB / 241.3 MB, free: 5.469 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001141/0.3696, allocations: 79.62 kB / 241.3 MB, free: 5.391 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.509e-05/0.3697, allocations: 19.11 kB / 241.4 MB, free: 5.375 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: pipe.flowPort_b.m_flow:VARIABLE(flow=true unit = "kg/s" ) 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 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 idealPump.h:VARIABLE(unit = "J/kg" nominal = 1000000.0 protected = true ) "Medium's specific enthalpy" type: Real valve.h:VARIABLE(unit = "J/kg" nominal = 1000000.0 protected = true ) "Medium's specific enthalpy" type: Real idealPump.flowPort_b.h:VARIABLE(flow=false unit = "J/kg" nominal = 1000000.0 ) type: Real pipe.flowPort_a.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: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 45 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {5 2,1 1,1 9} Notification: Performance of prepare postOptimizeDAE: time 0.0004098/0.3702, allocations: 148.8 kB / 241.5 MB, free: 5.227 MB / 186.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003187/0.3734, allocations: 0.6622 MB / 242.2 MB, free: 4.695 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000318/0.3737, allocations: 67.25 kB / 242.2 MB, free: 4.629 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003316/0.3771, allocations: 0.6905 MB / 242.9 MB, free: 4.043 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.647e-05/0.3771, allocations: 4 kB / 242.9 MB, free: 4.039 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.3771, allocations: 3.938 kB / 242.9 MB, free: 4.035 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003015/0.3802, allocations: 0.9606 MB / 243.9 MB, free: 2.965 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004705/0.3849, allocations: 1.408 MB / 245.3 MB, free: 1.5 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.478e-05/0.385, allocations: 4.141 kB / 245.3 MB, free: 1.496 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001616/0.3866, allocations: 139.8 kB / 245.4 MB, free: 1.359 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001128/0.3878, allocations: 157.5 kB / 245.6 MB, free: 1.199 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001046/0.3879, allocations: 3.984 kB / 245.6 MB, free: 1.195 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007533/0.3954, allocations: 3.43 MB / 249 MB, free: 13.5 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.119e-06/0.3955, allocations: 4.125 kB / 249 MB, free: 13.5 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003734/0.3993, allocations: 0.9372 MB / 250 MB, free: 12.54 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000553/0.3999, allocations: 192.2 kB / 250.1 MB, free: 12.33 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001389/0.4, allocations: 4 kB / 250.2 MB, free: 12.33 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000813/0.4008, allocations: 43.88 kB / 250.2 MB, free: 12.29 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002097/0.4011, allocations: 44.44 kB / 250.2 MB, free: 12.24 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.702e-05/0.4011, allocations: 16 kB / 250.3 MB, free: 12.23 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0006794/0.4018, allocations: 319 kB / 250.6 MB, free: 11.92 MB / 202.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.4019, allocations: 4 kB / 250.6 MB, free: 11.91 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.001399/0.4033, allocations: 219.7 kB / 250.8 MB, free: 11.7 MB / 202.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (pipe.T,heatCapacitor.T,speed.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 44 * 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: 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 2,1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.004214/0.4075, allocations: 1.501 MB / 252.3 MB, free: 10.17 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.002636/0.4102, allocations: 0.8691 MB / 253.2 MB, free: 9.254 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 1.365e-05/0.4103, allocations: 7.953 kB / 253.2 MB, free: 9.246 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001516/0.4118, allocations: 481.5 kB / 253.6 MB, free: 8.758 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002969/0.4148, allocations: 295.6 kB / 253.9 MB, free: 8.469 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007491/0.4224, allocations: 1.176 MB / 255.1 MB, free: 7.25 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000681/0.4231, allocations: 0.9036 MB / 256 MB, free: 6.32 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005906/0.4237, allocations: 227.3 kB / 256.2 MB, free: 6.098 MB / 202.7 MB Notification: Performance of SimCode: time 3.386e-06/0.4238, allocations: 0 / 256.2 MB, free: 6.098 MB / 202.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.131/3.554, allocations: 17.37 MB / 273.6 MB, free: 4.727 MB / 218.7 MB