Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked.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.TestValveChoked,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestValveChoked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestValveChoked,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestValveChoked",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.001334/0.001334, allocations: 114.6 kB / 17.07 MB, free: 6.016 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.001268/0.001268, allocations: 189.4 kB / 18 MB, free: 5.098 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.575/1.575, allocations: 205.1 MB / 223.9 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.319/0.319, allocations: 48.84 MB / 320.1 MB, free: 11.02 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.002071/0.002071, allocations: 71.91 kB / 450 MB, free: 9.051 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1311, allocations: 59.15 MB / 0.4973 GB, free: 13.77 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestValveChoked): time 0.3195/0.4506, allocations: 44.33 MB / 0.5406 GB, free: 6.355 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01268/0.4633, allocations: 9.269 MB / 0.5496 GB, free: 3.367 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008162/0.4642, allocations: 10.09 kB / 0.5496 GB, free: 3.363 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007871/0.465, allocations: 208.7 kB / 0.5498 GB, free: 3.262 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007876/0.4658, allocations: 283.4 kB / 0.5501 GB, free: 3.098 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01859/0.4844, allocations: 5.034 MB / 0.555 GB, free: 1.703 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001337/0.4858, allocations: 0.7958 MB / 0.5558 GB, free: 1.473 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004177/0.4862, allocations: 256.8 kB / 0.556 GB, free: 1.445 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007365/0.4869, allocations: 402 kB / 0.5564 GB, free: 1.312 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003534/0.4873, allocations: 296.9 kB / 0.5567 GB, free: 1.227 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.984e-05/0.4874, allocations: 33.61 kB / 0.5567 GB, free: 1.223 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01392/0.5013, allocations: 6.14 MB / 0.5627 GB, free: 15.13 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001912/0.5015, allocations: 88.11 kB / 0.5628 GB, free: 15.06 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004829/0.502, allocations: 239 kB / 0.563 GB, free: 14.91 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01058/0.5126, allocations: 3.716 MB / 0.5667 GB, free: 12.52 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.5126, allocations: 0 / 0.5667 GB, free: 12.52 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.5127, allocations: 4 kB / 0.5667 GB, free: 12.52 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.227e-06/0.5127, allocations: 1.312 kB / 0.5667 GB, free: 12.52 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 75 * Number of variables: 75 Notification: Performance of Generate backend data structure: time 0.003904/0.5166, allocations: 1.203 MB / 0.5678 GB, free: 11.61 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.219e-05/0.5167, allocations: 14.33 kB / 0.5679 GB, free: 11.61 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.599e-05/0.5168, allocations: 67.56 kB / 0.5679 GB, free: 11.54 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002687/0.517, allocations: 71.19 kB / 0.568 GB, free: 11.5 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000655/0.5177, allocations: 384.2 kB / 0.5684 GB, free: 11.15 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.512e-05/0.5177, allocations: 26.84 kB / 0.5684 GB, free: 11.14 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.759e-05/0.5178, allocations: 31.78 kB / 0.5684 GB, free: 11.12 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001034/0.5188, allocations: 436.9 kB / 0.5688 GB, free: 10.82 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.646e-05/0.5189, allocations: 1 kB / 0.5688 GB, free: 10.82 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.282e-05/0.5189, allocations: 15.41 kB / 0.5688 GB, free: 10.81 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.563e-05/0.5189, allocations: 8.125 kB / 0.5688 GB, free: 10.81 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001248/0.5202, allocations: 362.4 kB / 0.5692 GB, free: 10.64 MB / 430.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.002527/0.5227, allocations: 2.118 MB / 0.5713 GB, free: 8.602 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001264/0.524, allocations: 311.6 kB / 0.5716 GB, free: 8.43 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003894/0.5244, allocations: 111.2 kB / 0.5717 GB, free: 8.371 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0691/0.5935, allocations: 32.25 MB / 0.6032 GB, free: 9.898 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.977e-05/0.5936, allocations: 34.56 kB / 0.6032 GB, free: 9.855 MB / 462.1 MB Notification: Performance of pre-optimization done (n=17): time 2.124e-06/0.5936, allocations: 0 / 0.6032 GB, free: 9.855 MB / 462.1 MB Notification: Performance of matching and sorting (n=17): time 0.001846/0.5955, allocations: 421.8 kB / 0.6036 GB, free: 9.438 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.135e-05/0.5955, allocations: 85.05 kB / 0.6037 GB, free: 9.336 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005338/0.5961, allocations: 430.1 kB / 0.6041 GB, free: 8.906 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.994e-05/0.5961, allocations: 29.7 kB / 0.6041 GB, free: 8.871 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001894/0.5963, allocations: 232.3 kB / 0.6043 GB, free: 8.637 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.387e-05/0.5964, allocations: 63.47 kB / 0.6044 GB, free: 8.574 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.638e-05/0.5965, allocations: 53.69 kB / 0.6045 GB, free: 8.516 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.5967, allocations: 358.7 kB / 0.6048 GB, free: 8.156 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003902/0.5971, allocations: 96.78 kB / 0.6049 GB, free: 8.059 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004214/0.5975, allocations: 164.5 kB / 0.605 GB, free: 7.871 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007747/0.5983, allocations: 263.8 kB / 0.6053 GB, free: 7.586 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.5983, allocations: 0 / 0.6053 GB, free: 7.586 MB / 462.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.000976/0.5993, allocations: 329 kB / 0.6056 GB, free: 7.258 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.5993, allocations: 7.906 kB / 0.6056 GB, free: 7.25 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/0.5993, allocations: 4 kB / 0.6056 GB, free: 7.246 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.768e-05/0.5993, allocations: 4 kB / 0.6056 GB, free: 7.242 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00037/0.5997, allocations: 68.17 kB / 0.6057 GB, free: 7.176 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.205e-05/0.5997, allocations: 7.922 kB / 0.6057 GB, free: 7.168 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004106/0.6001, allocations: 51.66 kB / 0.6057 GB, free: 7.117 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.885e-05/0.6002, allocations: 12.3 kB / 0.6058 GB, free: 7.105 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004723/0.6007, allocations: 201.2 kB / 0.6059 GB, free: 6.906 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004158/0.6011, allocations: 161.2 kB / 0.6061 GB, free: 6.715 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007328/0.6018, allocations: 257.2 kB / 0.6063 GB, free: 6.43 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.493e-06/0.6018, allocations: 3.938 kB / 0.6064 GB, free: 6.426 MB / 462.1 MB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.0009315/0.6028, allocations: 317.2 kB / 0.6067 GB, free: 6.109 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.247e-05/0.6028, allocations: 8 kB / 0.6067 GB, free: 6.102 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.6028, allocations: 4 kB / 0.6067 GB, free: 6.098 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.138e-06/0.6028, allocations: 0 / 0.6067 GB, free: 6.098 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000327/0.6032, allocations: 72.02 kB / 0.6067 GB, free: 6.027 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.281e-06/0.6032, allocations: 4 kB / 0.6067 GB, free: 6.023 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003882/0.6036, allocations: 36.86 kB / 0.6068 GB, free: 5.988 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.431e-05/0.6036, allocations: 8 kB / 0.6068 GB, free: 5.98 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 2 (ValveVap.fluidState.phase,ValveLiqChocked.fluidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * 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.0001781/0.6038, allocations: 200.1 kB / 0.607 GB, free: 5.777 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001096/0.6039, allocations: 47.72 kB / 0.607 GB, free: 5.73 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001187/0.6051, allocations: 448.8 kB / 0.6074 GB, free: 5.289 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.594e-06/0.6051, allocations: 4 kB / 0.6074 GB, free: 5.285 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.6051, allocations: 4 kB / 0.6075 GB, free: 5.281 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.305e-06/0.6051, allocations: 7.922 kB / 0.6075 GB, free: 5.273 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006311/0.6058, allocations: 458 kB / 0.6079 GB, free: 4.777 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.6058, allocations: 0 / 0.6079 GB, free: 4.777 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002814/0.6061, allocations: 51.89 kB / 0.6079 GB, free: 4.727 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.437e-06/0.6061, allocations: 0 / 0.6079 GB, free: 4.727 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.07e-05/0.6061, allocations: 8 kB / 0.608 GB, free: 4.719 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.477e-06/0.6061, allocations: 1.312 kB / 0.608 GB, free: 4.719 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.6061, allocations: 0 / 0.608 GB, free: 4.719 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009391/0.6071, allocations: 466.3 kB / 0.6084 GB, free: 4.246 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001475/0.6072, allocations: 132.6 kB / 0.6085 GB, free: 4.098 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.367e-05/0.6073, allocations: 15.83 kB / 0.6085 GB, free: 4.082 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003326/0.6077, allocations: 19.98 kB / 0.6086 GB, free: 4.062 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.901e-05/0.6077, allocations: 23.91 kB / 0.6086 GB, free: 4.039 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.377e-05/0.6078, allocations: 4 kB / 0.6086 GB, free: 4.035 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0005629/0.6083, allocations: 406.8 kB / 0.609 GB, free: 3.641 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6083, allocations: 4 kB / 0.609 GB, free: 3.637 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004908/0.6133, allocations: 0.9397 MB / 0.6099 GB, free: 2.695 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (19): * Single equations (assignments): 19 * 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.006958/0.6202, allocations: 1.856 MB / 0.6117 GB, free: 0.8242 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001525/0.6218, allocations: 364 kB / 0.6121 GB, free: 480 kB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.6218, allocations: 0 / 0.6121 GB, free: 480 kB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003899/0.6222, allocations: 111.8 kB / 0.6122 GB, free: 368 kB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001481/0.6237, allocations: 246.1 kB / 0.6124 GB, free: 124 kB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008178/0.6319, allocations: 4.292 MB / 0.6166 GB, free: 11.69 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005408/0.6325, allocations: 0.8269 MB / 0.6174 GB, free: 10.84 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0005103/0.633, allocations: 159 kB / 0.6175 GB, free: 10.68 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002809/0.6333, allocations: 175.4 kB / 0.6177 GB, free: 10.51 MB / 478.1 MB Notification: Performance of SimCode: time 1.213e-06/0.6333, allocations: 0 / 0.6177 GB, free: 10.51 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08171/0.715, allocations: 39.82 MB / 0.6566 GB, free: 2.578 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.56/11.28, allocations: 4 kB / 0.6566 GB, free: 2.574 MB / 0.4981 GB (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked_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_TestValveChoked.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked.pipe 2>&1)