Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.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.WaterPump,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001138/0.001138, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.006388/0.006388, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.581/1.581, allocations: 205.4 MB / 222.4 MB, free: 5.574 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.0005433/0.0005433, allocations: 8 kB / 279.4 MB, free: 12.53 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3258/0.3263, allocations: 47.59 MB / 327 MB, free: 1.438 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.006029/0.3324, allocations: 4.451 MB / 331.5 MB, free: 13.9 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003877/0.3363, allocations: 1.383 MB / 332.9 MB, free: 12.75 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001204/0.3376, allocations: 10.34 kB / 332.9 MB, free: 12.74 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007021/0.3383, allocations: 125.9 kB / 333 MB, free: 12.64 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001561/0.3399, allocations: 304.6 kB / 333.3 MB, free: 12.4 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007152/0.3406, allocations: 185.2 kB / 333.5 MB, free: 12.24 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001795/0.3424, allocations: 0.97 MB / 334.4 MB, free: 11.67 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005283/0.343, allocations: 267.5 kB / 334.7 MB, free: 11.5 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000652/0.3437, allocations: 366.2 kB / 335.1 MB, free: 11.31 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004871/0.3442, allocations: 414.1 kB / 335.5 MB, free: 10.9 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001109/0.3443, allocations: 60 kB / 335.5 MB, free: 10.84 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001274/0.3444, allocations: 56 kB / 335.6 MB, free: 10.79 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001509/0.3446, allocations: 159.3 kB / 335.7 MB, free: 10.63 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004714/0.345, allocations: 467.5 kB / 336.2 MB, free: 10.17 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009691/0.346, allocations: 1.02 MB / 337.2 MB, free: 9.145 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.135e-06/0.346, allocations: 4 kB / 337.2 MB, free: 9.141 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.3461, allocations: 0 / 337.2 MB, free: 9.141 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.898e-06/0.3461, allocations: 0 / 337.2 MB, free: 9.141 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: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.002228/0.3483, allocations: 1.08 MB / 338.3 MB, free: 7.996 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/0.3484, allocations: 8.031 kB / 338.3 MB, free: 7.988 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000189/0.3486, allocations: 95.91 kB / 338.4 MB, free: 7.895 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000789/0.3494, allocations: 0.5081 MB / 338.9 MB, free: 7.344 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001793/0.3495, allocations: 101.3 kB / 339 MB, free: 7.23 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.32e-05/0.3497, allocations: 48.38 kB / 339.1 MB, free: 7.184 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001449/0.3511, allocations: 0.8278 MB / 339.9 MB, free: 6.25 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.118e-05/0.3511, allocations: 0 / 339.9 MB, free: 6.25 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.592e-05/0.3512, allocations: 31.98 kB / 339.9 MB, free: 6.219 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.567e-05/0.3512, allocations: 12 kB / 339.9 MB, free: 6.207 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001262/0.3525, allocations: 0.527 MB / 340.4 MB, free: 5.684 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.003628/0.3561, allocations: 2.169 MB / 342.6 MB, free: 3.375 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001375/0.3575, allocations: 0.5612 MB / 343.2 MB, free: 2.801 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005991/0.3581, allocations: 278.4 kB / 343.5 MB, free: 2.527 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.003e-05/0.3582, allocations: 13.64 kB / 343.5 MB, free: 2.516 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008508/0.3591, allocations: 339 kB / 343.8 MB, free: 2.172 MB / 270.1 MB Notification: Performance of pre-optimization done (n=56): time 5.16e-06/0.3591, allocations: 3.984 kB / 343.8 MB, free: 2.168 MB / 270.1 MB Notification: Performance of matching and sorting (n=56): time 0.005407/0.3645, allocations: 1.61 MB / 345.4 MB, free: 0.5078 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005913/0.3651, allocations: 0.8272 MB / 346.2 MB, free: 15.48 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008365/0.366, allocations: 0.59 MB / 346.8 MB, free: 14.88 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 8.597e-05/0.3661, allocations: 41.7 kB / 346.9 MB, free: 14.84 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003106/0.3664, allocations: 328.8 kB / 347.2 MB, free: 14.51 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001978/0.3666, allocations: 197.2 kB / 347.4 MB, free: 14.32 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.459e-05/0.3667, allocations: 49.69 kB / 347.4 MB, free: 14.26 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001934/0.3669, allocations: 374.8 kB / 347.8 MB, free: 13.89 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005802/0.3675, allocations: 229 kB / 348 MB, free: 13.66 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008524/0.3683, allocations: 0.5325 MB / 348.6 MB, free: 13.01 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001284/0.3696, allocations: 0.6005 MB / 349.2 MB, free: 12.37 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.3696, allocations: 0 / 349.2 MB, free: 12.37 MB / 286.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002433/0.3721, allocations: 0.9519 MB / 350.1 MB, free: 11.39 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.731e-05/0.3722, allocations: 63.39 kB / 350.2 MB, free: 11.31 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.192e-05/0.3722, allocations: 4 kB / 350.2 MB, free: 11.31 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007578/0.3729, allocations: 229.5 kB / 350.4 MB, free: 11.08 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000603/0.3736, allocations: 123.8 kB / 350.5 MB, free: 10.96 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006818/0.3804, allocations: 4.264 MB / 354.8 MB, free: 6.422 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0011/0.3815, allocations: 95.48 kB / 354.9 MB, free: 6.328 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.315e-05/0.3816, allocations: 20 kB / 354.9 MB, free: 6.309 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 6 (oneWayValve.backward,trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.T_start,$whenCondition1) * 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: 2 * 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 {(9,3), (1,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0004675/0.3821, allocations: 217.7 kB / 355.1 MB, free: 6.086 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001364/0.3822, allocations: 79.16 kB / 355.2 MB, free: 6.008 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001618/0.3824, allocations: 74.86 kB / 355.3 MB, free: 5.934 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-05/0.3824, allocations: 8 kB / 355.3 MB, free: 5.926 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.3824, allocations: 4 kB / 355.3 MB, free: 5.922 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002296/0.3847, allocations: 1.101 MB / 356.4 MB, free: 4.715 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003025/0.3878, allocations: 1.58 MB / 357.9 MB, free: 3.059 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.3878, allocations: 0 / 357.9 MB, free: 3.059 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006036/0.3884, allocations: 115.9 kB / 358.1 MB, free: 2.945 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005532/0.389, allocations: 177.6 kB / 358.2 MB, free: 2.766 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.716e-05/0.389, allocations: 12 kB / 358.2 MB, free: 2.754 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004906/0.3939, allocations: 3.666 MB / 361.9 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.3939, allocations: 0 / 361.9 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002553/0.3965, allocations: 1.074 MB / 363 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003824/0.3969, allocations: 219.9 kB / 363.2 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.632e-05/0.397, allocations: 16.06 kB / 363.2 MB, free: 13.47 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006121/0.3976, allocations: 55.95 kB / 363.3 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001616/0.3978, allocations: 56.42 kB / 363.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.56e-05/0.3978, allocations: 15.98 kB / 363.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005404/0.3984, allocations: 419.1 kB / 363.8 MB, free: 12.94 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3984, allocations: 0 / 363.8 MB, free: 12.94 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008791/0.3993, allocations: 255.9 kB / 364 MB, free: 12.69 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (speed.phi) * Number of discrete variables: 4 ($whenCondition1,trapezoid.T_start,trapezoid.count,oneWayValve.backward) * Number of discrete states: 1 (trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {(2,3), (1,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001813/0.3995, allocations: 115.1 kB / 364.1 MB, free: 12.57 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002137/0.4016, allocations: 1.038 MB / 365.2 MB, free: 11.48 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.49e-06/0.4016, allocations: 4 kB / 365.2 MB, free: 11.48 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001038/0.4027, allocations: 0.5595 MB / 365.7 MB, free: 10.89 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009938/0.4037, allocations: 203.4 kB / 365.9 MB, free: 10.69 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002919/0.4066, allocations: 1.626 MB / 367.5 MB, free: 9.043 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005186/0.4072, allocations: 0.9122 MB / 368.5 MB, free: 8.105 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003937/0.4076, allocations: 85.22 kB / 368.5 MB, free: 8.023 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001286/0.4077, allocations: 51.42 kB / 368.6 MB, free: 7.973 MB / 302.1 MB Notification: Performance of SimCode: time 1.102e-06/0.4077, allocations: 0 / 368.6 MB, free: 7.973 MB / 302.1 MB Notification: Performance of Templates: time 0.02727/0.435, allocations: 14.91 MB / 383.5 MB, free: 9.027 MB / 318.1 MB make -j1 -f Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.makefile (rm -f Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & ./Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1)