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.001616/0.001616, allocations: 117.1 kB / 17.11 MB, free: 5.926 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.001722/0.001722, allocations: 195.9 kB / 18.06 MB, free: 5 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.394/1.394, allocations: 207.6 MB / 226.4 MB, free: 11.54 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2992/0.2992, allocations: 49.52 MB / 325.8 MB, free: 7.473 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.002061/0.002061, allocations: 67.91 kB / 462.2 MB, free: 1.582 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1143, allocations: 62.33 MB / 0.5123 GB, free: 3.059 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.DistributedParameterComponents.CheckFlow1DFV2phMassBalance): time 0.01928/0.1336, allocations: 15.68 MB / 0.5276 GB, free: 3.309 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.2371/0.3706, allocations: 13.82 MB / 0.5411 GB, free: 7.121 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002166/0.3709, allocations: 4.281 kB / 0.5411 GB, free: 7.121 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005124/0.3714, allocations: 136.4 kB / 0.5412 GB, free: 7.117 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006741/0.372, allocations: 255.2 kB / 0.5414 GB, free: 7.051 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01621/0.3883, allocations: 5.505 MB / 0.5468 GB, free: 6.113 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001773/0.39, allocations: 1.034 MB / 0.5478 GB, free: 5.992 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.922e-05/0.3901, allocations: 24.73 kB / 0.5479 GB, free: 5.988 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009907/0.3911, allocations: 0.5027 MB / 0.5483 GB, free: 5.883 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007425/0.3918, allocations: 455.3 kB / 0.5488 GB, free: 5.824 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001233/0.392, allocations: 43.12 kB / 0.5488 GB, free: 5.824 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01372/0.4057, allocations: 6.362 MB / 0.555 GB, free: 4.145 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002695/0.406, allocations: 177.5 kB / 0.5552 GB, free: 4.016 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004303/0.4064, allocations: 246.9 kB / 0.5554 GB, free: 3.859 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009113/0.4155, allocations: 3.931 MB / 0.5593 GB, free: 1.363 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.713e-06/0.4155, allocations: 0 / 0.5593 GB, free: 1.363 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.4155, allocations: 0 / 0.5593 GB, free: 1.363 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.3e-05/0.4155, allocations: 0 / 0.5593 GB, free: 1.363 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.005442/0.421, allocations: 1.527 MB / 0.5608 GB, free: 384 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.952e-05/0.421, allocations: 17.61 kB / 0.5608 GB, free: 376 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001013/0.4211, allocations: 77.22 kB / 0.5609 GB, free: 304 kB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00141/0.4225, allocations: 163.1 kB / 0.561 GB, free: 232 kB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006527/0.4232, allocations: 357.8 kB / 0.5614 GB, free: 15.92 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003174/0.4235, allocations: 122.3 kB / 0.5615 GB, free: 15.85 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00014/0.4236, allocations: 40.36 kB / 0.5615 GB, free: 15.83 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004774/0.4284, allocations: 1.877 MB / 0.5633 GB, free: 14.73 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.467e-05/0.4284, allocations: 0 / 0.5633 GB, free: 14.73 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.393e-05/0.4285, allocations: 17.06 kB / 0.5634 GB, free: 14.71 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.611e-05/0.4285, allocations: 11.03 kB / 0.5634 GB, free: 14.71 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00699/0.4355, allocations: 2.653 MB / 0.566 GB, free: 13.39 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.005399/0.4409, allocations: 4.824 MB / 0.5707 GB, free: 8.574 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003843/0.4448, allocations: 1.346 MB / 0.572 GB, free: 7.887 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002404/0.4472, allocations: 0.9733 MB / 0.5729 GB, free: 7.41 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1633/0.6104, allocations: 76.34 MB / 0.6475 GB, free: 6.273 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.28e-05/0.6105, allocations: 30.89 kB / 0.6475 GB, free: 6.234 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=40): time 2.504e-06/0.6105, allocations: 0 / 0.6475 GB, free: 6.234 MB / 0.4981 GB Notification: Performance of matching and sorting (n=43): time 0.02268/0.6332, allocations: 5.86 MB / 0.6532 GB, free: 328 kB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.173e-05/0.6332, allocations: 55.41 kB / 0.6533 GB, free: 260 kB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001764/0.6334, allocations: 161.6 kB / 0.6534 GB, free: 88 kB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001329/0.6335, allocations: 33.7 kB / 0.6535 GB, free: 48 kB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001303/0.6337, allocations: 148.8 kB / 0.6536 GB, free: 15.89 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002291/0.6339, allocations: 158.6 kB / 0.6538 GB, free: 15.74 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004857/0.6344, allocations: 225.8 kB / 0.654 GB, free: 15.51 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001528/0.6345, allocations: 334.8 kB / 0.6543 GB, free: 15.18 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003459/0.638, allocations: 1.113 MB / 0.6554 GB, free: 14.06 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003638/0.6416, allocations: 1.211 MB / 0.6566 GB, free: 12.82 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006707/0.6483, allocations: 1.97 MB / 0.6585 GB, free: 10.81 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/0.6483, allocations: 4 kB / 0.6585 GB, free: 10.81 MB / 0.5137 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.007769/0.6561, allocations: 2.335 MB / 0.6608 GB, free: 8.469 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.989e-05/0.6561, allocations: 8 kB / 0.6608 GB, free: 8.461 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/0.6561, allocations: 0 / 0.6608 GB, free: 8.461 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.246e-05/0.6562, allocations: 4 kB / 0.6608 GB, free: 8.457 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002553/0.6587, allocations: 499.5 kB / 0.6613 GB, free: 7.969 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.906e-05/0.6587, allocations: 11.92 kB / 0.6613 GB, free: 7.957 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001815/0.6606, allocations: 247.6 kB / 0.6615 GB, free: 7.715 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001847/0.6607, allocations: 83.86 kB / 0.6616 GB, free: 7.633 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.0004516/0.6612, allocations: 178.3 kB / 0.6618 GB, free: 7.449 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002594/0.6614, allocations: 19.86 kB / 0.6618 GB, free: 7.43 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01236/0.6738, allocations: 7.112 MB / 0.6687 GB, free: 316 kB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01115/0.685, allocations: 6.564 MB / 0.6751 GB, free: 9.73 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.326e-05/0.685, allocations: 0 / 0.6751 GB, free: 9.73 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.76e-05/0.685, allocations: 3.984 kB / 0.6751 GB, free: 9.727 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0163/0.7013, allocations: 10.47 MB / 0.6854 GB, free: 14.91 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.484e-06/0.7013, allocations: 0 / 0.6854 GB, free: 14.91 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002633/0.7039, allocations: 495.2 kB / 0.6858 GB, free: 14.43 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-05/0.704, allocations: 7.938 kB / 0.6858 GB, free: 14.42 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001773/0.7041, allocations: 47.91 kB / 0.6859 GB, free: 14.38 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.309e-05/0.7041, allocations: 7.938 kB / 0.6859 GB, free: 14.37 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.7041, allocations: 0 / 0.6859 GB, free: 14.37 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01142/0.7156, allocations: 4.504 MB / 0.6903 GB, free: 9.84 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006847/0.7162, allocations: 276.3 kB / 0.6906 GB, free: 9.551 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001717/0.7164, allocations: 23.98 kB / 0.6906 GB, free: 9.527 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001681/0.7181, allocations: 255.6 kB / 0.6908 GB, free: 9.277 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001886/0.7183, allocations: 73.34 kB / 0.6909 GB, free: 9.203 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001435/0.7184, allocations: 55.91 kB / 0.691 GB, free: 9.148 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.000111/0.7185, allocations: 111.2 kB / 0.6911 GB, free: 9.039 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.41e-07/0.7185, allocations: 0 / 0.6911 GB, free: 9.039 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.003474/0.722, allocations: 0.9789 MB / 0.692 GB, free: 8.059 MB / 0.545 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.01689/0.7389, allocations: 5.93 MB / 0.6978 GB, free: 2.121 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.007799/0.7467, allocations: 2.607 MB / 0.7004 GB, free: 15.5 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.424e-06/0.7467, allocations: 4 kB / 0.7004 GB, free: 15.5 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00378/0.7505, allocations: 1.4 MB / 0.7017 GB, free: 14.1 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008952/0.7514, allocations: 107.8 kB / 0.7018 GB, free: 13.99 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02837/0.7798, allocations: 9.745 MB / 0.7113 GB, free: 4.102 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006953/0.7805, allocations: 0.9321 MB / 0.7123 GB, free: 3.145 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.002706/0.7832, allocations: 1.29 MB / 0.7135 GB, free: 1.855 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009553/0.7841, allocations: 311.1 kB / 0.7138 GB, free: 1.551 MB / 0.5606 GB Notification: Performance of SimCode: time 1.273e-06/0.7841, allocations: 3.938 kB / 0.7138 GB, free: 1.547 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.095/0.8791, allocations: 49.15 MB / 0.7618 GB, free: 272 kB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.37/14.25, allocations: 4.062 kB / 0.7618 GB, free: 268 kB / 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_DistributedParameterComponents_CheckFlow1DFV2phMassBalance_fmu --startTime=0 --stopTime=19 --timeout=50 --tolerance=1e-09 ThermoPower_ThermoPower_Test_DistributedParameterComponents_CheckFlow1DFV2phMassBalance.fmu > ThermoPower_ThermoPower.Test.DistributedParameterComponents.CheckFlow1DFV2phMassBalance.pipe 2>&1)