Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.6544/0.6544, allocations: 110.9 MB / 125.9 MB, free: 6.215 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.0016/0.0016, allocations: 143.4 kB / 151.8 MB, free: 4.992 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002579/0.0002578, allocations: 4 kB / 184.9 MB, free: 3.93 MB / 154.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.1248, allocations: 25.15 MB / 210 MB, free: 29.73 MB / 170.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.04555/0.1704, allocations: 39.96 MB / 250 MB, free: 9.871 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002357/0.1707, allocations: 63.97 kB / 250.1 MB, free: 9.809 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03689/0.2076, allocations: 14.21 MB / 264.3 MB, free: 11.59 MB / 202.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2076, allocations: 0 / 264.3 MB, free: 11.59 MB / 202.7 MB Notification: Performance of Transformations before backend: time 3.789e-05/0.2076, allocations: 16 kB / 264.3 MB, free: 11.57 MB / 202.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.001921/0.2096, allocations: 0.9925 MB / 265.3 MB, free: 10.52 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.2096, allocations: 12.03 kB / 265.3 MB, free: 10.51 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002107/0.2098, allocations: 79.16 kB / 265.4 MB, free: 10.43 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007161/0.2106, allocations: 451.8 kB / 265.8 MB, free: 9.949 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001357/0.2107, allocations: 96.39 kB / 265.9 MB, free: 9.84 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.629e-05/0.2108, allocations: 48 kB / 266 MB, free: 9.793 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001155/0.212, allocations: 0.6754 MB / 266.6 MB, free: 9.047 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.737e-05/0.212, allocations: 0 / 266.6 MB, free: 9.047 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.525e-05/0.2121, allocations: 27.98 kB / 266.7 MB, free: 9.02 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.159e-05/0.2121, allocations: 15.94 kB / 266.7 MB, free: 9.004 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001072/0.2132, allocations: 491.7 kB / 267.2 MB, free: 8.523 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003211/0.2164, allocations: 2.076 MB / 269.2 MB, free: 6.312 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002097/0.2185, allocations: 0.763 MB / 270 MB, free: 5.52 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.678e-05/0.2186, allocations: 8.562 kB / 270 MB, free: 5.512 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.162e-05/0.2186, allocations: 49.38 kB / 270 MB, free: 5.457 MB / 202.7 MB Notification: Performance of pre-optimization done (n=56): time 3.737e-06/0.2186, allocations: 0 / 270 MB, free: 5.457 MB / 202.7 MB Notification: Performance of matching and sorting (n=56): time 0.005023/0.2236, allocations: 1.622 MB / 271.7 MB, free: 3.766 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002435/0.2239, allocations: 0.5761 MB / 272.2 MB, free: 3.055 MB / 202.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/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.0007437/0.2246, allocations: 0.5094 MB / 272.8 MB, free: 2.543 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 5.981e-05/0.2247, allocations: 41.7 kB / 272.8 MB, free: 2.496 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002016/0.2249, allocations: 276.8 kB / 273.1 MB, free: 2.223 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000161/0.2251, allocations: 193.1 kB / 273.3 MB, free: 2.031 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.92e-05/0.2251, allocations: 8 kB / 273.3 MB, free: 2.023 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.2253, allocations: 374.8 kB / 273.6 MB, free: 1.648 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005176/0.2258, allocations: 217 kB / 273.8 MB, free: 1.438 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000664/0.2265, allocations: 424.5 kB / 274.3 MB, free: 0.9414 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000567/0.2271, allocations: 272.4 kB / 274.5 MB, free: 0.6758 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.2271, allocations: 8 kB / 274.5 MB, free: 0.668 MB / 202.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002312/0.2294, allocations: 0.8731 MB / 275.4 MB, free: 15.77 MB / 218.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.634e-05/0.2295, allocations: 29.7 kB / 275.4 MB, free: 15.73 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.2295, allocations: 4 kB / 275.4 MB, free: 15.73 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009311/0.2304, allocations: 244.6 kB / 275.7 MB, free: 15.48 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000745/0.2312, allocations: 131.8 kB / 275.8 MB, free: 15.36 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007203/0.2384, allocations: 5.326 MB / 281.1 MB, free: 9.629 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000762/0.2392, allocations: 87.73 kB / 281.2 MB, free: 9.543 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.188e-05/0.2393, allocations: 20 kB / 281.2 MB, free: 9.523 MB / 218.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" fixed = true nominal = 300.0 ) "Temperature of element" type: Real pipe.T:VARIABLE(min = 1.0 max = 6000.0 start = pipe.T0 unit = "K" fixed = true nominal = 300.0 ) "Outlet temperature of medium" 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 () * Number of clocked 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,3 7} Notification: Performance of prepare postOptimizeDAE: time 0.0005788/0.2399, allocations: 226.3 kB / 281.5 MB, free: 9.297 MB / 218.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001872/0.2401, allocations: 71.09 kB / 281.5 MB, free: 9.227 MB / 218.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002444/0.2425, allocations: 0.8398 MB / 282.4 MB, free: 8.363 MB / 218.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.2425, allocations: 4 kB / 282.4 MB, free: 8.359 MB / 218.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.2425, allocations: 8 kB / 282.4 MB, free: 8.352 MB / 218.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00221/0.2448, allocations: 1.093 MB / 283.5 MB, free: 7.148 MB / 218.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003365/0.2481, allocations: 1.63 MB / 285.1 MB, free: 5.434 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.2482, allocations: 4 kB / 285.1 MB, free: 5.43 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007955/0.249, allocations: 143.8 kB / 285.2 MB, free: 5.289 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007755/0.2498, allocations: 185.5 kB / 285.4 MB, free: 5.102 MB / 218.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.48e-05/0.2498, allocations: 11.98 kB / 285.4 MB, free: 5.09 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00545/0.2553, allocations: 3.746 MB / 289.2 MB, free: 1.043 MB / 218.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.2553, allocations: 0 / 289.2 MB, free: 1.043 MB / 218.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.09865/0.354, allocations: 1.146 MB / 290.3 MB, free: 59.87 MB / 218.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006617/0.3547, allocations: 199.3 kB / 290.5 MB, free: 59.77 MB / 218.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000271/0.355, allocations: 16.31 kB / 290.5 MB, free: 59.77 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000781/0.3558, allocations: 49.64 kB / 290.6 MB, free: 59.77 MB / 218.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000214/0.356, allocations: 45.61 kB / 290.6 MB, free: 59.77 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.23e-05/0.3561, allocations: 16.48 kB / 290.6 MB, free: 59.77 MB / 218.7 MB Notification: Performance of sorting global known variables: time 0.0007046/0.3568, allocations: 387.1 kB / 291 MB, free: 59.69 MB / 218.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3568, allocations: 0 / 291 MB, free: 59.69 MB / 218.7 MB Notification: Performance of remove unused functions: time 0.001071/0.3579, allocations: 237.9 kB / 291.3 MB, free: 59.69 MB / 218.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 () * Number of clocked 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.0002543/0.3581, allocations: 126.1 kB / 291.4 MB, free: 59.6 MB / 218.7 MB Notification: Performance of simCode: created initialization part: time 0.002535/0.3607, allocations: 1.092 MB / 292.5 MB, free: 59.19 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 6.633e-06/0.3607, allocations: 6.25 kB / 292.5 MB, free: 59.19 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001154/0.3618, allocations: 0.5603 MB / 293 MB, free: 58.97 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001716/0.3636, allocations: 329.8 kB / 293.4 MB, free: 58.97 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004182/0.3678, allocations: 1.725 MB / 295.1 MB, free: 58.33 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003162/0.3681, allocations: 0.8973 MB / 296 MB, free: 57.63 MB / 218.7 MB Notification: Performance of simCode: alias equations: time 0.0005388/0.3687, allocations: 81.73 kB / 296.1 MB, free: 57.62 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00014/0.3688, allocations: 53.91 kB / 296.1 MB, free: 57.62 MB / 218.7 MB Notification: Performance of SimCode: time 3.126e-06/0.3688, allocations: 0 / 296.1 MB, free: 57.62 MB / 218.7 MB Notification: Performance of Templates: time 0.01961/0.3884, allocations: 14.3 MB / 310.4 MB, free: 54.28 MB / 218.7 MB make -j1 -f Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.makefile (rm -f Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & ./Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1)