Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.00121/0.00121, allocations: 113.1 kB / 17.06 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001287/0.001287, allocations: 200 kB / 18.01 MB, free: 5.055 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.465/1.465, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.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.001131/0.001131, allocations: 43.94 kB / 327.9 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08817/0.08931, allocations: 46.62 MB / 374.5 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.005601/0.09495, allocations: 4.364 MB / 378.8 MB, free: 200 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1615/0.2565, allocations: 1.252 MB / 380.1 MB, free: 9.66 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000374/0.2569, allocations: 9.875 kB / 380.1 MB, free: 9.66 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004693/0.2574, allocations: 136.5 kB / 380.2 MB, free: 9.656 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006256/0.2581, allocations: 260.6 kB / 380.5 MB, free: 9.539 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004721/0.2585, allocations: 200.8 kB / 380.7 MB, free: 9.523 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008854/0.2594, allocations: 0.927 MB / 381.6 MB, free: 9.297 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004239/0.2599, allocations: 256.3 kB / 381.9 MB, free: 9.25 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004518/0.2603, allocations: 369.4 kB / 382.2 MB, free: 9.176 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004604/0.2608, allocations: 401.4 kB / 382.6 MB, free: 9.094 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001117/0.2609, allocations: 76.09 kB / 382.7 MB, free: 9.094 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001479/0.2611, allocations: 78.28 kB / 382.8 MB, free: 9.094 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001227/0.2612, allocations: 175.6 kB / 382.9 MB, free: 9.059 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003037/0.2615, allocations: 414.6 kB / 383.3 MB, free: 8.848 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008426/0.2624, allocations: 0.9221 MB / 384.3 MB, free: 8.508 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.2624, allocations: 1.031 kB / 384.3 MB, free: 8.508 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2624, allocations: 0 / 384.3 MB, free: 8.508 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.184e-05/0.2624, allocations: 0 / 384.3 MB, free: 8.508 MB / 318.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.001886/0.2643, allocations: 1.105 MB / 385.4 MB, free: 7.719 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.2643, allocations: 9.156 kB / 385.4 MB, free: 7.719 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001397/0.2645, allocations: 93.28 kB / 385.5 MB, free: 7.672 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006485/0.2651, allocations: 483 kB / 385.9 MB, free: 7.312 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001264/0.2653, allocations: 98.64 kB / 386 MB, free: 7.234 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.841e-05/0.2654, allocations: 47.72 kB / 386.1 MB, free: 7.219 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001043/0.2664, allocations: 0.6506 MB / 386.7 MB, free: 6.816 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.008e-05/0.2664, allocations: 5.094 kB / 386.7 MB, free: 6.812 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.209e-05/0.2665, allocations: 22.98 kB / 386.8 MB, free: 6.797 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.151e-05/0.2665, allocations: 10.56 kB / 386.8 MB, free: 6.797 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001032/0.2676, allocations: 457.5 kB / 387.2 MB, free: 6.656 MB / 318.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.002804/0.2704, allocations: 1.946 MB / 389.2 MB, free: 5.41 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0018/0.2722, allocations: 0.6897 MB / 389.9 MB, free: 5.109 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000514/0.2727, allocations: 257.9 kB / 390.1 MB, free: 5.012 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.979e-05/0.2728, allocations: 17.95 kB / 390.1 MB, free: 5.008 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.952e-05/0.2728, allocations: 44.75 kB / 390.2 MB, free: 4.961 MB / 318.1 MB Notification: Performance of pre-optimization done (n=54): time 2.404e-06/0.2728, allocations: 1.078 kB / 390.2 MB, free: 4.961 MB / 318.1 MB Notification: Performance of matching and sorting (n=54): time 0.004946/0.2777, allocations: 1.479 MB / 391.6 MB, free: 4.32 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001046/0.2779, allocations: 0.5714 MB / 392.2 MB, free: 3.625 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006054/0.2785, allocations: 0.5346 MB / 392.8 MB, free: 3.375 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.838e-05/0.2785, allocations: 39.61 kB / 392.8 MB, free: 3.336 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000164/0.2787, allocations: 288.4 kB / 393.1 MB, free: 3.098 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001135/0.2788, allocations: 182 kB / 393.2 MB, free: 2.957 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001672/0.279, allocations: 112.9 kB / 393.4 MB, free: 2.898 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.743e-05/0.2791, allocations: 377.2 kB / 393.7 MB, free: 2.555 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004981/0.2796, allocations: 198.8 kB / 393.9 MB, free: 2.488 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006296/0.2802, allocations: 415.5 kB / 394.3 MB, free: 2.184 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001012/0.2813, allocations: 491.8 kB / 394.8 MB, free: 1.934 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.2813, allocations: 0.7031 kB / 394.8 MB, free: 1.934 MB / 318.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.00221/0.2835, allocations: 0.8094 MB / 395.6 MB, free: 1.598 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.042e-05/0.2835, allocations: 32.38 kB / 395.6 MB, free: 1.566 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.2835, allocations: 3.125 kB / 395.7 MB, free: 1.566 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001009/0.2846, allocations: 232.6 kB / 395.9 MB, free: 1.488 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007187/0.2853, allocations: 124.3 kB / 396 MB, free: 1.48 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007006/0.2923, allocations: 5.605 MB / 401.6 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007044/0.293, allocations: 77.92 kB / 401.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.592e-05/0.2931, allocations: 17.84 kB / 401.7 MB, free: 12.55 MB / 334.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.0002906/0.2934, allocations: 199.4 kB / 401.9 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001112/0.2935, allocations: 70.91 kB / 402 MB, free: 12.35 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002197/0.2957, allocations: 0.7774 MB / 402.7 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.708e-05/0.2957, allocations: 5.344 kB / 402.7 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/0.2957, allocations: 1.094 kB / 402.7 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002148/0.2979, allocations: 1.04 MB / 403.8 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003283/0.3012, allocations: 1.495 MB / 405.3 MB, free: 10.42 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.111e-06/0.3012, allocations: 5.219 kB / 405.3 MB, free: 10.42 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007411/0.302, allocations: 133.1 kB / 405.4 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000828/0.3028, allocations: 177 kB / 405.6 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.868e-05/0.3029, allocations: 19.14 kB / 405.6 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005017/0.3079, allocations: 3.797 MB / 409.4 MB, free: 6.742 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.3079, allocations: 0.7812 kB / 409.4 MB, free: 6.742 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002851/0.3108, allocations: 1.067 MB / 410.5 MB, free: 6.129 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003264/0.3111, allocations: 202.9 kB / 410.7 MB, free: 5.938 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.372e-05/0.3112, allocations: 12.97 kB / 410.7 MB, free: 5.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005029/0.3117, allocations: 41.48 kB / 410.7 MB, free: 5.906 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001323/0.3118, allocations: 42.88 kB / 410.8 MB, free: 5.883 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.494e-05/0.3119, allocations: 17.69 kB / 410.8 MB, free: 5.875 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004888/0.3124, allocations: 393.4 kB / 411.2 MB, free: 5.645 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3124, allocations: 0 / 411.2 MB, free: 5.645 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000833/0.3132, allocations: 218.2 kB / 411.4 MB, free: 5.613 MB / 334.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.0001497/0.3134, allocations: 114.1 kB / 411.5 MB, free: 5.512 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002308/0.3157, allocations: 1.035 MB / 412.5 MB, free: 4.793 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.3157, allocations: 1.094 kB / 412.5 MB, free: 4.793 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001014/0.3167, allocations: 0.53 MB / 413.1 MB, free: 4.414 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000827/0.3176, allocations: 189.8 kB / 413.2 MB, free: 4.309 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002122/0.3197, allocations: 1.276 MB / 414.5 MB, free: 3.496 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004816/0.3202, allocations: 0.891 MB / 415.4 MB, free: 2.711 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003205/0.3205, allocations: 76.3 kB / 415.5 MB, free: 2.676 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001324/0.3207, allocations: 55.14 kB / 415.5 MB, free: 2.66 MB / 334.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3207, allocations: 0 / 415.5 MB, free: 2.66 MB / 334.1 MB Notification: Performance of Templates: time 0.02319/0.3439, allocations: 14.64 MB / 430.2 MB, free: 5.324 MB / 350.1 MB make -j1 -f Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.makefile (rm -f Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & ./Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1)