Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.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.ValveZeroFlow2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2") translateModel(ThermoPower.Test.WaterComponents.ValveZeroFlow2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001123/0.001123, allocations: 108.8 kB / 17.06 MB, free: 6.023 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.001063/0.001063, allocations: 191 kB / 18 MB, free: 5.109 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.466/1.466, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2888/0.2888, allocations: 48.85 MB / 320.1 MB, free: 11.01 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.001424/0.001424, allocations: 67.91 kB / 450.5 MB, free: 8.562 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.1281, allocations: 59.17 MB / 0.4977 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.ValveZeroFlow2): time 0.3077/0.4359, allocations: 46.47 MB / 0.5431 GB, free: 6.684 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01148/0.4474, allocations: 9.795 MB / 0.5527 GB, free: 1.781 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006185/0.4481, allocations: 5.781 kB / 0.5527 GB, free: 1.781 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001135/0.4494, allocations: 243.7 kB / 0.5529 GB, free: 1.668 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008221/0.4502, allocations: 305.9 kB / 0.5532 GB, free: 1.5 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01512/0.4653, allocations: 4.694 MB / 0.5578 GB, free: 204 kB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001372/0.4667, allocations: 0.766 MB / 0.5586 GB, free: 15.83 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005193/0.4673, allocations: 244.4 kB / 0.5588 GB, free: 15.73 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004464/0.4677, allocations: 282 kB / 0.5591 GB, free: 15.62 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003994/0.4681, allocations: 302.9 kB / 0.5593 GB, free: 15.48 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 6.089e-05/0.4682, allocations: 29.41 kB / 0.5594 GB, free: 15.48 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01587/0.4841, allocations: 6.21 MB / 0.5654 GB, free: 13.08 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001431/0.4843, allocations: 76.27 kB / 0.5655 GB, free: 13.02 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004971/0.4848, allocations: 226.8 kB / 0.5657 GB, free: 12.88 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0108/0.4956, allocations: 3.738 MB / 0.5694 GB, free: 10.5 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.4956, allocations: 0 / 0.5694 GB, free: 10.5 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.4957, allocations: 4 kB / 0.5694 GB, free: 10.5 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.167e-06/0.4957, allocations: 1.469 kB / 0.5694 GB, free: 10.5 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.00443/0.5001, allocations: 1.124 MB / 0.5705 GB, free: 9.668 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.548e-05/0.5002, allocations: 13.52 kB / 0.5705 GB, free: 9.664 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004152/0.5006, allocations: 92.33 kB / 0.5706 GB, free: 9.617 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004985/0.5011, allocations: 334.4 kB / 0.5709 GB, free: 9.297 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.052e-05/0.5011, allocations: 29.44 kB / 0.5709 GB, free: 9.281 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.162e-05/0.5012, allocations: 34.72 kB / 0.571 GB, free: 9.27 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008328/0.5021, allocations: 424.5 kB / 0.5714 GB, free: 8.977 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.539e-05/0.5021, allocations: 9.406 kB / 0.5714 GB, free: 8.969 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.877e-05/0.5021, allocations: 15 kB / 0.5714 GB, free: 8.957 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.296e-05/0.5022, allocations: 7.562 kB / 0.5714 GB, free: 8.957 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000708/0.5029, allocations: 284.8 kB / 0.5717 GB, free: 8.828 MB / 430.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.002479/0.5054, allocations: 2.209 MB / 0.5738 GB, free: 6.633 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006866/0.5061, allocations: 255.7 kB / 0.5741 GB, free: 6.496 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001977/0.5063, allocations: 102.1 kB / 0.5742 GB, free: 6.441 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06714/0.5734, allocations: 32.12 MB / 0.6055 GB, free: 7.621 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.918e-05/0.5735, allocations: 42.5 kB / 0.6056 GB, free: 7.574 MB / 462.1 MB Notification: Performance of pre-optimization done (n=25): time 2.455e-06/0.5735, allocations: 4 kB / 0.6056 GB, free: 7.57 MB / 462.1 MB Notification: Performance of matching and sorting (n=33): time 0.004873/0.5784, allocations: 1.444 MB / 0.607 GB, free: 6.07 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.616e-05/0.5785, allocations: 55.41 kB / 0.607 GB, free: 6.004 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003432/0.5788, allocations: 325.6 kB / 0.6073 GB, free: 5.68 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 3.175e-05/0.5789, allocations: 37.64 kB / 0.6074 GB, free: 5.637 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001493/0.579, allocations: 204.4 kB / 0.6076 GB, free: 5.434 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.413e-05/0.5791, allocations: 118.3 kB / 0.6077 GB, free: 5.316 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001108/0.5792, allocations: 69.69 kB / 0.6078 GB, free: 5.242 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.5794, allocations: 346.8 kB / 0.6081 GB, free: 4.895 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002472/0.5796, allocations: 120.8 kB / 0.6082 GB, free: 4.773 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002781/0.5799, allocations: 176.6 kB / 0.6084 GB, free: 4.582 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004931/0.5804, allocations: 300.6 kB / 0.6087 GB, free: 4.27 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.5804, allocations: 4 kB / 0.6087 GB, free: 4.266 MB / 462.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0009258/0.5814, allocations: 438.4 kB / 0.6091 GB, free: 3.824 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.5814, allocations: 11.91 kB / 0.6091 GB, free: 3.812 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.5814, allocations: 0 / 0.6091 GB, free: 3.812 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004912/0.5819, allocations: 97.72 kB / 0.6092 GB, free: 3.711 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003424/0.5823, allocations: 75.91 kB / 0.6093 GB, free: 3.637 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008686/0.5831, allocations: 1.116 MB / 0.6103 GB, free: 2.469 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002641/0.5834, allocations: 11.98 kB / 0.6104 GB, free: 2.457 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.208e-05/0.5835, allocations: 12 kB / 0.6104 GB, free: 2.445 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002952/0.5838, allocations: 220.1 kB / 0.6106 GB, free: 2.227 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002284/0.584, allocations: 157.3 kB / 0.6107 GB, free: 2.055 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004267/0.5844, allocations: 288.9 kB / 0.611 GB, free: 1.754 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.004e-06/0.5844, allocations: 4 kB / 0.611 GB, free: 1.75 MB / 462.1 MB Notification: Performance of matching and sorting (n=42) (initialization_lambda0): time 0.0008376/0.5853, allocations: 422.1 kB / 0.6114 GB, free: 1.324 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.304e-05/0.5853, allocations: 12.16 kB / 0.6114 GB, free: 1.312 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.906e-06/0.5853, allocations: 0 / 0.6114 GB, free: 1.312 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004327/0.5858, allocations: 93.62 kB / 0.6115 GB, free: 1.215 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003062/0.5861, allocations: 76.78 kB / 0.6116 GB, free: 1.141 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008165/0.5869, allocations: 1.116 MB / 0.6127 GB, free: 15.97 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002669/0.5872, allocations: 20.11 kB / 0.6127 GB, free: 15.95 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.483e-05/0.5872, allocations: 15.94 kB / 0.6127 GB, free: 15.94 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 3 (Valve.fluidState.phase,Tank2.liquidState.phase,Tank1.liquidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 38 * 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,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001469/0.5874, allocations: 196.2 kB / 0.6129 GB, free: 15.74 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.02e-05/0.5875, allocations: 39.47 kB / 0.6129 GB, free: 15.7 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001636/0.5891, allocations: 1.173 MB / 0.6141 GB, free: 14.51 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.639e-05/0.5891, allocations: 11.98 kB / 0.6141 GB, free: 14.5 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.5891, allocations: 0 / 0.6141 GB, free: 14.5 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.5892, allocations: 3.984 kB / 0.6141 GB, free: 14.5 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007566/0.5899, allocations: 0.6724 MB / 0.6148 GB, free: 13.77 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.5899, allocations: 0 / 0.6148 GB, free: 13.77 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003089/0.5903, allocations: 67.89 kB / 0.6148 GB, free: 13.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005852/0.5908, allocations: 141.5 kB / 0.615 GB, free: 13.56 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.176e-05/0.5909, allocations: 12 kB / 0.615 GB, free: 13.55 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008945/0.5918, allocations: 1.191 MB / 0.6161 GB, free: 12.3 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.5918, allocations: 0 / 0.6161 GB, free: 12.3 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001666/0.5935, allocations: 1.216 MB / 0.6173 GB, free: 11.07 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001921/0.5937, allocations: 160.3 kB / 0.6175 GB, free: 10.89 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.399e-05/0.5938, allocations: 4 kB / 0.6175 GB, free: 10.89 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002096/0.594, allocations: 8 kB / 0.6175 GB, free: 10.88 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.024e-05/0.5941, allocations: 27.78 kB / 0.6175 GB, free: 10.86 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.53e-05/0.5941, allocations: 19.98 kB / 0.6175 GB, free: 10.84 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0002104/0.5943, allocations: 223.2 kB / 0.6177 GB, free: 10.62 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5943, allocations: 0 / 0.6177 GB, free: 10.62 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003283/0.5976, allocations: 0.9293 MB / 0.6186 GB, free: 9.691 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Tank1.y,Tank1.h,Tank2.y,Tank2.h) * Number of discrete variables: 6 ($cse1.phase,$cse1.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005209/0.6028, allocations: 0.982 MB / 0.6196 GB, free: 8.715 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001612/0.6045, allocations: 0.6825 MB / 0.6203 GB, free: 8.031 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.6045, allocations: 0 / 0.6203 GB, free: 8.031 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006279/0.6051, allocations: 382.7 kB / 0.6206 GB, free: 7.66 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001171/0.6063, allocations: 217.3 kB / 0.6208 GB, free: 7.453 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002053/0.6084, allocations: 1.25 MB / 0.6221 GB, free: 6.18 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004272/0.6088, allocations: 0.8519 MB / 0.6229 GB, free: 5.305 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0004246/0.6092, allocations: 198.9 kB / 0.6231 GB, free: 5.109 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001083/0.6093, allocations: 39.44 kB / 0.6231 GB, free: 5.07 MB / 478.1 MB Notification: Performance of SimCode: time 2.6e-07/0.6094, allocations: 0 / 0.6231 GB, free: 5.07 MB / 478.1 MB Notification: Performance of Templates: time 0.0481/0.6575, allocations: 35.98 MB / 0.6583 GB, free: 1.035 MB / 0.4981 GB make -j1 -f ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.makefile (rm -f ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.sim & ./ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe 2>&1)