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.001074/0.001074, allocations: 87.89 kB / 16.31 MB, free: 6.457 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.001165/0.001165, allocations: 183.9 kB / 17.21 MB, free: 6.32 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.661/1.661, allocations: 205.4 MB / 223.4 MB, free: 5.293 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.4063/0.4063, allocations: 48.78 MB / 320.4 MB, free: 3.844 MB / 254.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.0004976/0.0004977, allocations: 20 kB / 391.2 MB, free: 14.29 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1133, allocations: 60.26 MB / 451.4 MB, free: 1.895 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.ValveZeroFlow2): time 0.2094/0.3228, allocations: 43.23 MB / 494.7 MB, free: 22.23 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008975/0.3318, allocations: 9.186 MB / 0.492 GB, free: 15.75 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004539/0.3323, allocations: 9.188 kB / 0.492 GB, free: 15.74 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006272/0.3329, allocations: 188.6 kB / 0.4922 GB, free: 15.64 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006611/0.3336, allocations: 312.2 kB / 0.4925 GB, free: 15.45 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01034/0.344, allocations: 3.577 MB / 0.496 GB, free: 13.57 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001018/0.345, allocations: 0.9224 MB / 0.4969 GB, free: 13.04 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003027/0.3453, allocations: 187.3 kB / 0.4971 GB, free: 12.91 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002909/0.3456, allocations: 253 kB / 0.4973 GB, free: 12.8 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002806/0.3459, allocations: 281.6 kB / 0.4976 GB, free: 12.64 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.664e-05/0.346, allocations: 17.88 kB / 0.4976 GB, free: 12.64 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0115/0.3575, allocations: 5.896 MB / 0.5034 GB, free: 9.785 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001061/0.3576, allocations: 62.72 kB / 0.5034 GB, free: 9.734 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002337/0.3579, allocations: 107.5 kB / 0.5035 GB, free: 9.672 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005155/0.363, allocations: 2.481 MB / 0.506 GB, free: 8.23 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.3631, allocations: 1.156 kB / 0.506 GB, free: 8.23 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3631, allocations: 0 / 0.506 GB, free: 8.23 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.826e-06/0.3631, allocations: 0 / 0.506 GB, free: 8.23 MB / 382.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.003344/0.3664, allocations: 1.073 MB / 0.507 GB, free: 7.438 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.554e-05/0.3665, allocations: 9.938 kB / 0.507 GB, free: 7.438 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003725/0.3669, allocations: 87.98 kB / 0.5071 GB, free: 7.395 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003304/0.3672, allocations: 317.5 kB / 0.5074 GB, free: 7.086 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.039e-05/0.3672, allocations: 26.56 kB / 0.5074 GB, free: 7.074 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.06e-05/0.3673, allocations: 29.41 kB / 0.5075 GB, free: 7.066 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007133/0.368, allocations: 422.1 kB / 0.5079 GB, free: 6.781 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.368, allocations: 0 / 0.5079 GB, free: 6.781 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.712e-05/0.3681, allocations: 19.08 kB / 0.5079 GB, free: 6.766 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.3681, allocations: 9 kB / 0.5079 GB, free: 6.766 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005728/0.3686, allocations: 292.3 kB / 0.5082 GB, free: 6.625 MB / 382.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.001503/0.3702, allocations: 2.209 MB / 0.5103 GB, free: 4.43 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005782/0.3707, allocations: 264.6 kB / 0.5106 GB, free: 4.285 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001595/0.3709, allocations: 109 kB / 0.5107 GB, free: 4.227 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05696/0.4279, allocations: 32.28 MB / 0.5422 GB, free: 1.414 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.43e-05/0.428, allocations: 38.55 kB / 0.5422 GB, free: 1.367 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.014e-06/0.428, allocations: 0 / 0.5422 GB, free: 1.367 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.004728/0.4327, allocations: 1.487 MB / 0.5437 GB, free: 15.82 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.68e-05/0.4328, allocations: 59.34 kB / 0.5438 GB, free: 15.75 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003385/0.4331, allocations: 317.7 kB / 0.5441 GB, free: 15.43 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.227e-05/0.4332, allocations: 29.7 kB / 0.5441 GB, free: 15.4 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001394/0.4333, allocations: 208.4 kB / 0.5443 GB, free: 15.19 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.297e-05/0.4334, allocations: 118.2 kB / 0.5444 GB, free: 15.07 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.581e-05/0.4334, allocations: 8 kB / 0.5444 GB, free: 15.07 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.4336, allocations: 346.8 kB / 0.5447 GB, free: 14.72 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002195/0.4338, allocations: 112 kB / 0.5448 GB, free: 14.61 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002399/0.4341, allocations: 176.8 kB / 0.545 GB, free: 14.42 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002305/0.4343, allocations: 127.8 kB / 0.5451 GB, free: 14.29 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.4343, allocations: 0 / 0.5451 GB, free: 14.29 MB / 430.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008836/0.4352, allocations: 446.2 kB / 0.5456 GB, free: 13.84 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001131/0.4353, allocations: 137.2 kB / 0.5457 GB, free: 13.69 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.23e-05/0.4353, allocations: 4 kB / 0.5457 GB, free: 13.68 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004822/0.4358, allocations: 89.64 kB / 0.5458 GB, free: 13.59 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003508/0.4362, allocations: 80.45 kB / 0.5459 GB, free: 13.51 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000841/0.437, allocations: 1.113 MB / 0.5469 GB, free: 12.35 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003975/0.4375, allocations: 36.09 kB / 0.547 GB, free: 12.31 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.484e-05/0.4375, allocations: 12 kB / 0.547 GB, free: 12.3 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.488e-06/0.4375, allocations: 4 kB / 0.547 GB, free: 12.3 MB / 430.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007383/0.4383, allocations: 366.5 kB / 0.5473 GB, free: 11.93 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.4383, allocations: 4 kB / 0.5473 GB, free: 11.93 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004118/0.4387, allocations: 81.64 kB / 0.5474 GB, free: 11.84 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002945/0.439, allocations: 87.94 kB / 0.5475 GB, free: 11.76 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000731/0.4397, allocations: 1.113 MB / 0.5486 GB, free: 10.59 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003018/0.4401, allocations: 32 kB / 0.5486 GB, free: 10.56 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.554e-05/0.4401, allocations: 16 kB / 0.5486 GB, free: 10.55 MB / 430.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002157/0.4403, allocations: 242.1 kB / 0.5489 GB, free: 10.3 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.314e-05/0.4404, allocations: 39.53 kB / 0.5489 GB, free: 10.26 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00166/0.4421, allocations: 1.176 MB / 0.5501 GB, free: 9.082 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-05/0.4421, allocations: 11.98 kB / 0.5501 GB, free: 9.07 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-05/0.4421, allocations: 15.88 kB / 0.5501 GB, free: 9.055 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.4421, allocations: 0 / 0.5501 GB, free: 9.055 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008601/0.443, allocations: 0.6762 MB / 0.5507 GB, free: 8.332 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-06/0.443, allocations: 0 / 0.5507 GB, free: 8.332 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000301/0.4433, allocations: 63.91 kB / 0.5508 GB, free: 8.27 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005503/0.4439, allocations: 137.6 kB / 0.5509 GB, free: 8.129 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.227e-05/0.4439, allocations: 11.98 kB / 0.5509 GB, free: 8.117 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000857/0.4448, allocations: 1.194 MB / 0.5521 GB, free: 6.871 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.4448, allocations: 0 / 0.5521 GB, free: 6.871 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001596/0.4464, allocations: 1.22 MB / 0.5533 GB, free: 5.629 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002252/0.4466, allocations: 152.3 kB / 0.5534 GB, free: 5.461 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.238e-05/0.4467, allocations: 12 kB / 0.5535 GB, free: 5.449 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002582/0.447, allocations: 27.92 kB / 0.5535 GB, free: 5.422 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.044e-05/0.4471, allocations: 27.95 kB / 0.5535 GB, free: 5.395 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.302e-05/0.4471, allocations: 11.95 kB / 0.5535 GB, free: 5.383 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002213/0.4473, allocations: 223.2 kB / 0.5537 GB, free: 5.164 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4473, allocations: 0 / 0.5537 GB, free: 5.164 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003509/0.4509, allocations: 0.9293 MB / 0.5546 GB, free: 4.234 MB / 430.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.005663/0.4565, allocations: 0.9759 MB / 0.5556 GB, free: 3.254 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001545/0.4581, allocations: 0.672 MB / 0.5563 GB, free: 2.582 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.4581, allocations: 320 / 0.5563 GB, free: 2.582 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006514/0.4588, allocations: 397.1 kB / 0.5566 GB, free: 2.195 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001259/0.4601, allocations: 211.5 kB / 0.5568 GB, free: 1.996 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002026/0.4621, allocations: 1.541 MB / 0.5583 GB, free: 448 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003952/0.4625, allocations: 0.848 MB / 0.5592 GB, free: 15.56 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004455/0.463, allocations: 204.2 kB / 0.5594 GB, free: 15.36 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.382e-05/0.4631, allocations: 35.44 kB / 0.5594 GB, free: 15.33 MB / 446.1 MB Notification: Performance of SimCode: time 3.11e-07/0.4631, allocations: 0 / 0.5594 GB, free: 15.33 MB / 446.1 MB Notification: Performance of Templates: time 0.04634/0.5094, allocations: 35.71 MB / 0.5943 GB, free: 11.63 MB / 478.1 MB make -j1 -f ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: