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.001273/0.001273, allocations: 108.5 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.001358/0.001358, allocations: 192 kB / 18 MB, free: 5.105 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.323/1.323, 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.2653/0.2653, allocations: 48.84 MB / 320.1 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.001502/0.001502, allocations: 67.89 kB / 450.5 MB, free: 8.57 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1126, 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.2808/0.3934, allocations: 46.47 MB / 0.5431 GB, free: 6.672 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01207/0.4056, allocations: 9.799 MB / 0.5527 GB, free: 1.785 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005426/0.4063, allocations: 9.531 kB / 0.5527 GB, free: 1.781 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008424/0.4071, allocations: 241.8 kB / 0.5529 GB, free: 1.672 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007494/0.4079, allocations: 295.3 kB / 0.5532 GB, free: 1.508 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01562/0.4235, allocations: 4.692 MB / 0.5578 GB, free: 236 kB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001485/0.425, allocations: 0.7593 MB / 0.5585 GB, free: 15.86 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004662/0.4255, allocations: 246.7 kB / 0.5588 GB, free: 15.77 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004231/0.4259, allocations: 287.5 kB / 0.559 GB, free: 15.65 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003363/0.4263, allocations: 296.1 kB / 0.5593 GB, free: 15.52 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 5.131e-05/0.4263, allocations: 29.78 kB / 0.5594 GB, free: 15.52 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01406/0.4404, allocations: 6.207 MB / 0.5654 GB, free: 13.1 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001387/0.4406, allocations: 78.78 kB / 0.5655 GB, free: 13.04 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004733/0.441, allocations: 223.1 kB / 0.5657 GB, free: 12.91 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01168/0.4527, allocations: 3.739 MB / 0.5694 GB, free: 10.52 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.4528, allocations: 0 / 0.5694 GB, free: 10.52 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.4528, allocations: 0 / 0.5694 GB, free: 10.52 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.325e-05/0.4528, allocations: 1.406 kB / 0.5694 GB, free: 10.52 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.005112/0.4579, allocations: 1.132 MB / 0.5705 GB, free: 9.688 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.423e-05/0.458, allocations: 13.55 kB / 0.5705 GB, free: 9.684 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006354/0.4587, allocations: 94.89 kB / 0.5706 GB, free: 9.637 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006651/0.4594, allocations: 330.8 kB / 0.5709 GB, free: 9.32 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.031e-05/0.4594, allocations: 30.55 kB / 0.5709 GB, free: 9.305 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.832e-05/0.4595, allocations: 34 kB / 0.5709 GB, free: 9.293 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009277/0.4604, allocations: 423.8 kB / 0.5713 GB, free: 9 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/0.4605, allocations: 5.094 kB / 0.5714 GB, free: 8.996 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.366e-05/0.4605, allocations: 15.41 kB / 0.5714 GB, free: 8.984 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.063e-05/0.4605, allocations: 7.844 kB / 0.5714 GB, free: 8.984 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007204/0.4612, allocations: 292.1 kB / 0.5717 GB, free: 8.848 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.002431/0.4637, allocations: 2.205 MB / 0.5738 GB, free: 6.656 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007425/0.4644, allocations: 252.5 kB / 0.574 GB, free: 6.523 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002134/0.4647, allocations: 106.2 kB / 0.5741 GB, free: 6.465 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06638/0.5311, allocations: 32.12 MB / 0.6055 GB, free: 7.641 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.313e-05/0.5312, allocations: 34.56 kB / 0.6056 GB, free: 7.598 MB / 462.1 MB Notification: Performance of pre-optimization done (n=25): time 2.645e-06/0.5312, allocations: 0 / 0.6056 GB, free: 7.598 MB / 462.1 MB Notification: Performance of matching and sorting (n=33): time 0.00558/0.5367, allocations: 1.442 MB / 0.607 GB, free: 6.098 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.851e-05/0.5368, allocations: 55.41 kB / 0.607 GB, free: 6.031 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003581/0.5372, allocations: 329.6 kB / 0.6073 GB, free: 5.703 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 3.07e-05/0.5372, allocations: 33.64 kB / 0.6074 GB, free: 5.664 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001307/0.5374, allocations: 208.4 kB / 0.6076 GB, free: 5.457 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.294e-05/0.5375, allocations: 122.3 kB / 0.6077 GB, free: 5.336 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001067/0.5376, allocations: 61.7 kB / 0.6077 GB, free: 5.27 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.5377, allocations: 350.8 kB / 0.6081 GB, free: 4.918 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002484/0.5379, allocations: 120.8 kB / 0.6082 GB, free: 4.797 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002643/0.5382, allocations: 176.6 kB / 0.6084 GB, free: 4.605 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004937/0.5387, allocations: 304.6 kB / 0.6086 GB, free: 4.289 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.5387, allocations: 0 / 0.6086 GB, free: 4.289 MB / 462.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0009311/0.5397, allocations: 439.4 kB / 0.6091 GB, free: 3.848 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.92e-05/0.5397, allocations: 11.94 kB / 0.6091 GB, free: 3.836 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.323e-06/0.5397, allocations: 0 / 0.6091 GB, free: 3.836 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005439/0.5403, allocations: 93.56 kB / 0.6092 GB, free: 3.738 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003611/0.5406, allocations: 83.89 kB / 0.6092 GB, free: 3.656 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008859/0.5415, allocations: 1.113 MB / 0.6103 GB, free: 2.492 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003158/0.5419, allocations: 12.09 kB / 0.6103 GB, free: 2.48 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.827e-05/0.5419, allocations: 19.98 kB / 0.6104 GB, free: 2.461 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003041/0.5422, allocations: 217 kB / 0.6106 GB, free: 2.246 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002271/0.5425, allocations: 153.1 kB / 0.6107 GB, free: 2.078 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004412/0.5429, allocations: 292.9 kB / 0.611 GB, free: 1.773 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.633e-06/0.5429, allocations: 0 / 0.611 GB, free: 1.773 MB / 462.1 MB Notification: Performance of matching and sorting (n=42) (initialization_lambda0): time 0.0008982/0.5438, allocations: 430.1 kB / 0.6114 GB, free: 1.34 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.168e-05/0.5439, allocations: 4 kB / 0.6114 GB, free: 1.336 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.5439, allocations: 7.938 kB / 0.6114 GB, free: 1.332 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004928/0.5444, allocations: 93.78 kB / 0.6115 GB, free: 1.234 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003107/0.5447, allocations: 75.91 kB / 0.6116 GB, free: 1.16 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008627/0.5456, allocations: 1.113 MB / 0.6127 GB, free: 15.99 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002836/0.5459, allocations: 15.94 kB / 0.6127 GB, free: 15.98 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.788e-05/0.5459, allocations: 19 kB / 0.6127 GB, free: 15.96 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.0001862/0.5461, allocations: 196.2 kB / 0.6129 GB, free: 15.76 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.425e-05/0.5462, allocations: 43.47 kB / 0.6129 GB, free: 15.72 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001696/0.5479, allocations: 1.17 MB / 0.6141 GB, free: 14.53 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.592e-05/0.5479, allocations: 11.98 kB / 0.6141 GB, free: 14.52 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.805e-06/0.5479, allocations: 0 / 0.6141 GB, free: 14.52 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.017e-06/0.548, allocations: 7.984 kB / 0.6141 GB, free: 14.51 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008389/0.5488, allocations: 0.6723 MB / 0.6147 GB, free: 13.79 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/0.5488, allocations: 4 kB / 0.6147 GB, free: 13.79 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003181/0.5492, allocations: 67.91 kB / 0.6148 GB, free: 13.72 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006406/0.5498, allocations: 141.5 kB / 0.6149 GB, free: 13.57 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.533e-05/0.5498, allocations: 11.98 kB / 0.615 GB, free: 13.56 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008815/0.5507, allocations: 1.187 MB / 0.6161 GB, free: 12.32 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.5508, allocations: 0 / 0.6161 GB, free: 12.32 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001685/0.5524, allocations: 1.216 MB / 0.6173 GB, free: 11.09 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002174/0.5527, allocations: 160.4 kB / 0.6175 GB, free: 10.91 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.515e-05/0.5528, allocations: 8 kB / 0.6175 GB, free: 10.91 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002375/0.553, allocations: 4 kB / 0.6175 GB, free: 10.9 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.16e-05/0.5531, allocations: 29.7 kB / 0.6175 GB, free: 10.88 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.281e-05/0.5531, allocations: 12 kB / 0.6175 GB, free: 10.86 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0002579/0.5534, allocations: 231.2 kB / 0.6177 GB, free: 10.64 MB / 478.1 MB Notification: Performance of sort global known variables: time 3e-07/0.5534, allocations: 0 / 0.6177 GB, free: 10.64 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004456/0.5579, allocations: 0.9215 MB / 0.6186 GB, free: 9.715 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.006198/0.5641, allocations: 0.9823 MB / 0.6196 GB, free: 8.738 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001834/0.566, allocations: 0.6783 MB / 0.6202 GB, free: 8.059 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.566, allocations: 0 / 0.6202 GB, free: 8.059 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000711/0.5667, allocations: 391 kB / 0.6206 GB, free: 7.68 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001349/0.5681, allocations: 219.7 kB / 0.6208 GB, free: 7.469 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002274/0.5704, allocations: 1.249 MB / 0.6221 GB, free: 6.191 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004434/0.5708, allocations: 0.848 MB / 0.6229 GB, free: 5.32 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0004325/0.5713, allocations: 198.9 kB / 0.6231 GB, free: 5.125 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001187/0.5714, allocations: 43.42 kB / 0.6231 GB, free: 5.082 MB / 478.1 MB Notification: Performance of SimCode: time 1.052e-06/0.5714, allocations: 0 / 0.6231 GB, free: 5.082 MB / 478.1 MB Notification: Performance of Templates: time 0.05863/0.63, allocations: 35.97 MB / 0.6582 GB, free: 1.051 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)