Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_D.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.TestWaterFlow1DFV_D,fileNamePrefix="ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFV_D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_D,fileNamePrefix="ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFV_D",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.001387/0.001387, allocations: 93.83 kB / 16.3 MB, free: 5.992 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.001753/0.001753, allocations: 183.6 kB / 17.19 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.4/2.4, allocations: 205.4 MB / 223.4 MB, free: 5.535 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.7773/0.7773, allocations: 48.77 MB / 320.4 MB, free: 3.832 MB / 254.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.0005564/0.0005564, allocations: 19.98 kB / 391.2 MB, free: 14.23 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1727/0.1733, allocations: 60.25 MB / 451.5 MB, free: 1.836 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_D): time 0.3266/0.5, allocations: 33.84 MB / 485.3 MB, free: 29.27 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01783/0.5179, allocations: 13.01 MB / 498.3 MB, free: 20.25 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001276/0.5192, allocations: 18.62 kB / 498.4 MB, free: 20.24 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001014/0.5203, allocations: 190.4 kB / 498.5 MB, free: 20.14 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01576/0.536, allocations: 3.542 MB / 0.4903 GB, free: 18.46 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004607/0.5407, allocations: 1.011 MB / 0.4913 GB, free: 17.9 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00219/0.5429, allocations: 0.928 MB / 0.4922 GB, free: 17.45 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008473/0.5438, allocations: 428.9 kB / 0.4926 GB, free: 17.2 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008497/0.5446, allocations: 419.2 kB / 0.493 GB, free: 17 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007062/0.5453, allocations: 441 kB / 0.4934 GB, free: 16.75 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000126/0.5455, allocations: 38.44 kB / 0.4935 GB, free: 16.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01685/0.5623, allocations: 6.136 MB / 0.4995 GB, free: 13.88 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004326/0.5628, allocations: 289.1 kB / 0.4997 GB, free: 13.71 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000544/0.5634, allocations: 207.8 kB / 0.4999 GB, free: 13.61 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00836/0.5717, allocations: 2.983 MB / 0.5029 GB, free: 11.84 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.5718, allocations: 0 / 0.5029 GB, free: 11.84 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.587e-06/0.5718, allocations: 0 / 0.5029 GB, free: 11.84 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.783e-05/0.5718, allocations: 0.9688 kB / 0.5029 GB, free: 11.84 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 216 * Number of variables: 216 Notification: Performance of Generate backend data structure: time 0.006942/0.5788, allocations: 1.613 MB / 0.5044 GB, free: 10.75 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.586e-05/0.5789, allocations: 9.031 kB / 0.5044 GB, free: 10.75 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000239/0.5791, allocations: 135.3 kB / 0.5046 GB, free: 10.64 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001515/0.5806, allocations: 248.2 kB / 0.5048 GB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001748/0.5824, allocations: 0.6093 MB / 0.5054 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.5e-05/0.5825, allocations: 63 kB / 0.5055 GB, free: 10.03 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001842/0.5827, allocations: 89.41 kB / 0.5055 GB, free: 9.996 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005646/0.5883, allocations: 2.199 MB / 0.5077 GB, free: 8.688 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.518e-05/0.5884, allocations: 7.938 kB / 0.5077 GB, free: 8.68 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.472e-05/0.5885, allocations: 38.89 kB / 0.5077 GB, free: 8.648 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.234e-05/0.5886, allocations: 39 kB / 0.5078 GB, free: 8.648 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004775/0.5934, allocations: 2.207 MB / 0.5099 GB, free: 6.602 MB / 382.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.006676/0.6001, allocations: 4.836 MB / 0.5147 GB, free: 1.328 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003651/0.6038, allocations: 1.403 MB / 0.516 GB, free: 15.92 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.169/0.7728, allocations: 64.59 MB / 0.5791 GB, free: 7.703 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.038e-05/0.773, allocations: 43.12 kB / 0.5791 GB, free: 7.652 MB / 462.1 MB Notification: Performance of pre-optimization done (n=67): time 2.845e-06/0.773, allocations: 0 / 0.5791 GB, free: 7.652 MB / 462.1 MB Notification: Performance of matching and sorting (n=67): time 0.0106/0.7836, allocations: 2.891 MB / 0.582 GB, free: 4.707 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.641e-05/0.7837, allocations: 59.97 kB / 0.582 GB, free: 4.633 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008618/0.7846, allocations: 497.9 kB / 0.5825 GB, free: 4.137 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001725/0.7848, allocations: 37.7 kB / 0.5825 GB, free: 4.094 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000336/0.7852, allocations: 379.6 kB / 0.5829 GB, free: 3.715 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003054/0.7855, allocations: 244.6 kB / 0.5831 GB, free: 3.473 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.249e-05/0.7856, allocations: 12 kB / 0.5831 GB, free: 3.461 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001921/0.7858, allocations: 374.8 kB / 0.5835 GB, free: 3.086 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001058/0.7868, allocations: 0.6187 MB / 0.5841 GB, free: 2.465 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001154/0.788, allocations: 0.7444 MB / 0.5848 GB, free: 1.676 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00116/0.7892, allocations: 0.6629 MB / 0.5855 GB, free: 1.012 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.082e-06/0.7892, allocations: 0 / 0.5855 GB, free: 1.012 MB / 462.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.004944/0.7941, allocations: 2.234 MB / 0.5877 GB, free: 14.77 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006066/0.7948, allocations: 0.9626 MB / 0.5886 GB, free: 13.73 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.995e-05/0.7948, allocations: 7.922 kB / 0.5886 GB, free: 13.72 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00429/0.7991, allocations: 1.726 MB / 0.5903 GB, free: 11.99 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004976/0.7996, allocations: 95.81 kB / 0.5904 GB, free: 11.89 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004276/0.8039, allocations: 2.392 MB / 0.5927 GB, free: 9.477 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00138/0.8053, allocations: 135.2 kB / 0.5929 GB, free: 9.344 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001949/0.8055, allocations: 87.91 kB / 0.5929 GB, free: 9.258 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/0.8056, allocations: 4 kB / 0.5929 GB, free: 9.254 MB / 478.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004383/0.81, allocations: 2.148 MB / 0.595 GB, free: 7.102 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.846e-06/0.81, allocations: 0 / 0.595 GB, free: 7.102 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004051/0.814, allocations: 1.73 MB / 0.5967 GB, free: 5.367 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004462/0.8145, allocations: 91.83 kB / 0.5968 GB, free: 5.277 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00425/0.8188, allocations: 2.381 MB / 0.5991 GB, free: 2.871 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0012/0.82, allocations: 127.3 kB / 0.5993 GB, free: 2.746 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000174/0.8202, allocations: 95.84 kB / 0.5994 GB, free: 2.652 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (hex.fluidState[5].phase,hex.fluidState[4].phase,hex.fluidState[3].phase,hex.fluidState[2].phase,hex.fluidState[1].phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {5 37} Notification: Performance of prepare postOptimizeDAE: time 0.0007945/0.821, allocations: 360.9 kB / 0.5997 GB, free: 2.289 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001882/0.8212, allocations: 67.25 kB / 0.5998 GB, free: 2.223 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01193/0.8331, allocations: 10.17 MB / 0.6097 GB, free: 8.047 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.082e-05/0.8332, allocations: 19.97 kB / 0.6097 GB, free: 8.027 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.495e-05/0.8332, allocations: 5.25 kB / 0.6097 GB, free: 8.023 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.805e-05/0.8333, allocations: 3.984 kB / 0.6097 GB, free: 8.02 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005422/0.8387, allocations: 4.726 MB / 0.6143 GB, free: 2.98 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.085e-05/0.8387, allocations: 0 / 0.6143 GB, free: 2.98 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001015/0.8398, allocations: 147.8 kB / 0.6145 GB, free: 2.836 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001778/0.8416, allocations: 418.6 kB / 0.6149 GB, free: 2.422 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000154/0.8417, allocations: 27.97 kB / 0.6149 GB, free: 2.395 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005675/0.8474, allocations: 4.276 MB / 0.6191 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.031e-06/0.8475, allocations: 4 kB / 0.6191 GB, free: 13.85 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004638/0.8521, allocations: 2.566 MB / 0.6216 GB, free: 11.26 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006678/0.8528, allocations: 259.6 kB / 0.6218 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000135/0.853, allocations: 23.98 kB / 0.6219 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007268/0.8537, allocations: 79.78 kB / 0.6219 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002082/0.8539, allocations: 56.56 kB / 0.622 GB, free: 10.83 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.56e-05/0.854, allocations: 23.98 kB / 0.622 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0004971/0.8545, allocations: 342.8 kB / 0.6223 GB, free: 10.47 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.445e-06/0.8545, allocations: 0 / 0.6223 GB, free: 10.47 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005852/0.8604, allocations: 1.299 MB / 0.6236 GB, free: 9.168 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (hex.p,hex.htilde[1],hex.htilde[2],hex.htilde[3],hex.htilde[4]) * Number of discrete variables: 10 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,76.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01144/0.8718, allocations: 3.999 MB / 0.6275 GB, free: 5.141 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.005596/0.8775, allocations: 2.533 MB / 0.63 GB, free: 2.609 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.903e-06/0.8775, allocations: 0 / 0.63 GB, free: 2.609 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001982/0.8795, allocations: 1.084 MB / 0.631 GB, free: 1.5 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001774/0.8813, allocations: 308.9 kB / 0.6313 GB, free: 1.207 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2681/1.149, allocations: 9.135 MB / 0.6403 GB, free: 165.7 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007141/1.15, allocations: 1.14 MB / 0.6414 GB, free: 165 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001081/1.151, allocations: 382.5 kB / 0.6417 GB, free: 165 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007419/1.152, allocations: 368.3 kB / 0.6421 GB, free: 165 MB / 0.4981 GB Notification: Performance of SimCode: time 9.31e-07/1.152, allocations: 0 / 0.6421 GB, free: 165 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1696/1.322, allocations: 75.44 MB / 0.7158 GB, free: 111 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002705/1.322, allocations: 238.8 kB / 0.716 GB, free: 110.8 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.329/7.651, allocations: 4 kB / 0.716 GB, free: 110.8 MB / 0.4981 GB (rm -f ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_D.pipe ; mkfifo ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_D.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_D.pipe >> ../files/ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_D.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFV_D_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFV_D.fmu > ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_D.pipe 2>&1) Environment - environmentSimulation: