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.001246/0.001246, allocations: 111.8 kB / 17.68 MB, free: 5.355 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.001354/0.001354, allocations: 190.9 kB / 18.62 MB, free: 4.434 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.463/1.463, allocations: 205.1 MB / 224.5 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.268/0.268, allocations: 48.84 MB / 320.7 MB, free: 11.04 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.001445/0.001445, allocations: 71.38 kB / 391.5 MB, free: 48.55 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08454/0.086, allocations: 59.16 MB / 450.7 MB, free: 9.035 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.ValveZeroFlow2): time 0.04469/0.1307, allocations: 46.47 MB / 497.2 MB, free: 10.4 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01178/0.1426, allocations: 9.799 MB / 0.4951 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003482/0.1429, allocations: 11.94 kB / 0.4951 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007572/0.1437, allocations: 250.4 kB / 0.4953 GB, free: 316 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005416/0.1443, allocations: 286 kB / 0.4956 GB, free: 28 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01142/0.1557, allocations: 4.683 MB / 0.5002 GB, free: 11.33 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001038/0.1568, allocations: 0.7668 MB / 0.5009 GB, free: 10.56 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003824/0.1572, allocations: 241.9 kB / 0.5011 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003265/0.1575, allocations: 286.9 kB / 0.5014 GB, free: 10.04 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003269/0.1579, allocations: 294.8 kB / 0.5017 GB, free: 9.746 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.318e-05/0.1579, allocations: 32 kB / 0.5017 GB, free: 9.715 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01069/0.1686, allocations: 6.201 MB / 0.5078 GB, free: 3.508 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001159/0.1688, allocations: 79.62 kB / 0.5079 GB, free: 3.43 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003177/0.1691, allocations: 227 kB / 0.5081 GB, free: 3.207 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006644/0.1757, allocations: 3.735 MB / 0.5117 GB, free: 15.46 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/0.1758, allocations: 8 kB / 0.5117 GB, free: 15.45 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1758, allocations: 0 / 0.5117 GB, free: 15.45 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.965e-06/0.1758, allocations: 0 / 0.5117 GB, free: 15.45 MB / 414.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.002519/0.1783, allocations: 1.142 MB / 0.5128 GB, free: 14.27 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.1784, allocations: 11.89 kB / 0.5129 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003773/0.1788, allocations: 88.42 kB / 0.5129 GB, free: 14.17 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004606/0.1792, allocations: 339.2 kB / 0.5133 GB, free: 13.8 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.135e-05/0.1793, allocations: 25.03 kB / 0.5133 GB, free: 13.78 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.471e-05/0.1793, allocations: 32.38 kB / 0.5133 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007753/0.1801, allocations: 426 kB / 0.5137 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.1801, allocations: 0 / 0.5137 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.08e-05/0.1802, allocations: 16 kB / 0.5137 GB, free: 13.29 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.277e-06/0.1802, allocations: 8 kB / 0.5137 GB, free: 13.28 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006462/0.1808, allocations: 290.3 kB / 0.514 GB, free: 12.99 MB / 414.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.001906/0.1828, allocations: 2.201 MB / 0.5162 GB, free: 10.55 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006706/0.1834, allocations: 270.6 kB / 0.5164 GB, free: 10.27 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001827/0.1836, allocations: 100.8 kB / 0.5165 GB, free: 10.17 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2318/0.4154, allocations: 32.09 MB / 0.5479 GB, free: 70.66 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.36e-05/0.4154, allocations: 48.69 kB / 0.5479 GB, free: 70.62 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.876e-06/0.4155, allocations: 0 / 0.5479 GB, free: 70.62 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.004486/0.4199, allocations: 1.44 MB / 0.5493 GB, free: 70.12 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.583e-05/0.42, allocations: 55.53 kB / 0.5494 GB, free: 70.06 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002988/0.4203, allocations: 320 kB / 0.5497 GB, free: 69.91 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.534e-05/0.4203, allocations: 36.83 kB / 0.5497 GB, free: 69.88 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.687e-05/0.4204, allocations: 207.5 kB / 0.5499 GB, free: 69.75 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.033e-05/0.4205, allocations: 119.2 kB / 0.55 GB, free: 69.67 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001037/0.4206, allocations: 69.78 kB / 0.5501 GB, free: 69.64 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 5.836e-05/0.4207, allocations: 347.6 kB / 0.5504 GB, free: 69.3 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002165/0.4209, allocations: 127 kB / 0.5505 GB, free: 69.23 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002382/0.4211, allocations: 169.5 kB / 0.5507 GB, free: 69.11 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004599/0.4216, allocations: 303.6 kB / 0.551 GB, free: 68.93 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.4216, allocations: 0 / 0.551 GB, free: 68.93 MB / 414.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008814/0.4225, allocations: 442.6 kB / 0.5514 GB, free: 68.69 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/0.4225, allocations: 5 kB / 0.5514 GB, free: 68.69 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.4225, allocations: 8.594 kB / 0.5514 GB, free: 68.69 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004907/0.423, allocations: 90.91 kB / 0.5515 GB, free: 68.64 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003584/0.4234, allocations: 78.81 kB / 0.5516 GB, free: 68.62 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006055/0.424, allocations: 1.113 MB / 0.5527 GB, free: 67.53 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000227/0.4243, allocations: 12.92 kB / 0.5527 GB, free: 67.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.218e-05/0.4243, allocations: 18 kB / 0.5527 GB, free: 67.52 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002593/0.4246, allocations: 214.4 kB / 0.5529 GB, free: 67.37 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002028/0.4248, allocations: 161.9 kB / 0.5531 GB, free: 67.25 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003896/0.4252, allocations: 294.5 kB / 0.5534 GB, free: 67.08 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.154e-06/0.4252, allocations: 3.672 kB / 0.5534 GB, free: 67.08 MB / 414.1 MB Notification: Performance of matching and sorting (n=42) (initialization_lambda0): time 0.0007949/0.426, allocations: 426.8 kB / 0.5538 GB, free: 66.85 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.15e-05/0.426, allocations: 5.781 kB / 0.5538 GB, free: 66.85 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.086e-06/0.426, allocations: 1.062 kB / 0.5538 GB, free: 66.85 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004248/0.4265, allocations: 97.75 kB / 0.5539 GB, free: 66.79 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002926/0.4268, allocations: 71.25 kB / 0.5539 GB, free: 66.79 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005773/0.4273, allocations: 1.118 MB / 0.555 GB, free: 65.69 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002035/0.4276, allocations: 11.66 kB / 0.555 GB, free: 65.68 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.551e-05/0.4276, allocations: 14.8 kB / 0.555 GB, free: 65.68 MB / 414.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.000103/0.4277, allocations: 196.5 kB / 0.5552 GB, free: 65.48 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.09e-05/0.4278, allocations: 38.34 kB / 0.5553 GB, free: 65.46 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00152/0.4293, allocations: 1.174 MB / 0.5564 GB, free: 64.79 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.45e-05/0.4293, allocations: 13.17 kB / 0.5564 GB, free: 64.78 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.4293, allocations: 0.5 kB / 0.5564 GB, free: 64.78 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.4294, allocations: 4.547 kB / 0.5564 GB, free: 64.77 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007056/0.4301, allocations: 0.6744 MB / 0.5571 GB, free: 64.26 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.009e-06/0.4301, allocations: 2 kB / 0.5571 GB, free: 64.26 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002989/0.4304, allocations: 72.23 kB / 0.5572 GB, free: 64.24 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005624/0.431, allocations: 140.9 kB / 0.5573 GB, free: 64.16 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.372e-05/0.431, allocations: 8 kB / 0.5573 GB, free: 64.16 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005973/0.4316, allocations: 1.19 MB / 0.5585 GB, free: 63.02 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.4316, allocations: 7.438 kB / 0.5585 GB, free: 63.02 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001383/0.433, allocations: 1.206 MB / 0.5597 GB, free: 62.3 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001351/0.4332, allocations: 165.4 kB / 0.5598 GB, free: 62.14 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.519e-05/0.4332, allocations: 10.12 kB / 0.5598 GB, free: 62.13 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002111/0.4334, allocations: 6.406 kB / 0.5598 GB, free: 62.13 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.475e-05/0.4335, allocations: 28.16 kB / 0.5599 GB, free: 62.11 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.215e-05/0.4335, allocations: 15.2 kB / 0.5599 GB, free: 62.11 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001714/0.4337, allocations: 223.8 kB / 0.5601 GB, free: 61.96 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4337, allocations: 0 / 0.5601 GB, free: 61.96 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002149/0.4359, allocations: 0.9323 MB / 0.561 GB, free: 61.88 MB / 414.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.003047/0.4389, allocations: 0.9662 MB / 0.5619 GB, free: 61.64 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001399/0.4403, allocations: 0.6844 MB / 0.5626 GB, free: 61.34 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.4404, allocations: 3.781 kB / 0.5626 GB, free: 61.34 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005572/0.4409, allocations: 389.2 kB / 0.563 GB, free: 61.15 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001041/0.442, allocations: 208.2 kB / 0.5632 GB, free: 61.05 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001516/0.4435, allocations: 1.266 MB / 0.5644 GB, free: 60.26 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000184/0.4437, allocations: 0.8481 MB / 0.5652 GB, free: 59.5 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003124/0.444, allocations: 195.5 kB / 0.5654 GB, free: 59.42 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.758e-05/0.4441, allocations: 34.91 kB / 0.5655 GB, free: 59.41 MB / 414.1 MB Notification: Performance of SimCode: time 4.11e-07/0.4441, allocations: 0 / 0.5655 GB, free: 59.41 MB / 414.1 MB Notification: Performance of Templates: time 0.03516/0.4793, allocations: 35.89 MB / 0.6005 GB, free: 23.59 MB / 414.1 MB 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 -s cvode -lv LOG_STATS > ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe 2>&1)