Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestCoeffValve.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.TestCoeffValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestCoeffValve") translateModel(ThermoPower.Test.WaterComponents.TestCoeffValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestCoeffValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001065/0.001065, allocations: 109.1 kB / 17.28 MB, free: 6.059 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.0009783/0.0009783, allocations: 189.3 kB / 18.21 MB, free: 5.148 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.208/1.208, allocations: 205.1 MB / 224.1 MB, free: 12.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2541/0.2541, allocations: 48.84 MB / 320.2 MB, free: 11.25 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.001269/0.00127, allocations: 70.16 kB / 390.2 MB, free: 48.95 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08532/0.0866, allocations: 59.16 MB / 449.4 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestCoeffValve): time 0.06475/0.1514, allocations: 77.79 MB / 0.5148 GB, free: 12.06 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01221/0.1636, allocations: 11.24 MB / 0.5258 GB, free: 0.7812 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008903/0.1646, allocations: 27.81 kB / 0.5258 GB, free: 0.7539 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001026/0.1657, allocations: 338 kB / 0.5261 GB, free: 432 kB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1885/0.3541, allocations: 477.9 kB / 0.5266 GB, free: 6.109 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0141/0.3683, allocations: 5.233 MB / 0.5317 GB, free: 6.074 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001798/0.3701, allocations: 1.371 MB / 0.533 GB, free: 6.074 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005539/0.3707, allocations: 398.3 kB / 0.5334 GB, free: 6.027 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007047/0.3714, allocations: 490.3 kB / 0.5339 GB, free: 6.027 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005908/0.372, allocations: 487.1 kB / 0.5343 GB, free: 6.027 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.687e-05/0.372, allocations: 43.31 kB / 0.5344 GB, free: 6.027 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01057/0.3826, allocations: 6.28 MB / 0.5405 GB, free: 5.992 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002996/0.383, allocations: 129 kB / 0.5406 GB, free: 5.992 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001117/0.3841, allocations: 391.8 kB / 0.541 GB, free: 5.969 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006819/0.3909, allocations: 2.798 MB / 0.5438 GB, free: 5.816 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.391, allocations: 0 / 0.5438 GB, free: 5.816 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.391, allocations: 0 / 0.5438 GB, free: 5.816 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.174e-05/0.391, allocations: 1.125 kB / 0.5438 GB, free: 5.816 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: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.004288/0.3953, allocations: 1.476 MB / 0.5452 GB, free: 4.996 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.634e-05/0.3953, allocations: 13.14 kB / 0.5452 GB, free: 4.992 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000361/0.3957, allocations: 117.6 kB / 0.5453 GB, free: 4.949 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005473/0.3963, allocations: 0.5021 MB / 0.5458 GB, free: 4.668 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.818e-05/0.3963, allocations: 42.56 kB / 0.5458 GB, free: 4.664 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.312e-05/0.3963, allocations: 47.75 kB / 0.5459 GB, free: 4.664 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009045/0.3973, allocations: 0.6178 MB / 0.5465 GB, free: 4.457 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.3973, allocations: 5.344 kB / 0.5465 GB, free: 4.457 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.782e-05/0.3973, allocations: 22.19 kB / 0.5465 GB, free: 4.457 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.386e-05/0.3973, allocations: 13.55 kB / 0.5465 GB, free: 4.457 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006774/0.398, allocations: 358.5 kB / 0.5469 GB, free: 4.453 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.002505/0.4005, allocations: 3.539 MB / 0.5503 GB, free: 1.723 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004733/0.401, allocations: 188.5 kB / 0.5505 GB, free: 1.625 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.33e-05/0.4011, allocations: 63.25 kB / 0.5506 GB, free: 1.59 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05728/0.4584, allocations: 32 MB / 0.5818 GB, free: 10.16 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.772e-05/0.4585, allocations: 36.91 kB / 0.5819 GB, free: 10.12 MB / 446.1 MB Notification: Performance of pre-optimization done (n=12): time 2.715e-06/0.4585, allocations: 0 / 0.5819 GB, free: 10.12 MB / 446.1 MB Notification: Performance of matching and sorting (n=12): time 0.001285/0.4598, allocations: 363 kB / 0.5822 GB, free: 9.988 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.362e-05/0.4599, allocations: 130.4 kB / 0.5823 GB, free: 9.832 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007298/0.4606, allocations: 0.7331 MB / 0.583 GB, free: 9.602 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.469e-05/0.4607, allocations: 25.7 kB / 0.5831 GB, free: 9.57 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002149/0.4609, allocations: 358.7 kB / 0.5834 GB, free: 9.426 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.148e-05/0.4609, allocations: 38.67 kB / 0.5834 GB, free: 9.398 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.809e-05/0.461, allocations: 55.88 kB / 0.5835 GB, free: 9.371 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001046/0.4611, allocations: 313.9 kB / 0.5838 GB, free: 9.062 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001002/0.4612, allocations: 61.39 kB / 0.5839 GB, free: 9.051 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001468/0.4614, allocations: 129.7 kB / 0.584 GB, free: 8.941 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002365/0.4616, allocations: 190.9 kB / 0.5842 GB, free: 8.836 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.4616, allocations: 3 kB / 0.5842 GB, free: 8.836 MB / 446.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004381/0.4621, allocations: 295.3 kB / 0.5844 GB, free: 8.734 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.4621, allocations: 8.656 kB / 0.5845 GB, free: 8.734 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.665e-06/0.4621, allocations: 3.875 kB / 0.5845 GB, free: 8.734 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.567e-05/0.4621, allocations: 3.656 kB / 0.5845 GB, free: 8.734 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000295/0.4624, allocations: 57.67 kB / 0.5845 GB, free: 8.723 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.198e-05/0.4625, allocations: 7.031 kB / 0.5845 GB, free: 8.723 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005463/0.463, allocations: 64.64 kB / 0.5846 GB, free: 8.684 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.401e-05/0.4631, allocations: 9.812 kB / 0.5846 GB, free: 8.684 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001908/0.4633, allocations: 160.1 kB / 0.5847 GB, free: 8.598 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001636/0.4634, allocations: 177.5 kB / 0.5849 GB, free: 8.406 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002647/0.4637, allocations: 242.1 kB / 0.5851 GB, free: 8.211 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.663e-06/0.4637, allocations: 0 / 0.5851 GB, free: 8.211 MB / 446.1 MB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0003808/0.4641, allocations: 303.3 kB / 0.5854 GB, free: 8.113 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.386e-06/0.4641, allocations: 6.375 kB / 0.5854 GB, free: 8.113 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.4641, allocations: 7.469 kB / 0.5855 GB, free: 8.113 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.532e-06/0.4641, allocations: 9.906 kB / 0.5855 GB, free: 8.109 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002029/0.4643, allocations: 55.78 kB / 0.5855 GB, free: 8.098 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.875e-06/0.4643, allocations: 8.219 kB / 0.5855 GB, free: 8.098 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000419/0.4648, allocations: 29.36 kB / 0.5856 GB, free: 8.086 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.723e-05/0.4648, allocations: 16.12 kB / 0.5856 GB, free: 8.086 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 4 (ValveLiq4.fluidState.phase,ValveLiq3.fluidState.phase,ValveLiq2.fluidState.phase,ValveLiq1.fluidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001357/0.4649, allocations: 199.8 kB / 0.5858 GB, free: 7.898 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001407/0.4651, allocations: 81.73 kB / 0.5858 GB, free: 7.855 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005511/0.4656, allocations: 0.5042 MB / 0.5863 GB, free: 7.672 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.4657, allocations: 1.938 kB / 0.5863 GB, free: 7.672 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.4657, allocations: 3.062 kB / 0.5863 GB, free: 7.672 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.4657, allocations: 3.984 kB / 0.5863 GB, free: 7.668 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007431/0.4664, allocations: 0.6199 MB / 0.5869 GB, free: 7.297 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.4664, allocations: 4 kB / 0.5869 GB, free: 7.293 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.601e-05/0.4665, allocations: 19.48 kB / 0.587 GB, free: 7.289 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/0.4665, allocations: 2.406 kB / 0.587 GB, free: 7.289 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.917e-06/0.4665, allocations: 0 / 0.587 GB, free: 7.289 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.4665, allocations: 5.938 kB / 0.587 GB, free: 7.289 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.4666, allocations: 0 / 0.587 GB, free: 7.289 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003917/0.4669, allocations: 0.5105 MB / 0.5875 GB, free: 6.785 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001686/0.4671, allocations: 154.5 kB / 0.5876 GB, free: 6.625 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001121/0.4672, allocations: 31.53 kB / 0.5876 GB, free: 6.594 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000367/0.4676, allocations: 14.73 kB / 0.5877 GB, free: 6.582 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.932e-05/0.4676, allocations: 4 kB / 0.5877 GB, free: 6.578 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.598e-05/0.4677, allocations: 11.98 kB / 0.5877 GB, free: 6.566 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0007556/0.4684, allocations: 0.7251 MB / 0.5884 GB, free: 6.031 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4684, allocations: 0 / 0.5884 GB, free: 6.031 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003897/0.4723, allocations: 1.051 MB / 0.5894 GB, free: 5.023 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004419/0.4768, allocations: 0.9858 MB / 0.5904 GB, free: 4.133 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004756/0.4773, allocations: 208.9 kB / 0.5906 GB, free: 3.996 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/0.4773, allocations: 4.125 kB / 0.5906 GB, free: 3.992 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 4.76e-05/0.4773, allocations: 42.2 kB / 0.5906 GB, free: 3.965 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002395/0.4797, allocations: 471.8 kB / 0.5911 GB, free: 3.566 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00159/0.4813, allocations: 1.349 MB / 0.5924 GB, free: 2.23 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004432/0.4818, allocations: 0.9356 MB / 0.5933 GB, free: 1.27 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001044/0.4819, allocations: 50.88 kB / 0.5933 GB, free: 1.223 MB / 446.1 MB Notification: Performance of SimCode: time 2.41e-07/0.4819, allocations: 0 / 0.5933 GB, free: 1.223 MB / 446.1 MB Notification: Performance of Templates: time 0.0343/0.5162, allocations: 24.4 MB / 0.6172 GB, free: 9.043 MB / 478.1 MB make -j1 -f ThermoPower_ThermoPower.Test.WaterComponents.TestCoeffValve.makefile (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestCoeffValve.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestCoeffValve.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestCoeffValve.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestCoeffValve.sim & ./ThermoPower_ThermoPower.Test.WaterComponents.TestCoeffValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.WaterComponents.TestCoeffValve.pipe 2>&1)