Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.1_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.009316/0.009316, allocations: 100.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.001747/0.001747, allocations: 196.9 kB / 16.67 MB, free: 5.93 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.523/1.523, allocations: 205.1 MB / 222.6 MB, free: 4.504 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.001337/0.001337, allocations: 49.75 kB / 326.5 MB, free: 14.36 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0885/0.08985, allocations: 46.63 MB / 373.2 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.005768/0.09565, allocations: 4.365 MB / 377.5 MB, free: 12.94 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002463/0.09815, allocations: 1.258 MB / 378.8 MB, free: 11.67 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005769/0.09875, allocations: 7.938 kB / 378.8 MB, free: 11.66 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005959/0.0994, allocations: 134.8 kB / 378.9 MB, free: 11.53 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009849/0.1004, allocations: 269.8 kB / 379.2 MB, free: 11.26 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005576/0.101, allocations: 195.7 kB / 379.4 MB, free: 11.07 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001236/0.1022, allocations: 0.9297 MB / 380.3 MB, free: 10.14 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003857/0.1026, allocations: 244.5 kB / 380.5 MB, free: 9.887 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005614/0.1032, allocations: 370.7 kB / 380.9 MB, free: 9.523 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005438/0.1037, allocations: 406.3 kB / 381.3 MB, free: 9.125 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001032/0.1039, allocations: 76 kB / 381.4 MB, free: 9.051 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001176/0.104, allocations: 76 kB / 381.5 MB, free: 8.977 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001339/0.1041, allocations: 167.4 kB / 381.6 MB, free: 8.812 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003738/0.1045, allocations: 422 kB / 382 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008997/0.1054, allocations: 0.9304 MB / 383 MB, free: 7.465 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.1054, allocations: 0 / 383 MB, free: 7.465 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1054, allocations: 0 / 383 MB, free: 7.465 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.615e-05/0.1055, allocations: 0 / 383 MB, free: 7.465 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: 111 * Number of variables: 111 Notification: Performance of Generate backend data structure: time 0.001959/0.1074, allocations: 1.101 MB / 384.1 MB, free: 6.301 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.089e-05/0.1075, allocations: 8.031 kB / 384.1 MB, free: 6.293 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001639/0.1076, allocations: 92 kB / 384.2 MB, free: 6.203 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007428/0.1084, allocations: 488.6 kB / 384.6 MB, free: 5.684 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001487/0.1086, allocations: 92.95 kB / 384.7 MB, free: 5.582 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.478e-05/0.1087, allocations: 48.38 kB / 384.8 MB, free: 5.535 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001223/0.1099, allocations: 0.6477 MB / 385.4 MB, free: 4.812 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.29e-05/0.1099, allocations: 7.844 kB / 385.4 MB, free: 4.805 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.129e-05/0.11, allocations: 27.94 kB / 385.5 MB, free: 4.777 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.31e-05/0.11, allocations: 8 kB / 385.5 MB, free: 4.77 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001069/0.1111, allocations: 451.7 kB / 385.9 MB, free: 4.328 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.003212/0.1143, allocations: 1.948 MB / 387.9 MB, free: 2.258 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00188/0.1162, allocations: 0.6864 MB / 388.5 MB, free: 1.543 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000571/0.1168, allocations: 262 kB / 388.8 MB, free: 1.285 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.376e-05/0.1169, allocations: 16.41 kB / 388.8 MB, free: 1.27 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.714e-05/0.1169, allocations: 43 kB / 388.9 MB, free: 1.219 MB / 318.1 MB Notification: Performance of pre-optimization done (n=54): time 2.024e-06/0.1169, allocations: 7.938 kB / 388.9 MB, free: 1.211 MB / 318.1 MB Notification: Performance of matching and sorting (n=54): time 0.004953/0.1219, allocations: 1.472 MB / 390.3 MB, free: 15.66 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002678/0.1222, allocations: 0.576 MB / 390.9 MB, free: 14.95 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006516/0.1228, allocations: 0.5304 MB / 391.4 MB, free: 14.41 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.445e-05/0.1229, allocations: 41.7 kB / 391.5 MB, free: 14.36 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002184/0.1231, allocations: 280.9 kB / 391.8 MB, free: 14.07 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001646/0.1233, allocations: 193.1 kB / 391.9 MB, free: 13.89 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001973/0.1235, allocations: 114.1 kB / 392.1 MB, free: 13.77 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001932/0.1237, allocations: 370.8 kB / 392.4 MB, free: 13.4 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005557/0.1243, allocations: 201 kB / 392.6 MB, free: 13.2 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007958/0.1251, allocations: 412.2 kB / 393 MB, free: 12.72 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001133/0.1262, allocations: 492.5 kB / 393.5 MB, free: 12.22 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.1263, allocations: 4 kB / 393.5 MB, free: 12.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002336/0.1286, allocations: 0.8029 MB / 394.3 MB, free: 11.39 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.633e-05/0.1287, allocations: 33.7 kB / 394.3 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.1287, allocations: 4.031 kB / 394.3 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001009/0.1297, allocations: 226.3 kB / 394.6 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006937/0.1304, allocations: 123.8 kB / 394.7 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007975/0.1384, allocations: 5.615 MB / 400.3 MB, free: 4.961 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007305/0.1391, allocations: 71.55 kB / 400.4 MB, free: 4.891 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.435e-05/0.1392, allocations: 19.98 kB / 400.4 MB, free: 4.871 MB / 334.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.0003586/0.1396, allocations: 205.6 kB / 400.6 MB, free: 4.66 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001582/0.1397, allocations: 75.16 kB / 400.7 MB, free: 4.586 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002398/0.1421, allocations: 0.7695 MB / 401.4 MB, free: 3.805 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.146e-06/0.1422, allocations: 4 kB / 401.4 MB, free: 3.801 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.1422, allocations: 0 / 401.4 MB, free: 3.801 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002202/0.1444, allocations: 1.042 MB / 402.5 MB, free: 2.645 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003209/0.1476, allocations: 1.498 MB / 404 MB, free: 1.078 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.332e-06/0.1476, allocations: 3.938 kB / 404 MB, free: 1.074 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007608/0.1484, allocations: 131.8 kB / 404.1 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008435/0.1492, allocations: 173.5 kB / 404.3 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.745e-05/0.1493, allocations: 15.98 kB / 404.3 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00526/0.1546, allocations: 3.799 MB / 408.1 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.1546, allocations: 0 / 408.1 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002807/0.1574, allocations: 1.067 MB / 409.2 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000428/0.1578, allocations: 200.2 kB / 409.4 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001482/0.158, allocations: 15.98 kB / 409.4 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005534/0.1586, allocations: 35.97 kB / 409.4 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001343/0.1587, allocations: 40.5 kB / 409.4 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.274e-05/0.1588, allocations: 23.94 kB / 409.5 MB, free: 11.26 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005129/0.1593, allocations: 386.8 kB / 409.8 MB, free: 10.88 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1593, allocations: 0 / 409.8 MB, free: 10.88 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008815/0.1602, allocations: 227.7 kB / 410.1 MB, free: 10.66 MB / 350.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.0001757/0.1604, allocations: 111.2 kB / 410.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002409/0.1628, allocations: 1.034 MB / 411.2 MB, free: 9.453 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.9e-06/0.1628, allocations: 0 / 411.2 MB, free: 9.453 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001012/0.1638, allocations: 0.5435 MB / 411.8 MB, free: 8.887 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008727/0.1647, allocations: 186.6 kB / 411.9 MB, free: 8.699 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002254/0.167, allocations: 1.275 MB / 413.2 MB, free: 7.395 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004398/0.1674, allocations: 0.8918 MB / 414.1 MB, free: 6.477 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003333/0.1678, allocations: 77.14 kB / 414.2 MB, free: 6.398 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001377/0.1679, allocations: 51.42 kB / 414.2 MB, free: 6.348 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1679, allocations: 0 / 414.2 MB, free: 6.348 MB / 350.1 MB Notification: Performance of Templates: time 0.02494/0.1929, allocations: 14.2 MB / 428.4 MB, free: 8.125 MB / 366.1 MB make -j1 -f Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.makefile (rm -f Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & ./Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1)