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.001135/0.001135, allocations: 106.5 kB / 17.06 MB, free: 6.102 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.001132/0.001132, allocations: 194.9 kB / 18 MB, free: 5.172 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.551/1.551, allocations: 205.1 MB / 223.9 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2877/0.2877, allocations: 48.84 MB / 320.1 MB, free: 11 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.001509/0.001509, allocations: 76.31 kB / 450.5 MB, free: 8.539 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1085, allocations: 59.16 MB / 0.4978 GB, free: 13.25 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.ValveZeroFlow2): time 0.2973/0.4058, allocations: 46.47 MB / 0.5431 GB, free: 6.793 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01053/0.4164, allocations: 9.796 MB / 0.5527 GB, free: 1.848 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003907/0.4168, allocations: 9.562 kB / 0.5527 GB, free: 1.844 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007325/0.4176, allocations: 245 kB / 0.5529 GB, free: 1.73 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006129/0.4182, allocations: 294.9 kB / 0.5532 GB, free: 1.566 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0162/0.4344, allocations: 4.687 MB / 0.5578 GB, free: 228 kB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001393/0.4359, allocations: 0.7645 MB / 0.5585 GB, free: 15.85 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000479/0.4363, allocations: 244.1 kB / 0.5588 GB, free: 15.75 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000464/0.4368, allocations: 279.5 kB / 0.559 GB, free: 15.64 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004497/0.4373, allocations: 294.3 kB / 0.5593 GB, free: 15.51 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 5.715e-05/0.4373, allocations: 29 kB / 0.5593 GB, free: 15.51 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0141/0.4515, allocations: 6.215 MB / 0.5654 GB, free: 13.09 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000126/0.4516, allocations: 71.36 kB / 0.5655 GB, free: 13.04 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000487/0.4521, allocations: 231.3 kB / 0.5657 GB, free: 12.9 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01066/0.4628, allocations: 3.745 MB / 0.5694 GB, free: 10.51 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.4628, allocations: 3.938 kB / 0.5694 GB, free: 10.5 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.4628, allocations: 0 / 0.5694 GB, free: 10.5 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.918e-06/0.4629, allocations: 1.188 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.00388/0.4667, allocations: 1.167 MB / 0.5705 GB, free: 9.629 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.4668, allocations: 13.83 kB / 0.5705 GB, free: 9.625 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004045/0.4672, allocations: 88.36 kB / 0.5706 GB, free: 9.582 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005441/0.4678, allocations: 334.4 kB / 0.5709 GB, free: 9.262 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.789e-05/0.4678, allocations: 26 kB / 0.571 GB, free: 9.25 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.655e-05/0.4679, allocations: 34.59 kB / 0.571 GB, free: 9.238 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008567/0.4687, allocations: 428.4 kB / 0.5714 GB, free: 8.941 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.426e-05/0.4688, allocations: 1.156 kB / 0.5714 GB, free: 8.941 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.895e-05/0.4688, allocations: 15.83 kB / 0.5714 GB, free: 8.93 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/0.4688, allocations: 11.75 kB / 0.5714 GB, free: 8.926 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006946/0.4695, allocations: 287.9 kB / 0.5717 GB, free: 8.793 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.00222/0.4718, allocations: 2.211 MB / 0.5739 GB, free: 6.598 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007103/0.4725, allocations: 260.2 kB / 0.5741 GB, free: 6.461 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000179/0.4727, allocations: 96.95 kB / 0.5742 GB, free: 6.41 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06576/0.5385, allocations: 32.13 MB / 0.6056 GB, free: 7.562 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.609e-05/0.5385, allocations: 34.56 kB / 0.6056 GB, free: 7.52 MB / 462.1 MB Notification: Performance of pre-optimization done (n=25): time 4.088e-06/0.5385, allocations: 0 / 0.6056 GB, free: 7.52 MB / 462.1 MB Notification: Performance of matching and sorting (n=33): time 0.005017/0.5436, allocations: 1.456 MB / 0.607 GB, free: 6.004 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.728e-05/0.5436, allocations: 59.41 kB / 0.6071 GB, free: 5.934 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003815/0.544, allocations: 325.6 kB / 0.6074 GB, free: 5.609 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 3.905e-05/0.5441, allocations: 29.7 kB / 0.6074 GB, free: 5.574 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001309/0.5442, allocations: 208.6 kB / 0.6076 GB, free: 5.367 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001087/0.5443, allocations: 126.9 kB / 0.6077 GB, free: 5.242 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001157/0.5444, allocations: 65.66 kB / 0.6078 GB, free: 5.172 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.5446, allocations: 350.8 kB / 0.6081 GB, free: 4.82 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002452/0.5448, allocations: 124.8 kB / 0.6083 GB, free: 4.695 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002745/0.5451, allocations: 173.9 kB / 0.6084 GB, free: 4.508 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005314/0.5457, allocations: 300.6 kB / 0.6087 GB, free: 4.195 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/0.5457, allocations: 0 / 0.6087 GB, free: 4.195 MB / 462.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000989/0.5467, allocations: 450.6 kB / 0.6091 GB, free: 3.742 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.5467, allocations: 4 kB / 0.6091 GB, free: 3.738 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.5467, allocations: 0 / 0.6091 GB, free: 3.738 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005035/0.5472, allocations: 89.62 kB / 0.6092 GB, free: 3.645 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003555/0.5476, allocations: 83.98 kB / 0.6093 GB, free: 3.562 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009333/0.5485, allocations: 1.113 MB / 0.6104 GB, free: 2.398 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002911/0.5488, allocations: 8.031 kB / 0.6104 GB, free: 2.391 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.292e-05/0.5489, allocations: 19.94 kB / 0.6104 GB, free: 2.371 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000294/0.5492, allocations: 212.1 kB / 0.6106 GB, free: 2.16 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002297/0.5494, allocations: 165.9 kB / 0.6108 GB, free: 1.98 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004325/0.5499, allocations: 289 kB / 0.6111 GB, free: 1.68 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.784e-06/0.5499, allocations: 0 / 0.6111 GB, free: 1.68 MB / 462.1 MB Notification: Performance of matching and sorting (n=42) (initialization_lambda0): time 0.0008969/0.5508, allocations: 430.3 kB / 0.6115 GB, free: 1.246 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.132e-05/0.5508, allocations: 7.906 kB / 0.6115 GB, free: 1.238 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.5508, allocations: 4 kB / 0.6115 GB, free: 1.234 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004782/0.5513, allocations: 93.72 kB / 0.6116 GB, free: 1.137 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003205/0.5516, allocations: 75.91 kB / 0.6116 GB, free: 1.062 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008873/0.5525, allocations: 1.113 MB / 0.6127 GB, free: 15.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000263/0.5528, allocations: 19.95 kB / 0.6127 GB, free: 15.88 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.335e-05/0.5528, allocations: 10.44 kB / 0.6128 GB, free: 15.87 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.0001437/0.553, allocations: 200.2 kB / 0.6129 GB, free: 15.67 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.597e-05/0.5531, allocations: 47.75 kB / 0.613 GB, free: 15.62 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001645/0.5547, allocations: 1.17 MB / 0.6141 GB, free: 14.43 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.549e-05/0.5548, allocations: 11.98 kB / 0.6141 GB, free: 14.42 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.5548, allocations: 0 / 0.6141 GB, free: 14.42 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.445e-06/0.5548, allocations: 7.984 kB / 0.6142 GB, free: 14.41 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007512/0.5555, allocations: 0.6763 MB / 0.6148 GB, free: 13.68 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.209e-06/0.5556, allocations: 3.938 kB / 0.6148 GB, free: 13.68 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003234/0.5559, allocations: 63.91 kB / 0.6149 GB, free: 13.62 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006594/0.5565, allocations: 145.5 kB / 0.615 GB, free: 13.47 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.903e-05/0.5566, allocations: 7.984 kB / 0.615 GB, free: 13.46 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008591/0.5575, allocations: 1.195 MB / 0.6162 GB, free: 12.22 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.5575, allocations: 2.375 kB / 0.6162 GB, free: 12.22 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001637/0.5591, allocations: 1.213 MB / 0.6174 GB, free: 10.99 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001882/0.5593, allocations: 156.7 kB / 0.6175 GB, free: 10.82 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.185e-05/0.5594, allocations: 8 kB / 0.6175 GB, free: 10.81 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002289/0.5596, allocations: 4 kB / 0.6175 GB, free: 10.8 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.236e-05/0.5597, allocations: 27.95 kB / 0.6176 GB, free: 10.78 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.137e-05/0.5597, allocations: 8 kB / 0.6176 GB, free: 10.77 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0002353/0.56, allocations: 227.2 kB / 0.6178 GB, free: 10.55 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.56, allocations: 0 / 0.6178 GB, free: 10.55 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003395/0.5634, allocations: 0.9399 MB / 0.6187 GB, free: 9.605 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.004986/0.5684, allocations: 0.9918 MB / 0.6197 GB, free: 8.617 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001574/0.57, allocations: 0.6783 MB / 0.6203 GB, free: 7.938 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.57, allocations: 0 / 0.6203 GB, free: 7.938 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006747/0.5707, allocations: 391 kB / 0.6207 GB, free: 7.559 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001154/0.5718, allocations: 209 kB / 0.6209 GB, free: 7.355 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002645/0.5745, allocations: 1.28 MB / 0.6222 GB, free: 6.051 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007531/0.5753, allocations: 0.848 MB / 0.623 GB, free: 5.18 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0006023/0.5759, allocations: 194.9 kB / 0.6232 GB, free: 4.988 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001538/0.5761, allocations: 39.42 kB / 0.6232 GB, free: 4.949 MB / 478.1 MB Notification: Performance of SimCode: time 2.595e-06/0.5761, allocations: 0 / 0.6232 GB, free: 4.949 MB / 478.1 MB Notification: Performance of Templates: time 0.05359/0.6297, allocations: 35.98 MB / 0.6583 GB, free: 0.9102 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)