Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001516/0.001516, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001912/0.001912, allocations: 191.7 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.46/1.46, allocations: 205.1 MB / 222.4 MB, free: 4.578 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001144/0.001144, allocations: 51.92 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2098/0.211, allocations: 46.64 MB / 325.3 MB, free: 1.961 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.005083/0.2161, allocations: 4.367 MB / 329.7 MB, free: 14.49 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002412/0.2186, allocations: 1.255 MB / 330.9 MB, free: 13.44 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003854/0.219, allocations: 7.094 kB / 330.9 MB, free: 13.44 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004174/0.2194, allocations: 137 kB / 331.1 MB, free: 13.33 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006413/0.2201, allocations: 264.6 kB / 331.3 MB, free: 13.1 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004555/0.2206, allocations: 196.4 kB / 331.5 MB, free: 12.93 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001082/0.2216, allocations: 0.9209 MB / 332.4 MB, free: 12.38 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004657/0.2221, allocations: 243.3 kB / 332.7 MB, free: 12.25 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005515/0.2227, allocations: 367.8 kB / 333 MB, free: 12.04 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005025/0.2232, allocations: 394.5 kB / 333.4 MB, free: 11.77 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001586/0.2234, allocations: 77.38 kB / 333.5 MB, free: 11.77 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001689/0.2235, allocations: 80.38 kB / 333.6 MB, free: 11.73 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000156/0.2237, allocations: 179.3 kB / 333.7 MB, free: 11.55 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004102/0.2241, allocations: 414.1 kB / 334.2 MB, free: 11.14 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000875/0.225, allocations: 0.9071 MB / 335.1 MB, free: 10.23 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.225, allocations: 0 / 335.1 MB, free: 10.23 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.225, allocations: 0 / 335.1 MB, free: 10.23 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.312e-05/0.225, allocations: 0 / 335.1 MB, free: 10.23 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 111 * Number of variables: 111 Notification: Performance of Generate backend data structure: time 0.002/0.227, allocations: 1.113 MB / 336.2 MB, free: 9.055 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.2271, allocations: 12.03 kB / 336.2 MB, free: 9.043 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001571/0.2273, allocations: 84 kB / 336.3 MB, free: 8.961 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006691/0.2279, allocations: 480.6 kB / 336.7 MB, free: 8.453 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001474/0.2281, allocations: 96.95 kB / 336.8 MB, free: 8.348 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.111e-05/0.2282, allocations: 44.38 kB / 336.9 MB, free: 8.305 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001138/0.2293, allocations: 0.6515 MB / 337.5 MB, free: 7.578 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.92e-05/0.2294, allocations: 0 / 337.5 MB, free: 7.578 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.383e-05/0.2294, allocations: 24 kB / 337.5 MB, free: 7.555 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.337e-05/0.2294, allocations: 12 kB / 337.6 MB, free: 7.543 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001024/0.2305, allocations: 451.7 kB / 338 MB, free: 7.102 MB / 270.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003099/0.2336, allocations: 1.963 MB / 340 MB, free: 5.016 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001914/0.2355, allocations: 0.6827 MB / 340.6 MB, free: 4.309 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005941/0.2361, allocations: 262 kB / 340.9 MB, free: 4.051 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.897e-05/0.2362, allocations: 20.34 kB / 340.9 MB, free: 4.031 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.302e-05/0.2362, allocations: 43 kB / 341 MB, free: 3.977 MB / 270.1 MB Notification: Performance of pre-optimization done (n=54): time 1.904e-06/0.2362, allocations: 0 / 341 MB, free: 3.977 MB / 270.1 MB Notification: Performance of matching and sorting (n=54): time 0.00506/0.2413, allocations: 1.476 MB / 342.4 MB, free: 2.43 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00035/0.2417, allocations: 0.5683 MB / 343 MB, free: 1.727 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008088/0.2425, allocations: 0.5381 MB / 343.5 MB, free: 1.18 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 6.552e-05/0.2426, allocations: 41.7 kB / 343.6 MB, free: 1.133 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002329/0.2428, allocations: 284.5 kB / 343.9 MB, free: 0.8516 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001751/0.243, allocations: 193.2 kB / 344.1 MB, free: 0.6602 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001907/0.2432, allocations: 110.2 kB / 344.2 MB, free: 0.543 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.2434, allocations: 378.7 kB / 344.5 MB, free: 168 kB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005112/0.2439, allocations: 193 kB / 344.7 MB, free: 15.98 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006917/0.2446, allocations: 416.3 kB / 345.1 MB, free: 15.49 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001063/0.2456, allocations: 492.5 kB / 345.6 MB, free: 14.99 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.2457, allocations: 0 / 345.6 MB, free: 14.99 MB / 286.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002345/0.248, allocations: 0.8068 MB / 346.4 MB, free: 14.16 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.006e-05/0.2481, allocations: 38.33 kB / 346.5 MB, free: 14.11 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.2481, allocations: 0 / 346.5 MB, free: 14.11 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009857/0.2491, allocations: 226.3 kB / 346.7 MB, free: 13.88 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007156/0.2498, allocations: 127.8 kB / 346.8 MB, free: 13.76 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008315/0.2581, allocations: 5.618 MB / 352.4 MB, free: 7.719 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007687/0.2589, allocations: 75.55 kB / 352.5 MB, free: 7.645 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.562e-05/0.259, allocations: 27.92 kB / 352.5 MB, free: 7.617 MB / 286.1 MB 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 (47): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(5,2), (1,1), (1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0002925/0.2593, allocations: 189.8 kB / 352.7 MB, free: 7.422 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001192/0.2594, allocations: 71.19 kB / 352.8 MB, free: 7.352 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002286/0.2617, allocations: 0.7734 MB / 353.5 MB, free: 6.555 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.2617, allocations: 4 kB / 353.6 MB, free: 6.551 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.2617, allocations: 4 kB / 353.6 MB, free: 6.547 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00222/0.264, allocations: 1.039 MB / 354.6 MB, free: 5.395 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003548/0.2675, allocations: 1.502 MB / 356.1 MB, free: 3.828 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.416e-06/0.2676, allocations: 0 / 356.1 MB, free: 3.828 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007731/0.2684, allocations: 135.8 kB / 356.2 MB, free: 3.695 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008649/0.2693, allocations: 173.5 kB / 356.4 MB, free: 3.52 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.553e-05/0.2694, allocations: 11.98 kB / 356.4 MB, free: 3.508 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00544/0.2748, allocations: 3.799 MB / 360.2 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.2749, allocations: 3.938 kB / 360.2 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002922/0.2778, allocations: 1.074 MB / 361.3 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003744/0.2782, allocations: 208.1 kB / 361.5 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.54e-05/0.2783, allocations: 16 kB / 361.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004961/0.2788, allocations: 31.97 kB / 361.5 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001347/0.279, allocations: 48.44 kB / 361.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.333e-05/0.279, allocations: 15.98 kB / 361.6 MB, free: 14 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004867/0.2795, allocations: 390.8 kB / 362 MB, free: 13.62 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2795, allocations: 0 / 362 MB, free: 13.62 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007817/0.2803, allocations: 211.8 kB / 362.2 MB, free: 13.41 MB / 302.1 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 (44): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,2), (1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001505/0.2804, allocations: 111.2 kB / 362.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002437/0.2829, allocations: 1.057 MB / 363.4 MB, free: 12.18 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.2829, allocations: 0 / 363.4 MB, free: 12.18 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00103/0.2839, allocations: 0.5356 MB / 363.9 MB, free: 11.62 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008492/0.2848, allocations: 193.4 kB / 364.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002239/0.2871, allocations: 1.288 MB / 365.4 MB, free: 10.12 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000436/0.2875, allocations: 0.8879 MB / 366.3 MB, free: 9.207 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003454/0.2879, allocations: 89.11 kB / 366.3 MB, free: 9.121 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001492/0.288, allocations: 51.44 kB / 366.4 MB, free: 9.07 MB / 302.1 MB Notification: Performance of SimCode: time 5.61e-07/0.288, allocations: 0 / 366.4 MB, free: 9.07 MB / 302.1 MB Notification: Performance of Templates: time 0.02282/0.3108, allocations: 14.05 MB / 380.4 MB, free: 10.99 MB / 318.1 MB make -j1 -f Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.makefile (rm -f Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & ./Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1)