Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.DistributedParameterComponents.CheckFlow1DFV2phMassBalance.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.DistributedParameterComponents.CheckFlow1DFV2phMassBalance,fileNamePrefix="ThermoPower_ThermoPower_Test_DistributedParameterComponents_CheckFlow1DFV2phMassBalance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.DistributedParameterComponents.CheckFlow1DFV2phMassBalance,fileNamePrefix="ThermoPower_ThermoPower_Test_DistributedParameterComponents_CheckFlow1DFV2phMassBalance",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.001082/0.001082, allocations: 110 kB / 17.06 MB, free: 5.793 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.001066/0.001066, allocations: 200 kB / 18.01 MB, free: 4.918 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.293/1.293, 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.2527/0.2527, allocations: 48.85 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.002298/0.002298, allocations: 72.45 kB / 450.1 MB, free: 8.941 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09488/0.09719, allocations: 59.15 MB / 0.4974 GB, free: 13.66 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.DistributedParameterComponents.CheckFlow1DFV2phMassBalance): time 0.01698/0.1142, allocations: 15.65 MB / 0.5126 GB, free: 13.94 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01465/0.1289, allocations: 13.8 MB / 0.5261 GB, free: 100 kB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001428/0.1291, allocations: 0 / 0.5261 GB, free: 100 kB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1879/0.317, allocations: 135.7 kB / 0.5262 GB, free: 6.562 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006445/0.3177, allocations: 253.5 kB / 0.5265 GB, free: 6.562 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01208/0.3298, allocations: 5.489 MB / 0.5318 GB, free: 6.527 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001201/0.331, allocations: 1.034 MB / 0.5329 GB, free: 6.527 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.502e-05/0.3311, allocations: 31.78 kB / 0.5329 GB, free: 6.527 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006782/0.3317, allocations: 0.4991 MB / 0.5334 GB, free: 6.527 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005997/0.3323, allocations: 452.5 kB / 0.5338 GB, free: 6.527 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 9.501e-05/0.3325, allocations: 43.84 kB / 0.5338 GB, free: 6.527 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01124/0.3437, allocations: 6.367 MB / 0.5401 GB, free: 6.484 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002139/0.3439, allocations: 182.6 kB / 0.5402 GB, free: 6.484 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003887/0.3443, allocations: 240.5 kB / 0.5405 GB, free: 6.484 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006337/0.3507, allocations: 3.935 MB / 0.5443 GB, free: 5.965 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.3507, allocations: 1.125 kB / 0.5443 GB, free: 5.965 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3507, allocations: 0.9375 kB / 0.5443 GB, free: 5.965 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.024e-06/0.3507, allocations: 0 / 0.5443 GB, free: 5.965 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.005055/0.3558, allocations: 1.526 MB / 0.5458 GB, free: 5.051 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.93e-05/0.3558, allocations: 13.7 kB / 0.5458 GB, free: 5.047 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001094/0.356, allocations: 77.59 kB / 0.5459 GB, free: 5 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00145/0.3574, allocations: 159.2 kB / 0.546 GB, free: 4.945 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005386/0.358, allocations: 354.2 kB / 0.5464 GB, free: 4.676 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003023/0.3583, allocations: 127.4 kB / 0.5465 GB, free: 4.617 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001462/0.3584, allocations: 32.72 kB / 0.5465 GB, free: 4.613 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004703/0.3631, allocations: 1.884 MB / 0.5484 GB, free: 3.906 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.58e-05/0.3632, allocations: 0.7188 kB / 0.5484 GB, free: 3.906 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001073/0.3633, allocations: 24.08 kB / 0.5484 GB, free: 3.902 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.547e-05/0.3633, allocations: 14.41 kB / 0.5484 GB, free: 3.898 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006759/0.3701, allocations: 2.644 MB / 0.551 GB, free: 2.797 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.003816/0.3739, allocations: 4.838 MB / 0.5557 GB, free: 14 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003928/0.3778, allocations: 1.352 MB / 0.557 GB, free: 13.31 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002548/0.3804, allocations: 0.9859 MB / 0.558 GB, free: 12.83 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1574/0.5378, allocations: 76.33 MB / 0.6325 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.21e-05/0.5379, allocations: 38.89 kB / 0.6326 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=40): time 2.274e-06/0.5379, allocations: 0 / 0.6326 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of matching and sorting (n=43): time 0.02329/0.5612, allocations: 5.853 MB / 0.6383 GB, free: 8.285 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.238e-05/0.5612, allocations: 58.41 kB / 0.6384 GB, free: 8.219 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001438/0.5614, allocations: 165.5 kB / 0.6385 GB, free: 8.047 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001271/0.5615, allocations: 29.7 kB / 0.6385 GB, free: 8.012 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.492e-05/0.5616, allocations: 145 kB / 0.6387 GB, free: 7.863 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002202/0.5619, allocations: 161.2 kB / 0.6388 GB, free: 7.707 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004739/0.5623, allocations: 231.2 kB / 0.6391 GB, free: 7.477 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001176/0.5625, allocations: 330.8 kB / 0.6394 GB, free: 7.145 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003861/0.5663, allocations: 1.122 MB / 0.6405 GB, free: 6.023 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003899/0.5702, allocations: 1.204 MB / 0.6416 GB, free: 4.785 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00721/0.5775, allocations: 1.978 MB / 0.6436 GB, free: 2.781 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.5775, allocations: 0 / 0.6436 GB, free: 2.781 MB / 0.4981 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.008221/0.5857, allocations: 2.335 MB / 0.6458 GB, free: 464 kB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.5857, allocations: 4 kB / 0.6459 GB, free: 460 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.5858, allocations: 4 kB / 0.6459 GB, free: 456 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.702e-05/0.5858, allocations: 4 kB / 0.6459 GB, free: 452 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002711/0.5885, allocations: 493.5 kB / 0.6463 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.27e-05/0.5885, allocations: 7.375 kB / 0.6463 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001899/0.5904, allocations: 255.6 kB / 0.6466 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001693/0.5906, allocations: 83.84 kB / 0.6467 GB, free: 15.63 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 4 (fluid[2].phase,fluid[1].phase,dew.phase,bubble.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0004009/0.591, allocations: 177.3 kB / 0.6468 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002511/0.5913, allocations: 27.86 kB / 0.6469 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01151/0.6028, allocations: 7.108 MB / 0.6538 GB, free: 8.316 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01026/0.6131, allocations: 6.562 MB / 0.6602 GB, free: 1.742 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.074e-05/0.6131, allocations: 0 / 0.6602 GB, free: 1.742 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.245e-05/0.6131, allocations: 3.984 kB / 0.6602 GB, free: 1.738 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01467/0.6278, allocations: 10.45 MB / 0.6704 GB, free: 6.969 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.015e-06/0.6278, allocations: 4 kB / 0.6704 GB, free: 6.965 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00255/0.6304, allocations: 0.4887 MB / 0.6709 GB, free: 6.484 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.272e-05/0.6304, allocations: 4 kB / 0.6709 GB, free: 6.48 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001324/0.6305, allocations: 51.91 kB / 0.671 GB, free: 6.43 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.445e-06/0.6305, allocations: 7.938 kB / 0.671 GB, free: 6.422 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.6306, allocations: 0 / 0.671 GB, free: 6.422 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01153/0.6421, allocations: 4.496 MB / 0.6754 GB, free: 1.902 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005557/0.6427, allocations: 284.2 kB / 0.6756 GB, free: 1.605 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000172/0.6428, allocations: 20.06 kB / 0.6756 GB, free: 1.59 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001763/0.6446, allocations: 263.6 kB / 0.6759 GB, free: 1.332 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001685/0.6448, allocations: 72.84 kB / 0.676 GB, free: 1.258 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001263/0.6449, allocations: 55.91 kB / 0.676 GB, free: 1.203 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 8.536e-05/0.645, allocations: 107.2 kB / 0.6761 GB, free: 1.098 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.5e-07/0.645, allocations: 4 kB / 0.6761 GB, free: 1.094 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.003323/0.6483, allocations: 0.979 MB / 0.6771 GB, free: 116 kB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (rhobar_check[1]) * Number of discrete variables: 8 ($cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse23.region3boundary,$cse24.region3boundary,$cse25.region3boundary,$cse26.region3boundary) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * 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.01715/0.6655, allocations: 5.931 MB / 0.6829 GB, free: 10.27 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.007909/0.6734, allocations: 2.65 MB / 0.6855 GB, free: 7.617 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.6735, allocations: 0 / 0.6855 GB, free: 7.617 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003848/0.6773, allocations: 1.542 MB / 0.687 GB, free: 6.09 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008712/0.6782, allocations: 109.8 kB / 0.6871 GB, free: 5.984 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02828/0.7065, allocations: 9.755 MB / 0.6966 GB, free: 12.1 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004663/0.707, allocations: 0.9243 MB / 0.6975 GB, free: 11.15 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.002179/0.7092, allocations: 1.296 MB / 0.6988 GB, free: 9.867 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001118/0.7103, allocations: 307.1 kB / 0.6991 GB, free: 9.566 MB / 0.5606 GB Notification: Performance of SimCode: time 6.41e-07/0.7103, allocations: 7.188 kB / 0.6991 GB, free: 9.562 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07751/0.7878, allocations: 49.09 MB / 0.747 GB, free: 8.469 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.73/11.52, allocations: 12.95 kB / 0.747 GB, free: 8.457 MB / 0.6075 GB (rm -f ThermoPower_ThermoPower.Test.DistributedParameterComponents.CheckFlow1DFV2phMassBalance.pipe ; mkfifo ThermoPower_ThermoPower.Test.DistributedParameterComponents.CheckFlow1DFV2phMassBalance.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.DistributedParameterComponents.CheckFlow1DFV2phMassBalance.pipe >> ../files/ThermoPower_ThermoPower.Test.DistributedParameterComponents.CheckFlow1DFV2phMassBalance.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.DistributedParameterComponents.CheckFlow1DFV2phMassBalance_res.csv --start-time 0 --stop-time 19 --timeout 50 --relative-tolerance 1e-09 --interface-type ModelExchange --solver CVode --output-interval 0.0076 ThermoPower_ThermoPower_Test_DistributedParameterComponents_CheckFlow1DFV2phMassBalance.fmu > ThermoPower_ThermoPower.Test.DistributedParameterComponents.CheckFlow1DFV2phMassBalance.pipe 2>&1)