Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2.2_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.0008509/0.0008509, allocations: 89.59 kB / 16.65 MB, free: 6.586 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.0009151/0.0009151, allocations: 182 kB / 17.56 MB, free: 6.203 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.502/1.502, allocations: 205.4 MB / 223.7 MB, free: 12.99 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.0004874/0.0004875, allocations: 16 kB / 280.7 MB, free: 3.398 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09224/0.09274, allocations: 47.58 MB / 328.3 MB, free: 3.75 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.004353/0.09713, allocations: 4.443 MB / 332.8 MB, free: 15.28 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002317/0.09947, allocations: 1.387 MB / 334.1 MB, free: 13.88 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003037/0.0998, allocations: 7.938 kB / 334.2 MB, free: 13.88 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000371/0.1002, allocations: 127.2 kB / 334.3 MB, free: 13.75 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006752/0.1009, allocations: 305.9 kB / 334.6 MB, free: 13.45 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00041/0.1013, allocations: 179.8 kB / 334.8 MB, free: 13.27 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008258/0.1021, allocations: 0.9876 MB / 335.7 MB, free: 12.28 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003418/0.1025, allocations: 261.9 kB / 336 MB, free: 12.01 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004122/0.1029, allocations: 362.7 kB / 336.3 MB, free: 11.65 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003917/0.1033, allocations: 418.1 kB / 336.8 MB, free: 11.24 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.182e-05/0.1034, allocations: 59.98 kB / 336.8 MB, free: 11.18 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001113/0.1035, allocations: 64 kB / 336.9 MB, free: 11.12 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001276/0.1037, allocations: 163.3 kB / 337 MB, free: 10.96 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003932/0.1041, allocations: 467.5 kB / 337.5 MB, free: 10.5 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000748/0.1048, allocations: 1.012 MB / 338.5 MB, free: 9.48 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.1048, allocations: 0 / 338.5 MB, free: 9.48 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1048, allocations: 0 / 338.5 MB, free: 9.48 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.042e-05/0.1048, allocations: 0 / 338.5 MB, free: 9.48 MB / 286.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.001904/0.1068, allocations: 1.076 MB / 339.6 MB, free: 8.34 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/0.1068, allocations: 12.03 kB / 339.6 MB, free: 8.328 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001698/0.107, allocations: 95.91 kB / 339.7 MB, free: 8.234 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006869/0.1077, allocations: 0.5081 MB / 340.2 MB, free: 7.684 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001554/0.1078, allocations: 105.3 kB / 340.3 MB, free: 7.566 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.879e-05/0.1079, allocations: 52.38 kB / 340.4 MB, free: 7.516 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001338/0.1093, allocations: 0.8083 MB / 341.2 MB, free: 6.602 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.866e-05/0.1093, allocations: 3.938 kB / 341.2 MB, free: 6.598 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.11e-05/0.1094, allocations: 28 kB / 341.2 MB, free: 6.57 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.684e-05/0.1094, allocations: 12 kB / 341.2 MB, free: 6.559 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001157/0.1106, allocations: 0.5348 MB / 341.7 MB, free: 6.027 MB / 286.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.00311/0.1137, allocations: 2.169 MB / 343.9 MB, free: 3.719 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001272/0.115, allocations: 0.5722 MB / 344.5 MB, free: 3.133 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005807/0.1156, allocations: 274.4 kB / 344.7 MB, free: 2.863 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.831e-05/0.1156, allocations: 13.64 kB / 344.8 MB, free: 2.852 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007677/0.1164, allocations: 347 kB / 345.1 MB, free: 2.5 MB / 286.1 MB Notification: Performance of pre-optimization done (n=56): time 2.915e-06/0.1164, allocations: 0 / 345.1 MB, free: 2.5 MB / 286.1 MB Notification: Performance of matching and sorting (n=56): time 0.004916/0.1213, allocations: 1.606 MB / 346.7 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003417/0.1217, allocations: 0.8194 MB / 347.5 MB, free: 15.82 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006535/0.1224, allocations: 0.5901 MB / 348.1 MB, free: 15.23 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.246e-05/0.1224, allocations: 45.7 kB / 348.2 MB, free: 15.18 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002595/0.1227, allocations: 336.7 kB / 348.5 MB, free: 14.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001658/0.1229, allocations: 181.3 kB / 348.7 MB, free: 14.66 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.659e-05/0.123, allocations: 57.69 kB / 348.7 MB, free: 14.6 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.1231, allocations: 382.8 kB / 349.1 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005547/0.1237, allocations: 225 kB / 349.3 MB, free: 14 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008001/0.1245, allocations: 0.5364 MB / 349.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001158/0.1257, allocations: 0.5888 MB / 350.4 MB, free: 12.71 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.1257, allocations: 0 / 350.4 MB, free: 12.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002211/0.1279, allocations: 0.9637 MB / 351.4 MB, free: 11.72 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.804e-05/0.128, allocations: 59.41 kB / 351.5 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.833e-05/0.128, allocations: 7.922 kB / 351.5 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007086/0.1287, allocations: 225.5 kB / 351.7 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006089/0.1293, allocations: 123.9 kB / 351.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006279/0.1356, allocations: 4.26 MB / 356.1 MB, free: 6.762 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009028/0.1365, allocations: 91.47 kB / 356.2 MB, free: 6.672 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.98e-05/0.1366, allocations: 24 kB / 356.2 MB, free: 6.648 MB / 302.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.0003914/0.137, allocations: 221.1 kB / 356.4 MB, free: 6.426 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000114/0.1371, allocations: 79.06 kB / 356.5 MB, free: 6.348 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001359/0.1373, allocations: 82.84 kB / 356.6 MB, free: 6.266 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/0.1373, allocations: 4 kB / 356.6 MB, free: 6.262 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.1373, allocations: 0 / 356.6 MB, free: 6.262 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002011/0.1393, allocations: 1.109 MB / 357.7 MB, free: 5.047 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002679/0.142, allocations: 1.58 MB / 359.2 MB, free: 3.391 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/0.142, allocations: 0 / 359.2 MB, free: 3.391 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000625/0.1426, allocations: 115.8 kB / 359.4 MB, free: 3.277 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005581/0.1432, allocations: 173.6 kB / 359.5 MB, free: 3.102 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.514e-05/0.1433, allocations: 11.98 kB / 359.5 MB, free: 3.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00461/0.1479, allocations: 3.67 MB / 363.2 MB, free: 15.15 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1479, allocations: 0 / 363.2 MB, free: 15.15 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002436/0.1503, allocations: 1.078 MB / 364.3 MB, free: 14.05 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003258/0.1507, allocations: 216 kB / 364.5 MB, free: 13.82 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.123e-05/0.1508, allocations: 20 kB / 364.5 MB, free: 13.8 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006195/0.1514, allocations: 55.95 kB / 364.6 MB, free: 13.74 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001427/0.1516, allocations: 52.55 kB / 364.6 MB, free: 13.69 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.113e-05/0.1516, allocations: 16 kB / 364.6 MB, free: 13.68 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005075/0.1521, allocations: 419.1 kB / 365.1 MB, free: 13.27 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1521, allocations: 3.938 kB / 365.1 MB, free: 13.27 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008296/0.153, allocations: 247.8 kB / 365.3 MB, free: 13.03 MB / 318.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.0001715/0.1531, allocations: 127 kB / 365.4 MB, free: 12.89 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001968/0.1551, allocations: 1.035 MB / 366.5 MB, free: 11.81 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.102e-06/0.1551, allocations: 112 / 366.5 MB, free: 11.81 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009193/0.156, allocations: 0.5594 MB / 367 MB, free: 11.22 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000888/0.1569, allocations: 195.2 kB / 367.2 MB, free: 11.03 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002547/0.1595, allocations: 1.623 MB / 368.8 MB, free: 9.387 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004427/0.16, allocations: 0.9121 MB / 369.7 MB, free: 8.449 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003463/0.1603, allocations: 85.22 kB / 369.8 MB, free: 8.367 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001238/0.1605, allocations: 55.42 kB / 369.9 MB, free: 8.312 MB / 318.1 MB Notification: Performance of SimCode: time 9.42e-07/0.1605, allocations: 0 / 369.9 MB, free: 8.312 MB / 318.1 MB Notification: Performance of Templates: time 0.2245/0.3849, allocations: 14.91 MB / 384.8 MB, free: 50.84 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.makefile (rm -f Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & ./Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1)