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.001335/0.001335, allocations: 111.9 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.001291/0.001291, allocations: 192 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.499/1.499, allocations: 205.1 MB / 224.5 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2986/0.2986, 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.001535/0.001535, allocations: 69.05 kB / 391.5 MB, free: 48.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1328/0.1343, allocations: 59.16 MB / 450.7 MB, free: 9.047 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestCoeffValve): time 0.07545/0.2098, allocations: 77.61 MB / 0.5159 GB, free: 11.17 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01481/0.2247, allocations: 11.1 MB / 0.5267 GB, free: 32 kB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006654/0.2254, allocations: 23.81 kB / 0.5268 GB, free: 8 kB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2356/0.4611, allocations: 396.5 kB / 0.5271 GB, free: 5.922 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001415/0.4625, allocations: 0.5026 MB / 0.5276 GB, free: 5.922 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01729/0.4798, allocations: 5.848 MB / 0.5333 GB, free: 5.895 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002341/0.4822, allocations: 1.374 MB / 0.5347 GB, free: 5.895 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006219/0.4828, allocations: 405.1 kB / 0.5351 GB, free: 5.859 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007035/0.4835, allocations: 482.5 kB / 0.5355 GB, free: 5.859 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006099/0.4842, allocations: 481.9 kB / 0.536 GB, free: 5.859 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.398e-05/0.4842, allocations: 43.38 kB / 0.536 GB, free: 5.859 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01404/0.4983, allocations: 6.352 MB / 0.5422 GB, free: 5.828 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000303/0.4986, allocations: 123.2 kB / 0.5424 GB, free: 5.828 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001011/0.4996, allocations: 397.4 kB / 0.5427 GB, free: 5.77 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01066/0.5103, allocations: 4.116 MB / 0.5468 GB, free: 5.512 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.5104, allocations: 4 kB / 0.5468 GB, free: 5.508 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.5104, allocations: 0.9375 kB / 0.5468 GB, free: 5.508 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.302e-05/0.5104, allocations: 0 / 0.5468 GB, free: 5.508 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.004899/0.5153, allocations: 1.487 MB / 0.5482 GB, free: 4.684 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.008e-05/0.5153, allocations: 12.83 kB / 0.5482 GB, free: 4.68 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003808/0.5157, allocations: 119 kB / 0.5483 GB, free: 4.637 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008049/0.5166, allocations: 0.5215 MB / 0.5489 GB, free: 4.352 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.697e-05/0.5166, allocations: 36.5 kB / 0.5489 GB, free: 4.352 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.462e-05/0.5167, allocations: 48.97 kB / 0.5489 GB, free: 4.352 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00102/0.5177, allocations: 0.6208 MB / 0.5495 GB, free: 4.145 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.688e-05/0.5177, allocations: 4.406 kB / 0.5495 GB, free: 4.145 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.42e-05/0.5178, allocations: 23.02 kB / 0.5496 GB, free: 4.145 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.785e-05/0.5178, allocations: 17.44 kB / 0.5496 GB, free: 4.145 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007414/0.5185, allocations: 352 kB / 0.5499 GB, free: 4.145 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.002708/0.5213, allocations: 3.536 MB / 0.5534 GB, free: 1.418 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004872/0.5218, allocations: 184.1 kB / 0.5535 GB, free: 1.324 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.229e-05/0.5219, allocations: 63.34 kB / 0.5536 GB, free: 1.289 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06568/0.5875, allocations: 32.13 MB / 0.585 GB, free: 8.688 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.042e-05/0.5876, allocations: 45.02 kB / 0.585 GB, free: 8.641 MB / 446.1 MB Notification: Performance of pre-optimization done (n=12): time 3.276e-06/0.5876, allocations: 0 / 0.585 GB, free: 8.641 MB / 446.1 MB Notification: Performance of matching and sorting (n=12): time 0.001466/0.5891, allocations: 353 kB / 0.5854 GB, free: 8.512 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.748e-05/0.5892, allocations: 139.3 kB / 0.5855 GB, free: 8.352 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009134/0.5901, allocations: 0.725 MB / 0.5862 GB, free: 8.125 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.026e-05/0.5902, allocations: 28.89 kB / 0.5862 GB, free: 8.094 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002744/0.5905, allocations: 353.7 kB / 0.5866 GB, free: 7.953 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.126e-05/0.5905, allocations: 42.14 kB / 0.5866 GB, free: 7.926 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.491e-05/0.5906, allocations: 56.34 kB / 0.5867 GB, free: 7.898 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.5908, allocations: 318.5 kB / 0.587 GB, free: 7.586 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001165/0.5909, allocations: 59.59 kB / 0.587 GB, free: 7.57 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001846/0.5911, allocations: 130.4 kB / 0.5871 GB, free: 7.461 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002848/0.5914, allocations: 194.5 kB / 0.5873 GB, free: 7.355 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.5914, allocations: 2.969 kB / 0.5873 GB, free: 7.355 MB / 446.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000474/0.5919, allocations: 286.5 kB / 0.5876 GB, free: 7.262 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.5919, allocations: 5.875 kB / 0.5876 GB, free: 7.262 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.5919, allocations: 6.062 kB / 0.5876 GB, free: 7.258 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/0.5919, allocations: 5.719 kB / 0.5876 GB, free: 7.258 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000311/0.5922, allocations: 56.7 kB / 0.5877 GB, free: 7.246 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.022e-05/0.5923, allocations: 4.938 kB / 0.5877 GB, free: 7.246 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005092/0.5928, allocations: 48.38 kB / 0.5877 GB, free: 7.215 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.703e-05/0.5928, allocations: 11.98 kB / 0.5877 GB, free: 7.211 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001987/0.593, allocations: 163.8 kB / 0.5879 GB, free: 7.125 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001672/0.5932, allocations: 185.5 kB / 0.5881 GB, free: 6.934 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00026/0.5935, allocations: 244.8 kB / 0.5883 GB, free: 6.738 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.964e-06/0.5935, allocations: 0 / 0.5883 GB, free: 6.738 MB / 446.1 MB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0003878/0.5939, allocations: 297 kB / 0.5886 GB, free: 6.645 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.767e-06/0.5939, allocations: 10.88 kB / 0.5886 GB, free: 6.641 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.76e-06/0.5939, allocations: 9.203 kB / 0.5886 GB, free: 6.637 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.52e-06/0.5939, allocations: 7.281 kB / 0.5886 GB, free: 6.637 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002082/0.5941, allocations: 50.97 kB / 0.5887 GB, free: 6.629 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/0.5941, allocations: 8.812 kB / 0.5887 GB, free: 6.629 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003268/0.5945, allocations: 23.53 kB / 0.5887 GB, free: 6.617 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.705e-05/0.5945, allocations: 15.94 kB / 0.5887 GB, free: 6.617 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.0001171/0.5946, allocations: 200.8 kB / 0.5889 GB, free: 6.426 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001497/0.5948, allocations: 81.53 kB / 0.589 GB, free: 6.387 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005665/0.5953, allocations: 0.5043 MB / 0.5895 GB, free: 6.133 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/0.5953, allocations: 4 kB / 0.5895 GB, free: 6.129 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.5954, allocations: 1.438 kB / 0.5895 GB, free: 6.129 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.249e-06/0.5954, allocations: 4 kB / 0.5895 GB, free: 6.125 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008217/0.5962, allocations: 0.6144 MB / 0.5901 GB, free: 5.594 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.5962, allocations: 0 / 0.5901 GB, free: 5.594 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.485e-05/0.5963, allocations: 22.42 kB / 0.5901 GB, free: 5.574 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.5963, allocations: 0 / 0.5901 GB, free: 5.574 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.147e-05/0.5963, allocations: 8 kB / 0.5901 GB, free: 5.566 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.5963, allocations: 2.625 kB / 0.5901 GB, free: 5.566 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.5963, allocations: 4 kB / 0.5901 GB, free: 5.562 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003937/0.5967, allocations: 0.5048 MB / 0.5906 GB, free: 5.062 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001641/0.5969, allocations: 155.8 kB / 0.5908 GB, free: 4.902 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001144/0.597, allocations: 31.53 kB / 0.5908 GB, free: 4.871 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003446/0.5974, allocations: 4 kB / 0.5908 GB, free: 4.867 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.788e-05/0.5974, allocations: 15.3 kB / 0.5908 GB, free: 4.855 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.201e-06/0.5974, allocations: 1.25 kB / 0.5908 GB, free: 4.855 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0007897/0.5982, allocations: 0.73 MB / 0.5915 GB, free: 4.316 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5982, allocations: 0 / 0.5915 GB, free: 4.316 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003908/0.6022, allocations: 1.036 MB / 0.5925 GB, free: 3.32 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.004113/0.6063, allocations: 0.977 MB / 0.5935 GB, free: 2.449 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004557/0.6067, allocations: 207.9 kB / 0.5937 GB, free: 2.316 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.6068, allocations: 0 / 0.5937 GB, free: 2.316 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 5.216e-05/0.6068, allocations: 37.02 kB / 0.5937 GB, free: 2.289 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002324/0.6091, allocations: 476.2 kB / 0.5942 GB, free: 1.891 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001466/0.6106, allocations: 1.098 MB / 0.5952 GB, free: 0.8164 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004745/0.6111, allocations: 0.9305 MB / 0.5962 GB, free: 15.86 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004906/0.6116, allocations: 294.1 kB / 0.5964 GB, free: 15.58 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.787e-05/0.6117, allocations: 55.23 kB / 0.5965 GB, free: 15.53 MB / 462.1 MB Notification: Performance of SimCode: time 5.21e-07/0.6117, allocations: 0 / 0.5965 GB, free: 15.53 MB / 462.1 MB Notification: Performance of Templates: time 0.05517/0.6669, allocations: 39.7 MB / 0.6353 GB, free: 7.953 MB / 494.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 -s cvode -lv LOG_STATS > ThermoPower_ThermoPower.Test.WaterComponents.TestCoeffValve.pipe 2>&1)