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.001193/0.001193, allocations: 111.1 kB / 17.06 MB, free: 5.992 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.001335/0.001336, allocations: 200 kB / 18.01 MB, free: 5.066 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.431/1.431, allocations: 205.1 MB / 223.9 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3169/0.3169, allocations: 48.85 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.001588/0.001588, allocations: 71.89 kB / 450.5 MB, free: 8.551 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1323/0.1339, allocations: 59.16 MB / 0.4977 GB, free: 13.26 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestCoeffValve): time 0.366/0.4999, allocations: 77.61 MB / 0.5735 GB, free: 2.941 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01461/0.5146, allocations: 11.09 MB / 0.5844 GB, free: 10.71 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009563/0.5156, allocations: 22.94 kB / 0.5844 GB, free: 10.7 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001422/0.5171, allocations: 403.1 kB / 0.5848 GB, free: 10.35 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001625/0.5187, allocations: 0.5033 MB / 0.5853 GB, free: 9.922 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01876/0.5375, allocations: 5.868 MB / 0.591 GB, free: 5.723 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002414/0.5399, allocations: 1.378 MB / 0.5923 GB, free: 4.93 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009359/0.5409, allocations: 403.2 kB / 0.5927 GB, free: 4.688 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001039/0.5419, allocations: 477.2 kB / 0.5932 GB, free: 4.445 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001067/0.543, allocations: 480.2 kB / 0.5936 GB, free: 4.168 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001508/0.5432, allocations: 44.94 kB / 0.5937 GB, free: 4.168 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01345/0.5566, allocations: 6.35 MB / 0.5999 GB, free: 0.8828 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002274/0.5569, allocations: 121.1 kB / 0.6 GB, free: 0.7852 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008625/0.5578, allocations: 394.8 kB / 0.6004 GB, free: 0.5508 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01218/0.57, allocations: 4.129 MB / 0.6044 GB, free: 12.86 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.478e-06/0.57, allocations: 0 / 0.6044 GB, free: 12.86 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.514e-06/0.57, allocations: 4 kB / 0.6044 GB, free: 12.86 MB / 462.1 MB Notification: Performance of Transformations before backend: time 6.031e-05/0.5701, allocations: 0 / 0.6044 GB, free: 12.86 MB / 462.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.004501/0.5746, allocations: 1.524 MB / 0.6059 GB, free: 11.28 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.5747, allocations: 11.89 kB / 0.6059 GB, free: 11.27 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003988/0.5751, allocations: 124.3 kB / 0.606 GB, free: 11.14 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008078/0.5759, allocations: 0.5301 MB / 0.6065 GB, free: 10.58 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.091e-05/0.5759, allocations: 41.31 kB / 0.6066 GB, free: 10.54 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.67e-05/0.576, allocations: 48.56 kB / 0.6066 GB, free: 10.49 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001092/0.5771, allocations: 0.6204 MB / 0.6072 GB, free: 9.805 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.617e-05/0.5771, allocations: 0 / 0.6072 GB, free: 9.805 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.016e-05/0.5772, allocations: 20 kB / 0.6073 GB, free: 9.785 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.605e-05/0.5772, allocations: 17.31 kB / 0.6073 GB, free: 9.77 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007695/0.578, allocations: 360.1 kB / 0.6076 GB, free: 9.418 MB / 462.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.003517/0.5815, allocations: 3.545 MB / 0.6111 GB, free: 5.602 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004705/0.582, allocations: 186.4 kB / 0.6113 GB, free: 5.383 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.883e-05/0.5821, allocations: 59.52 kB / 0.6113 GB, free: 5.312 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06403/0.6461, allocations: 32.12 MB / 0.6427 GB, free: 1.371 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.001e-05/0.6462, allocations: 38.5 kB / 0.6427 GB, free: 1.324 MB / 494.1 MB Notification: Performance of pre-optimization done (n=12): time 3.266e-06/0.6462, allocations: 0 / 0.6427 GB, free: 1.324 MB / 494.1 MB Notification: Performance of matching and sorting (n=12): time 0.001418/0.6477, allocations: 369.5 kB / 0.6431 GB, free: 0.957 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.424e-05/0.6477, allocations: 136.5 kB / 0.6432 GB, free: 0.793 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009429/0.6487, allocations: 0.724 MB / 0.6439 GB, free: 64 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.882e-05/0.6487, allocations: 33.7 kB / 0.6439 GB, free: 24 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002812/0.649, allocations: 348.2 kB / 0.6443 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.697e-05/0.6491, allocations: 47.58 kB / 0.6443 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.913e-05/0.6492, allocations: 57.62 kB / 0.6444 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001047/0.6493, allocations: 314 kB / 0.6447 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001215/0.6494, allocations: 60.78 kB / 0.6447 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001829/0.6496, allocations: 126.2 kB / 0.6449 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002996/0.6499, allocations: 194.2 kB / 0.645 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.6499, allocations: 0 / 0.645 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005632/0.6505, allocations: 292.8 kB / 0.6453 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.6505, allocations: 4 kB / 0.6453 GB, free: 14.51 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.6505, allocations: 4 kB / 0.6453 GB, free: 14.51 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.103e-05/0.6506, allocations: 4.875 kB / 0.6453 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003079/0.6509, allocations: 60.14 kB / 0.6454 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.226e-05/0.6509, allocations: 9.562 kB / 0.6454 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004745/0.6514, allocations: 51.52 kB / 0.6454 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.428e-05/0.6514, allocations: 15.98 kB / 0.6455 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002271/0.6517, allocations: 168.1 kB / 0.6456 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001891/0.6519, allocations: 171.9 kB / 0.6458 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002999/0.6522, allocations: 251.4 kB / 0.646 GB, free: 13.65 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.324e-06/0.6522, allocations: 4 kB / 0.646 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0005253/0.6527, allocations: 300.6 kB / 0.6463 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.6527, allocations: 11.91 kB / 0.6463 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.6528, allocations: 4.938 kB / 0.6463 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.332e-06/0.6528, allocations: 8.719 kB / 0.6463 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002183/0.653, allocations: 51.91 kB / 0.6464 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/0.653, allocations: 19.92 kB / 0.6464 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003974/0.6534, allocations: 19.89 kB / 0.6464 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.133e-05/0.6535, allocations: 12 kB / 0.6464 GB, free: 13.22 MB / 0.4981 GB 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.0001514/0.6536, allocations: 200.3 kB / 0.6466 GB, free: 13.02 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001787/0.6538, allocations: 87.47 kB / 0.6467 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006405/0.6544, allocations: 0.4939 MB / 0.6472 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.6545, allocations: 8 kB / 0.6472 GB, free: 12.42 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.6545, allocations: 2.938 kB / 0.6472 GB, free: 12.42 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.6545, allocations: 4 kB / 0.6472 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008645/0.6553, allocations: 0.6168 MB / 0.6478 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.6554, allocations: 0 / 0.6478 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.551e-05/0.6555, allocations: 23.92 kB / 0.6478 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.6555, allocations: 0 / 0.6478 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.221e-05/0.6555, allocations: 7.984 kB / 0.6478 GB, free: 11.72 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.776e-06/0.6555, allocations: 0 / 0.6478 GB, free: 11.72 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.6555, allocations: 4 kB / 0.6478 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004011/0.6559, allocations: 0.5132 MB / 0.6483 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000184/0.6561, allocations: 156.5 kB / 0.6485 GB, free: 11.01 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001357/0.6562, allocations: 31.69 kB / 0.6485 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004181/0.6567, allocations: 4 kB / 0.6485 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.755e-05/0.6567, allocations: 11.98 kB / 0.6485 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.342e-06/0.6567, allocations: 4 kB / 0.6485 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0009509/0.6577, allocations: 0.7306 MB / 0.6493 GB, free: 10.22 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6577, allocations: 0 / 0.6493 GB, free: 10.22 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003158/0.6608, allocations: 1.053 MB / 0.6503 GB, free: 9.168 MB / 0.4981 GB 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.004534/0.6654, allocations: 0.9912 MB / 0.6513 GB, free: 8.164 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005472/0.666, allocations: 197.6 kB / 0.6514 GB, free: 7.973 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.666, allocations: 4.062 kB / 0.6514 GB, free: 7.969 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 6.407e-05/0.666, allocations: 43.86 kB / 0.6515 GB, free: 7.926 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00269/0.6687, allocations: 462.3 kB / 0.6519 GB, free: 7.473 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00174/0.6705, allocations: 1.115 MB / 0.653 GB, free: 6.316 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004731/0.671, allocations: 0.933 MB / 0.6539 GB, free: 5.355 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0005618/0.6715, allocations: 281.2 kB / 0.6542 GB, free: 5.078 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001164/0.6717, allocations: 59.42 kB / 0.6543 GB, free: 5.02 MB / 0.4981 GB Notification: Performance of SimCode: time 5.91e-07/0.6717, allocations: 0 / 0.6543 GB, free: 5.02 MB / 0.4981 GB Notification: Performance of Templates: time 0.06245/0.7341, allocations: 39.75 MB / 0.6931 GB, free: 13.2 MB / 0.545 GB 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)