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.00612/0.00612, allocations: 112.2 kB / 15.74 MB, free: 6.453 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.001194/0.001194, allocations: 197.3 kB / 16.67 MB, free: 6.352 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.521/1.521, allocations: 205.1 MB / 222.6 MB, free: 4.473 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.00123/0.00123, allocations: 57.47 kB / 326.5 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09116/0.0924, allocations: 46.62 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.006847/0.09929, allocations: 4.357 MB / 377.5 MB, free: 12.93 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003293/0.1026, allocations: 1.266 MB / 378.8 MB, free: 11.65 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004995/0.1032, allocations: 8 kB / 378.8 MB, free: 11.64 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005355/0.1038, allocations: 134.8 kB / 378.9 MB, free: 11.51 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008528/0.1046, allocations: 261.7 kB / 379.2 MB, free: 11.25 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006361/0.1053, allocations: 199.7 kB / 379.4 MB, free: 11.05 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001309/0.1066, allocations: 0.9258 MB / 380.3 MB, free: 10.12 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000528/0.1072, allocations: 252.5 kB / 380.6 MB, free: 9.867 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006791/0.1078, allocations: 362.7 kB / 380.9 MB, free: 9.512 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006589/0.1085, allocations: 398.4 kB / 381.3 MB, free: 9.121 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001672/0.1087, allocations: 76 kB / 381.4 MB, free: 9.047 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001848/0.1089, allocations: 80 kB / 381.4 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002122/0.1091, allocations: 175.3 kB / 381.6 MB, free: 8.797 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005156/0.1097, allocations: 418 kB / 382 MB, free: 8.387 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001216/0.1109, allocations: 0.9265 MB / 383 MB, free: 7.457 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.1109, allocations: 0 / 383 MB, free: 7.457 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1109, allocations: 0 / 383 MB, free: 7.457 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.06e-05/0.1109, allocations: 0 / 383 MB, free: 7.457 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.002771/0.1137, allocations: 1.105 MB / 384.1 MB, free: 6.289 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.636e-05/0.1138, allocations: 12.03 kB / 384.1 MB, free: 6.277 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002319/0.114, allocations: 88 kB / 384.2 MB, free: 6.191 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001152/0.1152, allocations: 480.6 kB / 384.6 MB, free: 5.68 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002319/0.1154, allocations: 96.95 kB / 384.7 MB, free: 5.574 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001356/0.1156, allocations: 44.38 kB / 384.8 MB, free: 5.531 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001952/0.1175, allocations: 0.6554 MB / 385.4 MB, free: 4.801 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.386e-05/0.1176, allocations: 3.906 kB / 385.4 MB, free: 4.797 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.684e-05/0.1177, allocations: 24 kB / 385.4 MB, free: 4.773 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.202e-05/0.1178, allocations: 8 kB / 385.5 MB, free: 4.766 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001957/0.1197, allocations: 455.6 kB / 385.9 MB, free: 4.32 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.005511/0.1253, allocations: 1.944 MB / 387.8 MB, free: 2.254 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003619/0.1289, allocations: 0.6868 MB / 388.5 MB, free: 1.539 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001067/0.13, allocations: 266 kB / 388.8 MB, free: 1.277 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.772e-05/0.1301, allocations: 12.36 kB / 388.8 MB, free: 1.266 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.971e-05/0.1302, allocations: 54.94 kB / 388.9 MB, free: 1.203 MB / 318.1 MB Notification: Performance of pre-optimization done (n=54): time 4.578e-06/0.1302, allocations: 0 / 388.9 MB, free: 1.203 MB / 318.1 MB Notification: Performance of matching and sorting (n=54): time 0.00927/0.1395, allocations: 1.472 MB / 390.3 MB, free: 15.66 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003614/0.1398, allocations: 0.5721 MB / 390.9 MB, free: 14.95 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001186/0.1411, allocations: 0.5343 MB / 391.4 MB, free: 14.4 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001329/0.1412, allocations: 41.7 kB / 391.5 MB, free: 14.36 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004031/0.1416, allocations: 284.8 kB / 391.8 MB, free: 14.07 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002717/0.1419, allocations: 189.2 kB / 391.9 MB, free: 13.88 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003123/0.1422, allocations: 110.1 kB / 392 MB, free: 13.77 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002374/0.1425, allocations: 370.8 kB / 392.4 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009593/0.1435, allocations: 197 kB / 392.6 MB, free: 13.2 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001277/0.1448, allocations: 412.3 kB / 393 MB, free: 12.72 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001994/0.1468, allocations: 496.5 kB / 393.5 MB, free: 12.21 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.1468, allocations: 0 / 393.5 MB, free: 12.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.004231/0.1511, allocations: 0.8068 MB / 394.3 MB, free: 11.39 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.719e-05/0.1512, allocations: 37.73 kB / 394.3 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/0.1512, allocations: 0 / 394.3 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001775/0.153, allocations: 226.3 kB / 394.6 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001373/0.1544, allocations: 123.8 kB / 394.7 MB, free: 10.99 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01348/0.1679, allocations: 5.61 MB / 400.3 MB, free: 4.961 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001369/0.1693, allocations: 71.55 kB / 400.4 MB, free: 4.891 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.615e-05/0.1694, allocations: 20 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.0005161/0.1699, allocations: 201.7 kB / 400.6 MB, free: 4.664 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002393/0.1702, allocations: 71.16 kB / 400.6 MB, free: 4.594 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004322/0.1745, allocations: 0.7812 MB / 401.4 MB, free: 3.801 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.097e-05/0.1746, allocations: 4 kB / 401.4 MB, free: 3.797 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.1746, allocations: 0 / 401.4 MB, free: 3.797 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004026/0.1786, allocations: 1.042 MB / 402.5 MB, free: 2.641 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005897/0.1845, allocations: 1.502 MB / 404 MB, free: 1.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.608e-06/0.1846, allocations: 3.938 kB / 404 MB, free: 1.066 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001417/0.186, allocations: 136 kB / 404.1 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001477/0.1875, allocations: 177.5 kB / 404.3 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.764e-05/0.1876, allocations: 12 kB / 404.3 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006871/0.1945, allocations: 3.791 MB / 408.1 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.1945, allocations: 0 / 408.1 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002849/0.1973, allocations: 1.067 MB / 409.1 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004758/0.1978, allocations: 204.2 kB / 409.3 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001316/0.198, allocations: 12 kB / 409.4 MB, free: 11.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005483/0.1985, allocations: 35.97 kB / 409.4 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001309/0.1987, allocations: 52.42 kB / 409.4 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.353e-05/0.1987, allocations: 19.94 kB / 409.5 MB, free: 11.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004716/0.1992, allocations: 382.8 kB / 409.8 MB, free: 10.88 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1992, allocations: 0 / 409.8 MB, free: 10.88 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008396/0.2, allocations: 223.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.000184/0.2002, allocations: 115.2 kB / 410.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002543/0.2028, allocations: 1.038 MB / 411.2 MB, free: 9.441 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.2028, allocations: 0 / 411.2 MB, free: 9.441 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001071/0.2039, allocations: 0.5357 MB / 411.7 MB, free: 8.883 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008547/0.2047, allocations: 198.6 kB / 411.9 MB, free: 8.684 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002372/0.2071, allocations: 1.263 MB / 413.2 MB, free: 7.391 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005493/0.2077, allocations: 0.884 MB / 414.1 MB, free: 6.48 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003632/0.2081, allocations: 81.12 kB / 414.2 MB, free: 6.398 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001439/0.2082, allocations: 55.42 kB / 414.2 MB, free: 6.344 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2082, allocations: 0 / 414.2 MB, free: 6.344 MB / 350.1 MB Notification: Performance of Templates: time 0.02446/0.2327, allocations: 14.19 MB / 428.4 MB, free: 8.121 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)