Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.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.006036/0.006035, allocations: 102.1 kB / 15.73 MB, free: 6.008 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.001314/0.001314, allocations: 192.1 kB / 16.67 MB, free: 5.949 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.534/1.534, allocations: 205.1 MB / 222.6 MB, free: 4.539 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.001304/0.001304, allocations: 51.66 kB / 326.5 MB, free: 14.46 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1194, allocations: 46.62 MB / 373.2 MB, free: 1.434 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.006326/0.1258, allocations: 4.83 MB / 378 MB, free: 12.57 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00294/0.1287, allocations: 1.398 MB / 379.4 MB, free: 11.16 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003195/0.1291, allocations: 11.94 kB / 379.4 MB, free: 11.15 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004314/0.1296, allocations: 154.7 kB / 379.6 MB, free: 11 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007511/0.1303, allocations: 341.4 kB / 379.9 MB, free: 10.66 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000487/0.1308, allocations: 215.6 kB / 380.1 MB, free: 10.45 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001001/0.1318, allocations: 1.027 MB / 381.1 MB, free: 9.422 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004627/0.1323, allocations: 305.8 kB / 381.4 MB, free: 9.113 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004829/0.1328, allocations: 402.6 kB / 381.8 MB, free: 8.719 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005109/0.1333, allocations: 458 kB / 382.3 MB, free: 8.27 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001347/0.1335, allocations: 88 kB / 382.3 MB, free: 8.184 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001385/0.1336, allocations: 96 kB / 382.4 MB, free: 8.09 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001881/0.1338, allocations: 191.4 kB / 382.6 MB, free: 7.902 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004573/0.1343, allocations: 477.8 kB / 383.1 MB, free: 7.434 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001066/0.1353, allocations: 1.067 MB / 384.2 MB, free: 6.363 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.1354, allocations: 3.938 kB / 384.2 MB, free: 6.359 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1354, allocations: 3.938 kB / 384.2 MB, free: 6.355 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.225e-05/0.1354, allocations: 0 / 384.2 MB, free: 6.355 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: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.002235/0.1376, allocations: 1.22 MB / 385.4 MB, free: 5.07 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.136e-05/0.1377, allocations: 12.03 kB / 385.4 MB, free: 5.059 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001831/0.1379, allocations: 99.91 kB / 385.5 MB, free: 4.961 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008355/0.1387, allocations: 0.5197 MB / 386 MB, free: 4.398 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001648/0.1389, allocations: 97.28 kB / 386.1 MB, free: 4.293 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.383e-05/0.139, allocations: 52.38 kB / 386.2 MB, free: 4.242 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001336/0.1403, allocations: 0.8005 MB / 387 MB, free: 3.336 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.289e-05/0.1404, allocations: 0 / 387 MB, free: 3.336 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.384e-05/0.1405, allocations: 28 kB / 387 MB, free: 3.309 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.58e-05/0.1405, allocations: 12 kB / 387 MB, free: 3.297 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001194/0.1417, allocations: 0.5036 MB / 387.5 MB, free: 2.789 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.003428/0.1451, allocations: 2.142 MB / 389.6 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001257/0.1464, allocations: 0.5291 MB / 390.2 MB, free: 15.97 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005495/0.147, allocations: 262.4 kB / 390.4 MB, free: 15.71 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.282e-05/0.147, allocations: 17.64 kB / 390.5 MB, free: 15.69 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007163/0.1478, allocations: 315 kB / 390.8 MB, free: 15.37 MB / 334.1 MB Notification: Performance of pre-optimization done (n=56): time 3.297e-06/0.1478, allocations: 4 kB / 390.8 MB, free: 15.37 MB / 334.1 MB Notification: Performance of matching and sorting (n=56): time 0.004946/0.1527, allocations: 1.493 MB / 392.3 MB, free: 13.82 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004377/0.1532, allocations: 0.8233 MB / 393.1 MB, free: 12.8 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007914/0.154, allocations: 0.5901 MB / 393.7 MB, free: 12.21 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.129e-05/0.1541, allocations: 37.7 kB / 393.7 MB, free: 12.16 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003027/0.1544, allocations: 336.8 kB / 394 MB, free: 11.83 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001957/0.1546, allocations: 185.2 kB / 394.2 MB, free: 11.64 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002255/0.1548, allocations: 138.1 kB / 394.4 MB, free: 11.5 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001817/0.155, allocations: 378.8 kB / 394.7 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005238/0.1555, allocations: 209 kB / 394.9 MB, free: 10.92 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007985/0.1564, allocations: 0.5208 MB / 395.4 MB, free: 10.28 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001098/0.1575, allocations: 0.5653 MB / 396 MB, free: 9.668 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/0.1575, allocations: 4 kB / 396 MB, free: 9.664 MB / 334.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002139/0.1596, allocations: 0.8935 MB / 396.9 MB, free: 8.746 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.999e-05/0.1597, allocations: 71.33 kB / 397 MB, free: 8.664 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.707e-06/0.1597, allocations: 0 / 397 MB, free: 8.664 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007528/0.1605, allocations: 221.5 kB / 397.2 MB, free: 8.441 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006074/0.1611, allocations: 123.8 kB / 397.3 MB, free: 8.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006432/0.1675, allocations: 4.584 MB / 401.9 MB, free: 3.461 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009162/0.1685, allocations: 83.47 kB / 402 MB, free: 3.379 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.27e-05/0.1686, allocations: 20 kB / 402 MB, free: 3.359 MB / 334.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.0003972/0.169, allocations: 217.7 kB / 402.2 MB, free: 3.137 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001131/0.1691, allocations: 79.06 kB / 402.3 MB, free: 3.059 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001489/0.1692, allocations: 78.84 kB / 402.4 MB, free: 2.973 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.396e-06/0.1693, allocations: 11.94 kB / 402.4 MB, free: 2.961 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.1693, allocations: 0 / 402.4 MB, free: 2.961 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002006/0.1713, allocations: 1.05 MB / 403.4 MB, free: 1.797 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002845/0.1741, allocations: 1.528 MB / 405 MB, free: 204 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.1742, allocations: 0 / 405 MB, free: 204 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006248/0.1748, allocations: 111.8 kB / 405.1 MB, free: 92 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006027/0.1754, allocations: 177.4 kB / 405.2 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.444e-05/0.1755, allocations: 15.98 kB / 405.3 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005236/0.1807, allocations: 3.932 MB / 409.2 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.1808, allocations: 3.984 kB / 409.2 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002476/0.1832, allocations: 1.028 MB / 410.2 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004349/0.1837, allocations: 216 kB / 410.4 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001439/0.1839, allocations: 19.98 kB / 410.4 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006155/0.1845, allocations: 43.95 kB / 410.5 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001773/0.1847, allocations: 48.5 kB / 410.5 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.91e-05/0.1847, allocations: 15.98 kB / 410.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000668/0.1854, allocations: 419.1 kB / 411 MB, free: 9.863 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.1854, allocations: 4.062 kB / 411 MB, free: 9.859 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001123/0.1865, allocations: 251.7 kB / 411.2 MB, free: 9.613 MB / 350.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.0002211/0.1868, allocations: 123.2 kB / 411.3 MB, free: 9.484 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002396/0.1892, allocations: 1.011 MB / 412.3 MB, free: 8.422 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.071e-06/0.1892, allocations: 0.5 kB / 412.3 MB, free: 8.422 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001113/0.1903, allocations: 0.5473 MB / 412.9 MB, free: 7.848 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009958/0.1913, allocations: 219.2 kB / 413.1 MB, free: 7.637 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003357/0.1947, allocations: 1.304 MB / 414.4 MB, free: 6.309 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00078/0.1955, allocations: 0.9199 MB / 415.3 MB, free: 5.359 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004892/0.196, allocations: 89.2 kB / 415.4 MB, free: 5.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001715/0.1962, allocations: 51.44 kB / 415.5 MB, free: 5.223 MB / 350.1 MB Notification: Performance of SimCode: time 6.82e-07/0.1962, allocations: 0 / 415.5 MB, free: 5.223 MB / 350.1 MB Notification: Performance of Templates: time 0.03323/0.2295, allocations: 16.29 MB / 431.8 MB, free: 4.895 MB / 366.1 MB make -j1 -f Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.makefile (rm -f Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & ./Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1)