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 1.029/1.029, allocations: 110.8 MB / 118.3 MB, free: 10.53 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001595/0.001596, allocations: 151.4 kB / 144 MB, free: 9.801 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 1.662e-05/1.665e-05, allocations: 0 / 173.8 MB, free: 11.89 MB / 154.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0541/0.05414, allocations: 25.17 MB / 199 MB, free: 2.66 MB / 170.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1631/0.2173, allocations: 39.2 MB / 238.2 MB, free: 0.7656 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002269/0.2176, allocations: 63.97 kB / 238.3 MB, free: 0.7031 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03767/0.2553, allocations: 14.03 MB / 252.3 MB, free: 2.723 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.845e-06/0.2553, allocations: 0 / 252.3 MB, free: 2.723 MB / 186.7 MB Notification: Performance of Transformations before backend: time 4.115e-05/0.2554, allocations: 12 kB / 252.3 MB, free: 2.711 MB / 186.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.001559/0.257, allocations: 0.8915 MB / 253.2 MB, free: 1.77 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.632e-05/0.257, allocations: 8.031 kB / 253.2 MB, free: 1.762 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001541/0.2572, allocations: 87.06 kB / 253.3 MB, free: 1.676 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000693/0.2579, allocations: 452.2 kB / 253.8 MB, free: 1.191 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001386/0.258, allocations: 80.7 kB / 253.8 MB, free: 1.102 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.985e-05/0.2581, allocations: 29.12 kB / 253.9 MB, free: 1.074 MB / 186.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006702/0.2588, allocations: 374.5 kB / 254.2 MB, free: 0.707 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008345/0.2596, allocations: 0.542 MB / 254.8 MB, free: 96 kB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.027e-05/0.2597, allocations: 3.906 kB / 254.8 MB, free: 92 kB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.567e-05/0.2597, allocations: 4 kB / 254.8 MB, free: 88 kB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.28e-05/0.2597, allocations: 16 kB / 254.8 MB, free: 72 kB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003047/0.2628, allocations: 1.966 MB / 256.8 MB, free: 13.98 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001699/0.2645, allocations: 0.6463 MB / 257.4 MB, free: 13.3 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003222/0.2649, allocations: 211.4 kB / 257.6 MB, free: 13.1 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.903e-05/0.2649, allocations: 17.38 kB / 257.6 MB, free: 13.08 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.694e-05/0.265, allocations: 51.06 kB / 257.7 MB, free: 13.02 MB / 202.7 MB Notification: Performance of pre-optimization done (n=56): time 2.425e-06/0.265, allocations: 0 / 257.7 MB, free: 13.02 MB / 202.7 MB Notification: Performance of matching and sorting (n=56): time 0.001772/0.2668, allocations: 0.6528 MB / 258.3 MB, free: 12.35 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002623/0.267, allocations: 0.5684 MB / 258.9 MB, free: 11.65 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.0006132/0.2677, allocations: 439.8 kB / 259.3 MB, free: 11.21 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 4.387e-05/0.2677, allocations: 25.7 kB / 259.4 MB, free: 11.18 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002028/0.2679, allocations: 285.1 kB / 259.6 MB, free: 10.9 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001432/0.2681, allocations: 185.2 kB / 259.8 MB, free: 10.71 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.638e-05/0.2681, allocations: 2.062 kB / 259.8 MB, free: 10.71 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0001675/0.2683, allocations: 374.7 kB / 260.2 MB, free: 10.34 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002436/0.2685, allocations: 149.1 kB / 260.3 MB, free: 10.2 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004392/0.269, allocations: 359.5 kB / 260.7 MB, free: 9.766 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003277/0.2693, allocations: 179.4 kB / 260.9 MB, free: 9.59 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.2693, allocations: 0 / 260.9 MB, free: 9.59 MB / 202.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001729/0.271, allocations: 0.7076 MB / 261.6 MB, free: 8.867 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.793e-05/0.2711, allocations: 29.7 kB / 261.6 MB, free: 8.832 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/0.2711, allocations: 8 kB / 261.6 MB, free: 8.824 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008191/0.2719, allocations: 210.4 kB / 261.8 MB, free: 8.609 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007289/0.2727, allocations: 139.8 kB / 261.9 MB, free: 8.473 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005802/0.2785, allocations: 4.986 MB / 266.9 MB, free: 3.113 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000703/0.2792, allocations: 75.69 kB / 267 MB, free: 3.039 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.601e-05/0.2793, allocations: 20.05 kB / 267 MB, free: 3.02 MB / 202.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.0003217/0.2796, allocations: 153.3 kB / 267.2 MB, free: 2.871 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001108/0.2797, allocations: 63.25 kB / 267.2 MB, free: 2.809 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001775/0.2815, allocations: 0.6945 MB / 267.9 MB, free: 2.094 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.2815, allocations: 8 kB / 267.9 MB, free: 2.086 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.442e-06/0.2816, allocations: 4 kB / 267.9 MB, free: 2.082 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001528/0.2831, allocations: 0.9528 MB / 268.9 MB, free: 1.02 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002521/0.2856, allocations: 1.401 MB / 270.3 MB, free: 15.55 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.449e-06/0.2856, allocations: 0 / 270.3 MB, free: 15.55 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007744/0.2864, allocations: 139.8 kB / 270.4 MB, free: 15.41 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006006/0.287, allocations: 158.2 kB / 270.6 MB, free: 15.25 MB / 218.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.909e-05/0.2871, allocations: 11.98 kB / 270.6 MB, free: 15.24 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004121/0.2912, allocations: 3.432 MB / 274 MB, free: 11.55 MB / 218.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.2912, allocations: 0 / 274 MB, free: 11.55 MB / 218.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002016/0.2933, allocations: 0.949 MB / 275 MB, free: 10.58 MB / 218.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003401/0.2936, allocations: 192.2 kB / 275.2 MB, free: 10.37 MB / 218.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.146e-05/0.2937, allocations: 3.938 kB / 275.2 MB, free: 10.37 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00042/0.2941, allocations: 35.97 kB / 275.2 MB, free: 10.33 MB / 218.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00014/0.2943, allocations: 48.48 kB / 275.2 MB, free: 10.28 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.163e-05/0.2943, allocations: 12 kB / 275.3 MB, free: 10.27 MB / 218.7 MB Notification: Performance of sorting global known variables: time 0.0004358/0.2948, allocations: 322.9 kB / 275.6 MB, free: 9.957 MB / 218.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2948, allocations: 0 / 275.6 MB, free: 9.957 MB / 218.7 MB Notification: Performance of remove unused functions: time 0.0008484/0.2956, allocations: 215.7 kB / 275.8 MB, free: 9.746 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 () * 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.0002208/0.2959, allocations: 124.8 kB / 275.9 MB, free: 9.617 MB / 218.7 MB Notification: Performance of simCode: created initialization part: time 0.001778/0.2977, allocations: 0.869 MB / 276.8 MB, free: 8.707 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 4.84e-06/0.2977, allocations: 4.25 kB / 276.8 MB, free: 8.703 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008513/0.2985, allocations: 485.5 kB / 277.3 MB, free: 8.207 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001655/0.3002, allocations: 289.4 kB / 277.5 MB, free: 7.93 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003544/0.3038, allocations: 1.058 MB / 278.6 MB, free: 6.852 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004495/0.3042, allocations: 0.8958 MB / 279.5 MB, free: 5.93 MB / 218.7 MB Notification: Performance of simCode: alias equations: time 0.0004541/0.3047, allocations: 80.97 kB / 279.6 MB, free: 5.848 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001326/0.3048, allocations: 55.36 kB / 279.6 MB, free: 5.793 MB / 218.7 MB Notification: Performance of SimCode: time 8.92e-07/0.3048, allocations: 0 / 279.6 MB, free: 5.793 MB / 218.7 MB Notification: Performance of Templates: time 0.1416/0.4464, allocations: 12.83 MB / 292.5 MB, free: 59.4 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)