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: "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestCoeffValve,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestCoeffValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestCoeffValve,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestCoeffValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001298/0.001298, allocations: 113.4 kB / 17.05 MB, free: 6.082 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.001265/0.001265, allocations: 191 kB / 17.99 MB, free: 5.176 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.618/1.618, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2983/0.2983, allocations: 48.84 MB / 320.1 MB, free: 11.01 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.001497/0.001497, allocations: 75.91 kB / 450 MB, free: 9.051 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.1254, allocations: 59.15 MB / 0.4972 GB, free: 13.77 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestCoeffValve): time 0.3909/0.5164, allocations: 77.61 MB / 0.573 GB, free: 3.039 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01612/0.5325, allocations: 11.1 MB / 0.5839 GB, free: 10.88 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009854/0.5336, allocations: 24.28 kB / 0.5839 GB, free: 10.86 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001262/0.5348, allocations: 401.6 kB / 0.5843 GB, free: 10.52 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001517/0.5364, allocations: 0.5136 MB / 0.5848 GB, free: 10.08 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01954/0.556, allocations: 5.874 MB / 0.5905 GB, free: 5.875 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.003924/0.56, allocations: 1.378 MB / 0.5919 GB, free: 5.086 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001095/0.5611, allocations: 400.9 kB / 0.5923 GB, free: 4.844 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001371/0.5625, allocations: 493.8 kB / 0.5927 GB, free: 4.59 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008589/0.5634, allocations: 480.1 kB / 0.5932 GB, free: 4.312 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001118/0.5635, allocations: 42.59 kB / 0.5932 GB, free: 4.312 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01585/0.5793, allocations: 6.36 MB / 0.5994 GB, free: 1.02 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000353/0.5797, allocations: 110.2 kB / 0.5995 GB, free: 0.9297 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008868/0.5806, allocations: 402.3 kB / 0.5999 GB, free: 0.6914 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01381/0.5944, allocations: 4.119 MB / 0.6039 GB, free: 13.15 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.437e-06/0.5945, allocations: 0 / 0.6039 GB, free: 13.15 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.5945, allocations: 0 / 0.6039 GB, free: 13.15 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.537e-05/0.5945, allocations: 0 / 0.6039 GB, free: 13.15 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.004756/0.5993, allocations: 1.531 MB / 0.6054 GB, free: 11.56 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.378e-05/0.5994, allocations: 15.88 kB / 0.6055 GB, free: 11.55 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001008/0.5995, allocations: 86.7 kB / 0.6055 GB, free: 11.45 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003903/0.5999, allocations: 120.3 kB / 0.6056 GB, free: 11.34 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008788/0.6008, allocations: 0.5311 MB / 0.6062 GB, free: 10.77 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.952e-05/0.6008, allocations: 38.06 kB / 0.6062 GB, free: 10.73 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.284e-05/0.6009, allocations: 52.31 kB / 0.6063 GB, free: 10.68 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001105/0.602, allocations: 0.6243 MB / 0.6069 GB, free: 9.988 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.895e-05/0.602, allocations: 3.938 kB / 0.6069 GB, free: 9.984 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.632e-05/0.6021, allocations: 20 kB / 0.6069 GB, free: 9.965 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.597e-05/0.6021, allocations: 16 kB / 0.6069 GB, free: 9.949 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007734/0.6029, allocations: 356.3 kB / 0.6072 GB, free: 9.602 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.003318/0.6062, allocations: 3.549 MB / 0.6107 GB, free: 5.781 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004687/0.6067, allocations: 190.3 kB / 0.6109 GB, free: 5.559 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.86e-05/0.6068, allocations: 52.2 kB / 0.6109 GB, free: 5.496 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06839/0.6752, allocations: 32.13 MB / 0.6423 GB, free: 1.551 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.462e-05/0.6753, allocations: 38.5 kB / 0.6423 GB, free: 1.504 MB / 494.1 MB Notification: Performance of pre-optimization done (n=12): time 3.125e-06/0.6753, allocations: 0 / 0.6423 GB, free: 1.504 MB / 494.1 MB Notification: Performance of matching and sorting (n=12): time 0.00138/0.6767, allocations: 361.5 kB / 0.6427 GB, free: 1.145 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.002e-05/0.6768, allocations: 140.5 kB / 0.6428 GB, free: 0.9766 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00096/0.6778, allocations: 0.724 MB / 0.6435 GB, free: 248 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.866e-05/0.6778, allocations: 33.7 kB / 0.6436 GB, free: 208 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003124/0.6781, allocations: 352.3 kB / 0.6439 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.335e-05/0.6782, allocations: 43.58 kB / 0.6439 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.13e-05/0.6783, allocations: 53.69 kB / 0.644 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001132/0.6784, allocations: 314 kB / 0.6443 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001243/0.6785, allocations: 60.78 kB / 0.6444 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001687/0.6787, allocations: 122.3 kB / 0.6445 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002936/0.679, allocations: 198.2 kB / 0.6447 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.783e-06/0.679, allocations: 9.25 kB / 0.6447 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005522/0.6796, allocations: 292.8 kB / 0.6449 GB, free: 14.69 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.6796, allocations: 4 kB / 0.6449 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.133e-05/0.6796, allocations: 5.562 kB / 0.645 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/0.6797, allocations: 7.938 kB / 0.645 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003127/0.68, allocations: 55.89 kB / 0.645 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.135e-05/0.68, allocations: 4.25 kB / 0.645 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004495/0.6805, allocations: 55.52 kB / 0.6451 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.039e-05/0.6805, allocations: 15.98 kB / 0.6451 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002026/0.6807, allocations: 164.1 kB / 0.6452 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001543/0.6809, allocations: 179.8 kB / 0.6454 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000251/0.6811, allocations: 247.4 kB / 0.6457 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.395e-06/0.6811, allocations: 0 / 0.6457 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0004846/0.6816, allocations: 300.6 kB / 0.6459 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.6817, allocations: 11.91 kB / 0.646 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.6817, allocations: 8 kB / 0.646 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.341e-06/0.6817, allocations: 4 kB / 0.646 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002467/0.6819, allocations: 53.47 kB / 0.646 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.859e-06/0.6819, allocations: 11.98 kB / 0.646 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003901/0.6823, allocations: 23.89 kB / 0.646 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.024e-05/0.6824, allocations: 12 kB / 0.6461 GB, free: 13.4 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.000133/0.6825, allocations: 196.1 kB / 0.6462 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001753/0.6827, allocations: 83.48 kB / 0.6463 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006284/0.6833, allocations: 0.5057 MB / 0.6468 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.359e-06/0.6833, allocations: 4 kB / 0.6468 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.6834, allocations: 4.625 kB / 0.6468 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.6834, allocations: 4 kB / 0.6468 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008634/0.6842, allocations: 0.6167 MB / 0.6474 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.6842, allocations: 3.938 kB / 0.6474 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.09e-05/0.6843, allocations: 26.42 kB / 0.6475 GB, free: 11.9 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.781e-06/0.6844, allocations: 4 kB / 0.6475 GB, free: 11.9 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.234e-05/0.6844, allocations: 7.984 kB / 0.6475 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.896e-06/0.6844, allocations: 0 / 0.6475 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.6844, allocations: 4 kB / 0.6475 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004056/0.6848, allocations: 0.5094 MB / 0.648 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001939/0.685, allocations: 148.6 kB / 0.6481 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001525/0.6852, allocations: 39.56 kB / 0.6482 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003797/0.6856, allocations: 8 kB / 0.6482 GB, free: 11.15 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.066e-05/0.6856, allocations: 7.984 kB / 0.6482 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.648e-06/0.6856, allocations: 4 kB / 0.6482 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0009982/0.6866, allocations: 0.7306 MB / 0.6489 GB, free: 10.4 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.91e-07/0.6866, allocations: 0 / 0.6489 GB, free: 10.4 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003675/0.6903, allocations: 1.053 MB / 0.6499 GB, free: 9.344 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.005475/0.6958, allocations: 1.936 MB / 0.6518 GB, free: 7.379 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0006646/0.6965, allocations: 217.6 kB / 0.652 GB, free: 7.168 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.672e-06/0.6965, allocations: 0 / 0.652 GB, free: 7.168 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 7.164e-05/0.6966, allocations: 31.92 kB / 0.652 GB, free: 7.137 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003132/0.6997, allocations: 470.3 kB / 0.6525 GB, free: 6.68 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01079/0.7105, allocations: 6.045 MB / 0.6584 GB, free: 432 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006664/0.7113, allocations: 0.933 MB / 0.6593 GB, free: 15.46 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0008317/0.7121, allocations: 289.2 kB / 0.6596 GB, free: 15.18 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004177/0.7126, allocations: 299.3 kB / 0.6599 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of SimCode: time 8.91e-07/0.7126, allocations: 0 / 0.6599 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09226/0.8048, allocations: 48.17 MB / 0.7069 GB, free: 14.58 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.83/11.64, allocations: 4 kB / 0.7069 GB, free: 14.58 MB / 0.5606 GB (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 & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.WaterComponents.TestCoeffValve_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 ThermoPower_ThermoPower_Test_WaterComponents_TestCoeffValve.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestCoeffValve.pipe 2>&1)