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.001252/0.001252, allocations: 106.1 kB / 17.06 MB, free: 6.027 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.001243/0.001243, allocations: 195 kB / 18 MB, free: 5.105 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.298/1.298, 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.269/0.269, 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.001548/0.001548, allocations: 75.84 kB / 450.1 MB, free: 8.941 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1061, 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.01853/0.1246, allocations: 15.65 MB / 0.5126 GB, free: 13.95 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01596/0.1406, allocations: 13.81 MB / 0.5261 GB, free: 92 kB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001915/0.1409, allocations: 8 kB / 0.5261 GB, free: 84 kB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2268/0.3678, allocations: 131.8 kB / 0.5263 GB, free: 6.086 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000763/0.3686, allocations: 250.2 kB / 0.5265 GB, free: 6.086 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.014/0.3826, allocations: 5.491 MB / 0.5319 GB, free: 6.043 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001684/0.3843, allocations: 1.028 MB / 0.5329 GB, free: 6.043 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.869e-05/0.3844, allocations: 35.12 kB / 0.5329 GB, free: 6.043 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009218/0.3853, allocations: 0.4945 MB / 0.5334 GB, free: 6.043 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006994/0.386, allocations: 455.6 kB / 0.5338 GB, free: 6.043 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001056/0.3861, allocations: 42.53 kB / 0.5338 GB, free: 6.043 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01339/0.3995, allocations: 6.361 MB / 0.5401 GB, free: 6.012 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004459/0.4, allocations: 182.1 kB / 0.5402 GB, free: 6.012 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005145/0.4006, allocations: 243.7 kB / 0.5405 GB, free: 6.012 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01055/0.4111, allocations: 3.925 MB / 0.5443 GB, free: 5.516 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.4112, allocations: 0 / 0.5443 GB, free: 5.516 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.4112, allocations: 0 / 0.5443 GB, free: 5.516 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.856e-06/0.4112, allocations: 0 / 0.5443 GB, free: 5.516 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.006411/0.4176, allocations: 1.504 MB / 0.5458 GB, free: 4.629 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.125e-05/0.4177, allocations: 13.17 kB / 0.5458 GB, free: 4.625 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001258/0.4178, allocations: 81.56 kB / 0.5459 GB, free: 4.574 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00156/0.4194, allocations: 162.7 kB / 0.546 GB, free: 4.52 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005066/0.4199, allocations: 341.7 kB / 0.5463 GB, free: 4.258 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000306/0.4202, allocations: 128.5 kB / 0.5465 GB, free: 4.199 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001416/0.4204, allocations: 36.88 kB / 0.5465 GB, free: 4.195 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004728/0.4251, allocations: 1.879 MB / 0.5483 GB, free: 3.484 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.721e-05/0.4251, allocations: 0 / 0.5483 GB, free: 3.484 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000114/0.4253, allocations: 13.19 kB / 0.5483 GB, free: 3.484 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.076e-05/0.4253, allocations: 15.44 kB / 0.5484 GB, free: 3.48 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006981/0.4323, allocations: 2.648 MB / 0.5509 GB, free: 2.711 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.004436/0.4368, allocations: 4.831 MB / 0.5557 GB, free: 13.92 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004373/0.4412, allocations: 1.354 MB / 0.557 GB, free: 13.23 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002606/0.4438, allocations: 0.9909 MB / 0.558 GB, free: 12.75 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2027/0.6465, allocations: 76.33 MB / 0.6325 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.435e-05/0.6466, allocations: 37.69 kB / 0.6325 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=40): time 3.577e-06/0.6466, allocations: 0 / 0.6325 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of matching and sorting (n=43): time 0.02798/0.6746, allocations: 5.851 MB / 0.6382 GB, free: 8.195 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.21e-05/0.6747, allocations: 59.41 kB / 0.6383 GB, free: 8.125 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001704/0.6749, allocations: 149.7 kB / 0.6384 GB, free: 7.969 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002215/0.6751, allocations: 36.42 kB / 0.6385 GB, free: 7.93 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000105/0.6752, allocations: 148.5 kB / 0.6386 GB, free: 7.777 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002598/0.6755, allocations: 149.3 kB / 0.6388 GB, free: 7.633 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005066/0.676, allocations: 221.8 kB / 0.639 GB, free: 7.41 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001254/0.6761, allocations: 334.8 kB / 0.6393 GB, free: 7.074 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003559/0.6797, allocations: 1.117 MB / 0.6404 GB, free: 5.957 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003816/0.6836, allocations: 1.204 MB / 0.6416 GB, free: 4.719 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006847/0.6904, allocations: 1.971 MB / 0.6435 GB, free: 2.723 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.082e-06/0.6905, allocations: 0 / 0.6435 GB, free: 2.723 MB / 0.4981 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.00782/0.6983, allocations: 2.342 MB / 0.6458 GB, free: 396 kB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.427e-05/0.6984, allocations: 4 kB / 0.6458 GB, free: 392 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.156e-05/0.6984, allocations: 7.844 kB / 0.6458 GB, free: 388 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.051e-05/0.6984, allocations: 4 kB / 0.6458 GB, free: 384 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002697/0.7011, allocations: 493.7 kB / 0.6463 GB, free: 15.9 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.101e-05/0.7011, allocations: 11.09 kB / 0.6463 GB, free: 15.89 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001866/0.703, allocations: 248.9 kB / 0.6465 GB, free: 15.65 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002064/0.7032, allocations: 83.86 kB / 0.6466 GB, free: 15.57 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.0004681/0.7037, allocations: 182.8 kB / 0.6468 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002751/0.704, allocations: 23.81 kB / 0.6468 GB, free: 15.36 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01133/0.7153, allocations: 7.103 MB / 0.6537 GB, free: 8.254 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01017/0.7255, allocations: 6.563 MB / 0.6601 GB, free: 1.68 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.532e-05/0.7256, allocations: 0 / 0.6601 GB, free: 1.68 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.056e-05/0.7256, allocations: 7.984 kB / 0.6601 GB, free: 1.672 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01599/0.7416, allocations: 10.46 MB / 0.6704 GB, free: 6.891 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.018e-05/0.7417, allocations: 0 / 0.6704 GB, free: 6.891 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00264/0.7443, allocations: 496.2 kB / 0.6708 GB, free: 6.414 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.131e-05/0.7444, allocations: 4 kB / 0.6708 GB, free: 6.41 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001985/0.7446, allocations: 52.78 kB / 0.6709 GB, free: 6.359 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.002e-05/0.7446, allocations: 7.938 kB / 0.6709 GB, free: 6.352 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.7446, allocations: 0 / 0.6709 GB, free: 6.352 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01116/0.7558, allocations: 4.498 MB / 0.6753 GB, free: 1.832 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000567/0.7564, allocations: 284.3 kB / 0.6756 GB, free: 1.535 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001905/0.7566, allocations: 16 kB / 0.6756 GB, free: 1.52 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001722/0.7583, allocations: 261.8 kB / 0.6758 GB, free: 1.266 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001917/0.7585, allocations: 72.84 kB / 0.6759 GB, free: 1.191 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001451/0.7587, allocations: 51.91 kB / 0.6759 GB, free: 1.141 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0001064/0.7588, allocations: 115.2 kB / 0.676 GB, free: 1.027 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7588, allocations: 0 / 0.676 GB, free: 1.027 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.003896/0.7627, allocations: 0.9723 MB / 0.677 GB, free: 56 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.01771/0.7804, allocations: 5.911 MB / 0.6828 GB, free: 10.22 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.007821/0.7883, allocations: 2.654 MB / 0.6854 GB, free: 7.57 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/0.7884, allocations: 0 / 0.6854 GB, free: 7.57 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003845/0.7922, allocations: 1.54 MB / 0.6869 GB, free: 6.043 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009988/0.7932, allocations: 104.4 kB / 0.687 GB, free: 5.945 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02788/0.8211, allocations: 9.729 MB / 0.6965 GB, free: 12.09 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006054/0.8218, allocations: 0.9281 MB / 0.6974 GB, free: 11.14 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.002886/0.8247, allocations: 1.302 MB / 0.6986 GB, free: 9.855 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00105/0.8258, allocations: 307.1 kB / 0.6989 GB, free: 9.555 MB / 0.5606 GB Notification: Performance of SimCode: time 1.152e-06/0.8258, allocations: 0 / 0.6989 GB, free: 9.555 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09052/0.9163, allocations: 49.54 MB / 0.7473 GB, free: 8.016 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.55/11.47, allocations: 12.95 kB / 0.7473 GB, free: 8.004 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 & /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)