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.00119/0.00119, 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.001331/0.001331, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.6/1.6, allocations: 205.1 MB / 222.4 MB, free: 4.602 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.001317/0.001318, allocations: 55.94 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.296/0.2974, allocations: 46.63 MB / 325.3 MB, free: 1.852 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.00678/0.3042, allocations: 4.818 MB / 330.1 MB, free: 14.02 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003699/0.308, allocations: 1.406 MB / 331.5 MB, free: 12.85 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005083/0.3085, allocations: 10.81 kB / 331.5 MB, free: 12.84 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006491/0.3092, allocations: 152.4 kB / 331.7 MB, free: 12.72 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001058/0.3103, allocations: 336.5 kB / 332 MB, free: 12.44 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006429/0.3109, allocations: 209 kB / 332.2 MB, free: 12.26 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001444/0.3124, allocations: 1.032 MB / 333.3 MB, free: 11.64 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004938/0.3129, allocations: 295 kB / 333.5 MB, free: 11.48 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006143/0.3135, allocations: 406.3 kB / 333.9 MB, free: 11.24 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004921/0.314, allocations: 446.1 kB / 334.4 MB, free: 10.8 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001486/0.3142, allocations: 88 kB / 334.5 MB, free: 10.72 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001563/0.3144, allocations: 88 kB / 334.5 MB, free: 10.63 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001831/0.3145, allocations: 199.3 kB / 334.7 MB, free: 10.44 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004467/0.315, allocations: 469.9 kB / 335.2 MB, free: 9.977 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001057/0.3161, allocations: 1.067 MB / 336.3 MB, free: 8.906 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.663e-06/0.3161, allocations: 4 kB / 336.3 MB, free: 8.902 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3161, allocations: 4 kB / 336.3 MB, free: 8.898 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.495e-05/0.3161, allocations: 0 / 336.3 MB, free: 8.898 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.002259/0.3184, allocations: 1.216 MB / 337.5 MB, free: 7.613 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.3184, allocations: 11.97 kB / 337.5 MB, free: 7.602 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001749/0.3186, allocations: 95.91 kB / 337.6 MB, free: 7.508 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006944/0.3193, allocations: 0.5042 MB / 338.1 MB, free: 6.965 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001507/0.3195, allocations: 101.3 kB / 338.2 MB, free: 6.852 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.769e-05/0.3196, allocations: 56.38 kB / 338.3 MB, free: 6.797 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001331/0.3209, allocations: 0.7966 MB / 339.1 MB, free: 5.898 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.898e-05/0.3209, allocations: 0 / 339.1 MB, free: 5.898 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.715e-05/0.321, allocations: 28 kB / 339.1 MB, free: 5.871 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.583e-05/0.321, allocations: 16 kB / 339.1 MB, free: 5.855 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001215/0.3223, allocations: 0.4996 MB / 339.6 MB, free: 5.352 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.003569/0.3258, allocations: 2.165 MB / 341.8 MB, free: 3.051 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001302/0.3272, allocations: 0.5291 MB / 342.3 MB, free: 2.512 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005996/0.3278, allocations: 266.4 kB / 342.6 MB, free: 2.246 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.237e-05/0.3278, allocations: 13.62 kB / 342.6 MB, free: 2.234 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008198/0.3287, allocations: 319 kB / 342.9 MB, free: 1.914 MB / 270.1 MB Notification: Performance of pre-optimization done (n=56): time 2.474e-06/0.3287, allocations: 4 kB / 342.9 MB, free: 1.91 MB / 270.1 MB Notification: Performance of matching and sorting (n=56): time 0.004923/0.3336, allocations: 1.493 MB / 344.4 MB, free: 376 kB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004552/0.3341, allocations: 0.8233 MB / 345.2 MB, free: 15.34 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008257/0.3349, allocations: 0.5939 MB / 345.8 MB, free: 14.74 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 8.796e-05/0.335, allocations: 41.7 kB / 345.8 MB, free: 14.7 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003178/0.3353, allocations: 332.8 kB / 346.2 MB, free: 14.37 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001875/0.3355, allocations: 189.2 kB / 346.3 MB, free: 14.18 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002276/0.3358, allocations: 126.2 kB / 346.5 MB, free: 14.05 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001947/0.336, allocations: 382.8 kB / 346.8 MB, free: 13.67 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005977/0.3366, allocations: 209 kB / 347 MB, free: 13.46 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009266/0.3375, allocations: 0.5169 MB / 347.6 MB, free: 12.82 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001246/0.3388, allocations: 0.5653 MB / 348.1 MB, free: 12.22 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.341e-06/0.3388, allocations: 3.984 kB / 348.1 MB, free: 12.21 MB / 286.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002284/0.3411, allocations: 0.8974 MB / 349 MB, free: 11.29 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.708e-05/0.3412, allocations: 59.39 kB / 349.1 MB, free: 11.22 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.265e-05/0.3412, allocations: 4 kB / 349.1 MB, free: 11.21 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008026/0.342, allocations: 229.5 kB / 349.3 MB, free: 10.98 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000637/0.3427, allocations: 115.8 kB / 349.4 MB, free: 10.87 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006584/0.3492, allocations: 4.592 MB / 354 MB, free: 5.992 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009508/0.3502, allocations: 83.39 kB / 354.1 MB, free: 5.91 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.071e-05/0.3503, allocations: 24.09 kB / 354.1 MB, free: 5.887 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.000428/0.3507, allocations: 217.8 kB / 354.3 MB, free: 5.664 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001301/0.3509, allocations: 79.16 kB / 354.4 MB, free: 5.586 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001605/0.351, allocations: 78.84 kB / 354.5 MB, free: 5.508 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.19e-05/0.3511, allocations: 11.94 kB / 354.5 MB, free: 5.496 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.3511, allocations: 0 / 354.5 MB, free: 5.496 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002124/0.3532, allocations: 1.047 MB / 355.5 MB, free: 4.34 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002811/0.356, allocations: 1.541 MB / 357.1 MB, free: 2.727 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.356, allocations: 3.938 kB / 357.1 MB, free: 2.723 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006154/0.3567, allocations: 111.8 kB / 357.2 MB, free: 2.613 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006072/0.3573, allocations: 173.5 kB / 357.4 MB, free: 2.438 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.134e-05/0.3573, allocations: 15.98 kB / 357.4 MB, free: 2.422 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005205/0.3626, allocations: 3.921 MB / 361.3 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.971e-06/0.3626, allocations: 7.984 kB / 361.3 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002454/0.3651, allocations: 1.019 MB / 362.3 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003896/0.3655, allocations: 216 kB / 362.5 MB, free: 12.94 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001017/0.3656, allocations: 20.06 kB / 362.6 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006219/0.3662, allocations: 43.94 kB / 362.6 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001653/0.3664, allocations: 52.5 kB / 362.7 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.574e-05/0.3664, allocations: 19.98 kB / 362.7 MB, free: 12.81 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005816/0.367, allocations: 415.1 kB / 363.1 MB, free: 12.41 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.054e-06/0.367, allocations: 0 / 363.1 MB, free: 12.41 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009333/0.368, allocations: 255.6 kB / 363.3 MB, free: 12.16 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.0002047/0.3682, allocations: 131.1 kB / 363.5 MB, free: 12.02 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002487/0.3707, allocations: 1.042 MB / 364.5 MB, free: 10.93 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.3707, allocations: 0 / 364.5 MB, free: 10.93 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001179/0.3719, allocations: 0.5438 MB / 365 MB, free: 10.36 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009852/0.3729, allocations: 218.8 kB / 365.3 MB, free: 10.14 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002915/0.3758, allocations: 1.32 MB / 366.6 MB, free: 8.801 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006984/0.3765, allocations: 0.916 MB / 367.5 MB, free: 7.859 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004365/0.377, allocations: 85.22 kB / 367.6 MB, free: 7.777 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001304/0.3771, allocations: 55.42 kB / 367.6 MB, free: 7.723 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3771, allocations: 0 / 367.6 MB, free: 7.723 MB / 302.1 MB Notification: Performance of Templates: time 0.03427/0.4114, allocations: 16.13 MB / 383.8 MB, free: 7.555 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)