Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001476/0.001476, allocations: 105.9 kB / 16.92 MB, free: 6.145 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.001303/0.001303, allocations: 191.5 kB / 17.85 MB, free: 5.309 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.467/1.467, allocations: 205.1 MB / 223.7 MB, free: 12.31 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.001411/0.001411, allocations: 40.16 kB / 280 MB, free: 3.188 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08998/0.0914, allocations: 46.63 MB / 326.6 MB, free: 4.484 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.005752/0.09719, allocations: 4.373 MB / 331 MB, free: 80 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002797/0.1, allocations: 1.251 MB / 332.2 MB, free: 14.82 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005951/0.1006, allocations: 11.94 kB / 332.2 MB, free: 14.8 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006009/0.1013, allocations: 134.8 kB / 332.4 MB, free: 14.67 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008312/0.1022, allocations: 257.8 kB / 332.6 MB, free: 14.42 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005363/0.1027, allocations: 203.6 kB / 332.8 MB, free: 14.22 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000951/0.1037, allocations: 0.9296 MB / 333.8 MB, free: 13.29 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003897/0.1041, allocations: 252.5 kB / 334 MB, free: 13.03 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003995/0.1045, allocations: 354.7 kB / 334.3 MB, free: 12.68 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004122/0.1049, allocations: 402.3 kB / 334.7 MB, free: 12.29 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001138/0.105, allocations: 76 kB / 334.8 MB, free: 12.21 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001325/0.1052, allocations: 80 kB / 334.9 MB, free: 12.14 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001391/0.1053, allocations: 171.4 kB / 335.1 MB, free: 11.97 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003536/0.1057, allocations: 414.1 kB / 335.5 MB, free: 11.56 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008964/0.1066, allocations: 0.9071 MB / 336.4 MB, free: 10.65 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.1066, allocations: 0 / 336.4 MB, free: 10.65 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1066, allocations: 0 / 336.4 MB, free: 10.65 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.232e-05/0.1066, allocations: 4 kB / 336.4 MB, free: 10.65 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: 111 * Number of variables: 111 Notification: Performance of Generate backend data structure: time 0.002066/0.1087, allocations: 1.109 MB / 337.5 MB, free: 9.473 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.1087, allocations: 12.03 kB / 337.5 MB, free: 9.461 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001423/0.1089, allocations: 80.09 kB / 337.6 MB, free: 9.383 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006009/0.1095, allocations: 484.5 kB / 338.1 MB, free: 8.871 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001369/0.1097, allocations: 96.95 kB / 338.1 MB, free: 8.766 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.567e-05/0.1097, allocations: 52.38 kB / 338.2 MB, free: 8.715 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001068/0.1108, allocations: 0.6438 MB / 338.8 MB, free: 7.996 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.973e-05/0.1108, allocations: 8 kB / 338.8 MB, free: 7.988 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.829e-05/0.1109, allocations: 20 kB / 338.9 MB, free: 7.969 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.315e-05/0.1109, allocations: 15.94 kB / 338.9 MB, free: 7.953 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001022/0.112, allocations: 447.6 kB / 339.3 MB, free: 7.516 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.002994/0.115, allocations: 1.959 MB / 341.3 MB, free: 5.43 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00187/0.1168, allocations: 0.6866 MB / 342 MB, free: 4.719 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005754/0.1174, allocations: 270 kB / 342.2 MB, free: 4.453 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.006e-05/0.1175, allocations: 12.42 kB / 342.2 MB, free: 4.441 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.434e-05/0.1175, allocations: 39 kB / 342.3 MB, free: 4.395 MB / 286.1 MB Notification: Performance of pre-optimization done (n=54): time 1.973e-06/0.1176, allocations: 0 / 342.3 MB, free: 4.395 MB / 286.1 MB Notification: Performance of matching and sorting (n=54): time 0.005052/0.1226, allocations: 1.487 MB / 343.8 MB, free: 2.832 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002617/0.1229, allocations: 0.572 MB / 344.3 MB, free: 2.125 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007637/0.1237, allocations: 0.5381 MB / 344.9 MB, free: 1.578 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 8.434e-05/0.1238, allocations: 45.7 kB / 344.9 MB, free: 1.527 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002437/0.124, allocations: 280.5 kB / 345.2 MB, free: 1.25 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001766/0.1242, allocations: 185.3 kB / 345.4 MB, free: 1.066 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000202/0.1244, allocations: 106.2 kB / 345.5 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001661/0.1246, allocations: 382.7 kB / 345.9 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005185/0.1251, allocations: 193 kB / 346 MB, free: 392 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007809/0.1259, allocations: 416.3 kB / 346.4 MB, free: 15.9 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001113/0.127, allocations: 488.5 kB / 346.9 MB, free: 15.41 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.1271, allocations: 0 / 346.9 MB, free: 15.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002351/0.1294, allocations: 0.8145 MB / 347.7 MB, free: 14.57 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.904e-05/0.1295, allocations: 33.7 kB / 347.8 MB, free: 14.53 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.397e-06/0.1295, allocations: 0 / 347.8 MB, free: 14.53 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00108/0.1306, allocations: 222.4 kB / 348 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007186/0.1313, allocations: 123.8 kB / 348.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008247/0.1396, allocations: 5.618 MB / 353.7 MB, free: 8.141 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007589/0.1404, allocations: 71.55 kB / 353.8 MB, free: 8.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.137e-05/0.1405, allocations: 35.91 kB / 353.8 MB, free: 8.035 MB / 302.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.0003437/0.1408, allocations: 189.8 kB / 354 MB, free: 7.84 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000184/0.141, allocations: 67.25 kB / 354.1 MB, free: 7.773 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002381/0.1434, allocations: 0.7734 MB / 354.9 MB, free: 6.977 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.1434, allocations: 4 kB / 354.9 MB, free: 6.973 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.1434, allocations: 4 kB / 354.9 MB, free: 6.969 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002207/0.1456, allocations: 1.042 MB / 355.9 MB, free: 5.812 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003292/0.1489, allocations: 1.506 MB / 357.4 MB, free: 4.246 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/0.149, allocations: 0 / 357.4 MB, free: 4.246 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007583/0.1497, allocations: 127.8 kB / 357.5 MB, free: 4.121 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008608/0.1506, allocations: 177.5 kB / 357.7 MB, free: 3.941 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.339e-05/0.1507, allocations: 11.98 kB / 357.7 MB, free: 3.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005262/0.1559, allocations: 3.802 MB / 361.5 MB, free: 15.84 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.1559, allocations: 0 / 361.5 MB, free: 15.84 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002874/0.1588, allocations: 1.066 MB / 362.6 MB, free: 14.76 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003277/0.1592, allocations: 200.1 kB / 362.8 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001207/0.1593, allocations: 23.92 kB / 362.8 MB, free: 14.52 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005376/0.1598, allocations: 31.97 kB / 362.8 MB, free: 14.49 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001272/0.16, allocations: 56.38 kB / 362.9 MB, free: 14.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.194e-05/0.16, allocations: 15.98 kB / 362.9 MB, free: 14.42 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004868/0.1605, allocations: 386.8 kB / 363.3 MB, free: 14.04 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1605, allocations: 0 / 363.3 MB, free: 14.04 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007695/0.1613, allocations: 211.8 kB / 363.5 MB, free: 13.84 MB / 318.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.0001505/0.1615, allocations: 115.2 kB / 363.6 MB, free: 13.71 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002716/0.1642, allocations: 1.057 MB / 364.7 MB, free: 12.6 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.081e-06/0.1642, allocations: 3.938 kB / 364.7 MB, free: 12.59 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001582/0.1658, allocations: 0.5357 MB / 365.2 MB, free: 12.04 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009591/0.1668, allocations: 182.1 kB / 365.4 MB, free: 11.86 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002634/0.1694, allocations: 1.288 MB / 366.7 MB, free: 10.54 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005326/0.17, allocations: 0.884 MB / 367.6 MB, free: 9.633 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003733/0.1704, allocations: 85.11 kB / 367.6 MB, free: 9.551 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001321/0.1705, allocations: 51.44 kB / 367.7 MB, free: 9.5 MB / 318.1 MB Notification: Performance of SimCode: time 8.61e-07/0.1705, allocations: 0 / 367.7 MB, free: 9.5 MB / 318.1 MB Notification: Performance of Templates: time 0.1638/0.3344, allocations: 14.05 MB / 381.7 MB, free: 50.58 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.makefile (rm -f Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & ./Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1)