Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestValves.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo) 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(ThermoPower.Test.WaterComponents.TestValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestValves") translateModel(ThermoPower.Test.WaterComponents.TestValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001458/0.001458, allocations: 109.8 kB / 17.74 MB, free: 5.359 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.0012/0.0012, allocations: 181.5 kB / 18.66 MB, free: 4.445 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.533/1.533, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3004/0.3004, allocations: 48.84 MB / 320.7 MB, free: 11.02 MB / 270.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.001501/0.001501, allocations: 71.89 kB / 451.2 MB, free: 8.562 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.1279, allocations: 59.16 MB / 0.4984 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestValves): time 0.3709/0.4988, allocations: 70.88 MB / 0.5676 GB, free: 7.785 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01657/0.5155, allocations: 11.89 MB / 0.5792 GB, free: 15.37 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001331/0.5168, allocations: 20.41 kB / 0.5793 GB, free: 15.36 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001544/0.5184, allocations: 411.5 kB / 0.5796 GB, free: 15.11 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001898/0.5204, allocations: 0.5186 MB / 0.5802 GB, free: 14.7 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01988/0.5403, allocations: 5.546 MB / 0.5856 GB, free: 10.74 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.003031/0.5433, allocations: 1.371 MB / 0.5869 GB, free: 9.945 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001242/0.5446, allocations: 0.5569 MB / 0.5875 GB, free: 9.586 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001466/0.5461, allocations: 0.5387 MB / 0.588 GB, free: 9.297 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00144/0.5476, allocations: 0.5733 MB / 0.5885 GB, free: 8.949 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002874/0.5479, allocations: 63.11 kB / 0.5886 GB, free: 8.945 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01798/0.5659, allocations: 6.474 MB / 0.5949 GB, free: 5.613 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000464/0.5664, allocations: 165.5 kB / 0.5951 GB, free: 5.477 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00133/0.5677, allocations: 437.6 kB / 0.5955 GB, free: 5.207 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0157/0.5835, allocations: 4.329 MB / 0.5997 GB, free: 2.355 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.197e-06/0.5835, allocations: 0 / 0.5997 GB, free: 2.355 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.015e-06/0.5835, allocations: 0 / 0.5997 GB, free: 2.355 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.951e-05/0.5836, allocations: 0 / 0.5997 GB, free: 2.355 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.007477/0.5911, allocations: 1.816 MB / 0.6015 GB, free: 500 kB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.017e-05/0.5912, allocations: 15.88 kB / 0.6015 GB, free: 484 kB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006753/0.5919, allocations: 124.9 kB / 0.6016 GB, free: 360 kB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001339/0.5932, allocations: 0.5736 MB / 0.6022 GB, free: 15.73 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.008e-05/0.5933, allocations: 37.69 kB / 0.6022 GB, free: 15.7 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001162/0.5934, allocations: 52.56 kB / 0.6023 GB, free: 15.65 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002326/0.5957, allocations: 0.8431 MB / 0.6031 GB, free: 14.77 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.358e-05/0.5958, allocations: 3.938 kB / 0.6031 GB, free: 14.76 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.215e-05/0.5959, allocations: 20 kB / 0.6031 GB, free: 14.74 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.654e-05/0.5959, allocations: 12 kB / 0.6031 GB, free: 14.73 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002197/0.5981, allocations: 0.8314 MB / 0.6039 GB, free: 13.9 MB / 462.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.005014/0.6031, allocations: 3.507 MB / 0.6074 GB, free: 10.04 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001256/0.6044, allocations: 410.7 kB / 0.6078 GB, free: 9.629 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004464/0.6049, allocations: 194.8 kB / 0.608 GB, free: 9.438 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06866/0.6736, allocations: 32.13 MB / 0.6393 GB, free: 5.492 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.497e-05/0.6737, allocations: 43.06 kB / 0.6394 GB, free: 5.441 MB / 494.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006642/0.6743, allocations: 83.48 kB / 0.6394 GB, free: 5.359 MB / 494.1 MB Notification: Performance of pre-optimization done (n=31): time 3.867e-06/0.6744, allocations: 0 / 0.6394 GB, free: 5.359 MB / 494.1 MB Notification: Performance of matching and sorting (n=31): time 0.009021/0.6834, allocations: 1.786 MB / 0.6412 GB, free: 3.543 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.461e-05/0.6835, allocations: 55.41 kB / 0.6412 GB, free: 3.477 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008882/0.6844, allocations: 0.6256 MB / 0.6419 GB, free: 2.84 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.69e-05/0.6844, allocations: 29.7 kB / 0.6419 GB, free: 2.805 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003074/0.6847, allocations: 344 kB / 0.6422 GB, free: 2.465 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000114/0.6849, allocations: 102.4 kB / 0.6423 GB, free: 2.363 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001581/0.685, allocations: 85.89 kB / 0.6424 GB, free: 2.27 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.6852, allocations: 325.9 kB / 0.6427 GB, free: 1.945 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004202/0.6856, allocations: 162 kB / 0.6429 GB, free: 1.785 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004606/0.6861, allocations: 215.2 kB / 0.6431 GB, free: 1.559 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008948/0.687, allocations: 380.9 kB / 0.6434 GB, free: 1.168 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.687, allocations: 0 / 0.6434 GB, free: 1.168 MB / 494.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001579/0.6886, allocations: 0.6297 MB / 0.644 GB, free: 0.5273 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.595e-05/0.6886, allocations: 11.91 kB / 0.6441 GB, free: 0.5156 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.17e-05/0.6886, allocations: 3.984 kB / 0.6441 GB, free: 0.5117 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007882/0.6965, allocations: 1.194 MB / 0.6452 GB, free: 15.31 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002413/0.6968, allocations: 39.97 kB / 0.6453 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002065/0.6989, allocations: 0.9666 MB / 0.6462 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006538/0.6996, allocations: 24.03 kB / 0.6462 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.591e-05/0.6996, allocations: 19.98 kB / 0.6462 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005827/0.7002, allocations: 268.7 kB / 0.6465 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004429/0.7007, allocations: 216.7 kB / 0.6467 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008472/0.7015, allocations: 385.3 kB / 0.6471 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.036e-06/0.7015, allocations: 0 / 0.6471 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.001438/0.703, allocations: 0.5283 MB / 0.6476 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.703, allocations: 4.281 kB / 0.6476 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.703, allocations: 8 kB / 0.6476 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003251/0.7034, allocations: 69.39 kB / 0.6477 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003972/0.7038, allocations: 88.67 kB / 0.6478 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001979/0.7058, allocations: 1.581 MB / 0.6493 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007053/0.7065, allocations: 28.05 kB / 0.6493 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.282e-05/0.7066, allocations: 19.98 kB / 0.6493 GB, free: 10.86 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 5 (V5.fluidState.phase,V4.fluidState.phase,V3.fluidState.phase,V2.fluidState.phase,V1.fluidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(6,17)} Notification: Performance of prepare postOptimizeDAE: time 0.0002584/0.7068, allocations: 192.2 kB / 0.6495 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002899/0.7071, allocations: 71.16 kB / 0.6496 GB, free: 10.59 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003163/0.7103, allocations: 2.03 MB / 0.6516 GB, free: 8.543 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.341e-05/0.7103, allocations: 27.91 kB / 0.6516 GB, free: 8.516 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.7103, allocations: 0 / 0.6516 GB, free: 8.516 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.7104, allocations: 0 / 0.6516 GB, free: 8.516 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001325/0.7117, allocations: 0.9426 MB / 0.6525 GB, free: 7.523 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.258e-06/0.7117, allocations: 0 / 0.6525 GB, free: 7.523 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001816/0.7119, allocations: 43.95 kB / 0.6526 GB, free: 7.48 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003412/0.7153, allocations: 1.393 MB / 0.6539 GB, free: 6.082 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.005e-05/0.7154, allocations: 11.98 kB / 0.6539 GB, free: 6.07 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002473/0.7179, allocations: 2.06 MB / 0.656 GB, free: 3.98 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.7179, allocations: 0 / 0.656 GB, free: 3.98 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002546/0.7204, allocations: 1.755 MB / 0.6577 GB, free: 2.211 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004076/0.7209, allocations: 187.6 kB / 0.6578 GB, free: 2.008 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001665/0.721, allocations: 9.812 kB / 0.6579 GB, free: 2 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004491/0.7215, allocations: 27.97 kB / 0.6579 GB, free: 1.973 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001089/0.7216, allocations: 32.39 kB / 0.6579 GB, free: 1.938 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.252e-05/0.7216, allocations: 19.98 kB / 0.6579 GB, free: 1.918 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0006961/0.7223, allocations: 447 kB / 0.6584 GB, free: 1.484 MB / 0.4981 GB Notification: Performance of sort global known variables: time 4.11e-07/0.7224, allocations: 0 / 0.6584 GB, free: 1.484 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003626/0.726, allocations: 1.093 MB / 0.6594 GB, free: 400 kB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($cse3.phase,$cse3.region,$cse8.phase,$cse8.region,$cse13.phase,$cse13.region,$cse18.phase,$cse18.region,$cse22.phase,$cse22.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(5,35)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005019/0.731, allocations: 1.004 MB / 0.6604 GB, free: 15.38 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002981/0.734, allocations: 0.9155 MB / 0.6613 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/0.7341, allocations: 0 / 0.6613 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001096/0.7352, allocations: 0.4886 MB / 0.6618 GB, free: 13.96 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002543/0.7377, allocations: 418.8 kB / 0.6622 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002882/0.7406, allocations: 1.628 MB / 0.6638 GB, free: 11.89 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006786/0.7413, allocations: 0.9908 MB / 0.6647 GB, free: 10.87 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001481/0.7415, allocations: 47.38 kB / 0.6648 GB, free: 10.82 MB / 0.5137 GB Notification: Performance of SimCode: time 9.62e-07/0.7415, allocations: 0 / 0.6648 GB, free: 10.82 MB / 0.5137 GB Notification: Performance of Templates: time 0.04541/0.7869, allocations: 27.89 MB / 0.692 GB, free: 14.89 MB / 0.545 GB make -j1 -f ThermoPower_ThermoPower.Test.WaterComponents.TestValves.makefile (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestValves.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestValves.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestValves.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestValves.sim & ./ThermoPower_ThermoPower.Test.WaterComponents.TestValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.WaterComponents.TestValves.pipe 2>&1)