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.00154/0.00154, allocations: 107.8 kB / 17.06 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.001494/0.001493, allocations: 189.4 kB / 18 MB, free: 5.102 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.571/1.571, allocations: 205.1 MB / 223.9 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3363/0.3363, allocations: 48.86 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.002497/0.002497, allocations: 75.89 kB / 450.2 MB, free: 8.945 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1332/0.1358, allocations: 59.15 MB / 0.4974 GB, free: 13.67 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.DistributedParameterComponents.CheckFlow1DFV2phMassBalance): time 0.02563/0.1615, allocations: 15.65 MB / 0.5126 GB, free: 13.95 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.02343/0.185, allocations: 13.81 MB / 0.5261 GB, free: 96 kB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001459/0.1852, allocations: 3.938 kB / 0.5261 GB, free: 92 kB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2426/0.4278, allocations: 119.3 kB / 0.5262 GB, free: 6.543 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009839/0.4289, allocations: 252.3 kB / 0.5265 GB, free: 6.543 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01803/0.4469, allocations: 5.496 MB / 0.5319 GB, free: 6.508 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001822/0.4487, allocations: 1.029 MB / 0.5329 GB, free: 6.508 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000138/0.4489, allocations: 28.91 kB / 0.5329 GB, free: 6.508 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001011/0.4499, allocations: 0.4885 MB / 0.5334 GB, free: 6.508 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009344/0.4509, allocations: 454.6 kB / 0.5338 GB, free: 6.508 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001105/0.451, allocations: 42.66 kB / 0.5338 GB, free: 6.508 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01654/0.4676, allocations: 6.366 MB / 0.5401 GB, free: 6.473 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003489/0.4679, allocations: 179.6 kB / 0.5402 GB, free: 6.469 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005621/0.4685, allocations: 246 kB / 0.5405 GB, free: 6.469 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009781/0.4783, allocations: 3.933 MB / 0.5443 GB, free: 5.949 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.4784, allocations: 1.156 kB / 0.5443 GB, free: 5.949 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.4784, allocations: 2.812 kB / 0.5443 GB, free: 5.949 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.083e-06/0.4784, allocations: 0 / 0.5443 GB, free: 5.949 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.00688/0.4853, allocations: 1.525 MB / 0.5458 GB, free: 5.039 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.4853, allocations: 17.08 kB / 0.5458 GB, free: 5.031 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000225/0.4855, allocations: 75.84 kB / 0.5459 GB, free: 4.984 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001714/0.4873, allocations: 161.5 kB / 0.546 GB, free: 4.93 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006295/0.4879, allocations: 354.7 kB / 0.5464 GB, free: 4.66 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000357/0.4883, allocations: 125 kB / 0.5465 GB, free: 4.605 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002036/0.4885, allocations: 34.38 kB / 0.5465 GB, free: 4.602 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005507/0.494, allocations: 1.877 MB / 0.5484 GB, free: 3.891 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.329e-05/0.4941, allocations: 4.562 kB / 0.5484 GB, free: 3.891 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001304/0.4943, allocations: 19.8 kB / 0.5484 GB, free: 3.887 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.301e-05/0.4943, allocations: 11.27 kB / 0.5484 GB, free: 3.887 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008157/0.5024, allocations: 2.645 MB / 0.551 GB, free: 2.801 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.005305/0.5078, allocations: 4.838 MB / 0.5557 GB, free: 14 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004982/0.5128, allocations: 1.359 MB / 0.557 GB, free: 13.31 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003361/0.5162, allocations: 0.9823 MB / 0.558 GB, free: 12.83 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1967/0.713, allocations: 76.34 MB / 0.6325 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.596e-05/0.7131, allocations: 34.89 kB / 0.6326 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=40): time 2.544e-06/0.7131, allocations: 0 / 0.6326 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of matching and sorting (n=43): time 0.02821/0.7413, allocations: 5.858 MB / 0.6383 GB, free: 8.281 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.482e-05/0.7414, allocations: 55.41 kB / 0.6383 GB, free: 8.215 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002099/0.7416, allocations: 161.5 kB / 0.6385 GB, free: 8.051 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002169/0.7418, allocations: 33.7 kB / 0.6385 GB, free: 8.012 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001075/0.742, allocations: 142.5 kB / 0.6387 GB, free: 7.867 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003218/0.7423, allocations: 162.5 kB / 0.6388 GB, free: 7.711 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006936/0.743, allocations: 225.8 kB / 0.639 GB, free: 7.484 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0002184/0.7432, allocations: 334.8 kB / 0.6394 GB, free: 7.148 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00485/0.7481, allocations: 1.113 MB / 0.6404 GB, free: 6.035 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004818/0.7529, allocations: 1.216 MB / 0.6416 GB, free: 4.789 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008734/0.7617, allocations: 1.97 MB / 0.6436 GB, free: 2.793 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.7617, allocations: 0 / 0.6436 GB, free: 2.793 MB / 0.4981 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.009811/0.7715, allocations: 2.335 MB / 0.6458 GB, free: 476 kB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.7716, allocations: 4 kB / 0.6458 GB, free: 472 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.7716, allocations: 4.312 kB / 0.6458 GB, free: 468 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.7716, allocations: 8 kB / 0.6458 GB, free: 460 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003245/0.7749, allocations: 493 kB / 0.6463 GB, free: 15.97 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.552e-05/0.7749, allocations: 8 kB / 0.6463 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002232/0.7772, allocations: 251.6 kB / 0.6466 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002786/0.7775, allocations: 83.86 kB / 0.6466 GB, free: 15.64 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.0005137/0.778, allocations: 176.7 kB / 0.6468 GB, free: 15.46 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003153/0.7784, allocations: 23.86 kB / 0.6468 GB, free: 15.44 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01471/0.7931, allocations: 7.107 MB / 0.6538 GB, free: 8.328 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01312/0.8062, allocations: 6.568 MB / 0.6602 GB, free: 1.75 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.8063, allocations: 4.688 kB / 0.6602 GB, free: 1.746 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.179e-05/0.8063, allocations: 6.281 kB / 0.6602 GB, free: 1.742 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01852/0.8248, allocations: 10.45 MB / 0.6704 GB, free: 6.973 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.717e-05/0.8249, allocations: 0 / 0.6704 GB, free: 6.973 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003048/0.8279, allocations: 497.1 kB / 0.6709 GB, free: 6.496 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.414e-06/0.828, allocations: 7.938 kB / 0.6709 GB, free: 6.488 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002424/0.8282, allocations: 47.91 kB / 0.6709 GB, free: 6.441 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.037e-06/0.8282, allocations: 7.938 kB / 0.6709 GB, free: 6.434 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.8282, allocations: 0 / 0.6709 GB, free: 6.434 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01401/0.8422, allocations: 4.504 MB / 0.6753 GB, free: 1.906 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005881/0.8428, allocations: 284.2 kB / 0.6756 GB, free: 1.609 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002487/0.8431, allocations: 16 kB / 0.6756 GB, free: 1.594 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001951/0.8451, allocations: 263.7 kB / 0.6759 GB, free: 1.34 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002785/0.8454, allocations: 72.84 kB / 0.676 GB, free: 1.266 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001582/0.8455, allocations: 55.91 kB / 0.676 GB, free: 1.211 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0001239/0.8457, allocations: 111.2 kB / 0.6761 GB, free: 1.102 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8457, allocations: 0 / 0.6761 GB, free: 1.102 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004607/0.8503, allocations: 0.9751 MB / 0.6771 GB, free: 128 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.01981/0.8702, allocations: 5.929 MB / 0.6829 GB, free: 10.27 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009456/0.8796, allocations: 2.65 MB / 0.6854 GB, free: 7.625 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.8796, allocations: 0 / 0.6854 GB, free: 7.625 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004595/0.8842, allocations: 1.536 MB / 0.6869 GB, free: 6.102 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001037/0.8853, allocations: 105.8 kB / 0.687 GB, free: 6 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03336/0.9187, allocations: 9.758 MB / 0.6966 GB, free: 12.11 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007176/0.9194, allocations: 0.9321 MB / 0.6975 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.002691/0.9221, allocations: 1.296 MB / 0.6987 GB, free: 9.879 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001099/0.9232, allocations: 311.1 kB / 0.699 GB, free: 9.574 MB / 0.5606 GB Notification: Performance of SimCode: time 1.021e-06/0.9233, allocations: 0 / 0.699 GB, free: 9.574 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1129/1.036, allocations: 49.09 MB / 0.747 GB, free: 8.48 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.06/14.1, allocations: 8.891 kB / 0.747 GB, free: 8.473 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)