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/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.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.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.001539/0.001539, allocations: 108 kB / 15.61 MB, free: 152 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.002219/0.002218, allocations: 193.6 kB / 16.53 MB, free: 6.699 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.529/1.529, allocations: 205.1 MB / 222.4 MB, free: 4.637 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.001171/0.001171, allocations: 55.92 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2368/0.238, allocations: 46.63 MB / 325.3 MB, free: 1.859 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.004996/0.243, allocations: 4.363 MB / 329.7 MB, free: 14.39 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002525/0.2455, allocations: 1.247 MB / 330.9 MB, free: 13.35 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000346/0.2459, allocations: 10.66 kB / 330.9 MB, free: 13.35 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003937/0.2463, allocations: 141.6 kB / 331.1 MB, free: 13.23 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005665/0.2469, allocations: 261 kB / 331.3 MB, free: 13 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004413/0.2474, allocations: 204.3 kB / 331.5 MB, free: 12.83 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000909/0.2483, allocations: 0.9167 MB / 332.4 MB, free: 12.28 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004286/0.2487, allocations: 246.6 kB / 332.7 MB, free: 12.14 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004563/0.2492, allocations: 360.1 kB / 333 MB, free: 11.94 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000434/0.2496, allocations: 395.5 kB / 333.4 MB, free: 11.67 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001209/0.2498, allocations: 76.09 kB / 333.5 MB, free: 11.67 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001376/0.2499, allocations: 81.09 kB / 333.6 MB, free: 11.62 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001434/0.2501, allocations: 171.4 kB / 333.7 MB, free: 11.45 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003819/0.2505, allocations: 418.1 kB / 334.1 MB, free: 11.04 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001054/0.2515, allocations: 0.911 MB / 335.1 MB, free: 10.13 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.2515, allocations: 0 / 335.1 MB, free: 10.13 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.494e-06/0.2515, allocations: 0 / 335.1 MB, free: 10.13 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.496e-05/0.2516, allocations: 0 / 335.1 MB, free: 10.13 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.002117/0.2537, allocations: 1.109 MB / 336.2 MB, free: 8.953 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/0.2537, allocations: 12.03 kB / 336.2 MB, free: 8.941 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001637/0.2539, allocations: 84 kB / 336.3 MB, free: 8.859 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007618/0.2547, allocations: 480.5 kB / 336.7 MB, free: 8.352 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001618/0.2549, allocations: 96.95 kB / 336.8 MB, free: 8.246 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.004e-05/0.255, allocations: 48.36 kB / 336.9 MB, free: 8.199 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001183/0.2562, allocations: 0.6554 MB / 337.5 MB, free: 7.469 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.663e-05/0.2562, allocations: 0 / 337.5 MB, free: 7.469 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.572e-05/0.2562, allocations: 28 kB / 337.6 MB, free: 7.441 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.807e-05/0.2563, allocations: 12 kB / 337.6 MB, free: 7.43 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001025/0.2573, allocations: 443.7 kB / 338 MB, free: 6.996 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.003138/0.2604, allocations: 1.967 MB / 340 MB, free: 4.906 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001873/0.2623, allocations: 0.6828 MB / 340.6 MB, free: 4.199 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005643/0.2629, allocations: 270 kB / 340.9 MB, free: 3.934 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.547e-05/0.263, allocations: 12.42 kB / 340.9 MB, free: 3.922 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.531e-05/0.263, allocations: 43 kB / 341 MB, free: 3.867 MB / 270.1 MB Notification: Performance of pre-optimization done (n=54): time 2.304e-06/0.263, allocations: 0 / 341 MB, free: 3.867 MB / 270.1 MB Notification: Performance of matching and sorting (n=54): time 0.004866/0.2679, allocations: 1.48 MB / 342.4 MB, free: 2.316 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002567/0.2682, allocations: 0.5644 MB / 343 MB, free: 1.617 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006205/0.2688, allocations: 0.5342 MB / 343.5 MB, free: 1.074 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.341e-05/0.2689, allocations: 41.7 kB / 343.6 MB, free: 1.027 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002099/0.2691, allocations: 288.5 kB / 343.9 MB, free: 0.7422 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001571/0.2692, allocations: 197.1 kB / 344.1 MB, free: 0.5469 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001722/0.2694, allocations: 110.2 kB / 344.2 MB, free: 440 kB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001812/0.2696, allocations: 374.7 kB / 344.5 MB, free: 56 kB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005116/0.2701, allocations: 197.1 kB / 344.7 MB, free: 15.86 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006698/0.2708, allocations: 412.3 kB / 345.1 MB, free: 15.38 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001046/0.2719, allocations: 492.5 kB / 345.6 MB, free: 14.88 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.958e-06/0.2719, allocations: 0 / 345.6 MB, free: 14.88 MB / 286.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002272/0.2742, allocations: 0.8068 MB / 346.4 MB, free: 14.04 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.078e-05/0.2742, allocations: 33.7 kB / 346.4 MB, free: 14 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/0.2742, allocations: 0 / 346.4 MB, free: 14 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001006/0.2752, allocations: 230.3 kB / 346.7 MB, free: 13.77 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007255/0.276, allocations: 123.8 kB / 346.8 MB, free: 13.65 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007451/0.2834, allocations: 5.626 MB / 352.4 MB, free: 7.605 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007798/0.2843, allocations: 75.53 kB / 352.5 MB, free: 7.531 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.692e-05/0.2843, allocations: 27.94 kB / 352.5 MB, free: 7.504 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.0003511/0.2847, allocations: 189.8 kB / 352.7 MB, free: 7.309 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001378/0.2848, allocations: 67.25 kB / 352.8 MB, free: 7.242 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002269/0.2871, allocations: 0.7773 MB / 353.5 MB, free: 6.441 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.96e-06/0.2871, allocations: 4 kB / 353.6 MB, free: 6.438 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.014e-06/0.2871, allocations: 0 / 353.6 MB, free: 6.438 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002168/0.2893, allocations: 1.042 MB / 354.6 MB, free: 5.281 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003294/0.2926, allocations: 1.502 MB / 356.1 MB, free: 3.715 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.9e-06/0.2926, allocations: 3.938 kB / 356.1 MB, free: 3.711 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007175/0.2933, allocations: 127.8 kB / 356.2 MB, free: 3.586 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008034/0.2942, allocations: 181.5 kB / 356.4 MB, free: 3.402 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.349e-05/0.2942, allocations: 7.938 kB / 356.4 MB, free: 3.395 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005056/0.2993, allocations: 3.807 MB / 360.2 MB, free: 15.31 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.2993, allocations: 0 / 360.2 MB, free: 15.31 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002772/0.3021, allocations: 1.078 MB / 361.3 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002749/0.3024, allocations: 200.1 kB / 361.5 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001022/0.3025, allocations: 20 kB / 361.5 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004942/0.303, allocations: 31.97 kB / 361.5 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001169/0.3031, allocations: 52.44 kB / 361.6 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.021e-05/0.3031, allocations: 11.98 kB / 361.6 MB, free: 13.88 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004395/0.3036, allocations: 386.8 kB / 362 MB, free: 13.51 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3036, allocations: 0 / 362 MB, free: 13.51 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007078/0.3043, allocations: 215.8 kB / 362.2 MB, free: 13.3 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.0001366/0.3044, allocations: 111.2 kB / 362.3 MB, free: 13.18 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002356/0.3068, allocations: 1.061 MB / 363.4 MB, free: 12.06 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.3068, allocations: 0 / 363.4 MB, free: 12.06 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009989/0.3078, allocations: 0.5357 MB / 363.9 MB, free: 11.5 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000836/0.3087, allocations: 181.3 kB / 364.1 MB, free: 11.33 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002453/0.3111, allocations: 1.288 MB / 365.4 MB, free: 10.01 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005312/0.3117, allocations: 0.8957 MB / 366.3 MB, free: 9.09 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003474/0.3121, allocations: 77.14 kB / 366.3 MB, free: 9.016 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001339/0.3122, allocations: 55.42 kB / 366.4 MB, free: 8.961 MB / 302.1 MB Notification: Performance of SimCode: time 6.22e-07/0.3122, allocations: 3.938 kB / 366.4 MB, free: 8.957 MB / 302.1 MB Notification: Performance of Templates: time 0.02254/0.3347, allocations: 14.06 MB / 380.5 MB, free: 10.87 MB / 318.1 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)