Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_E.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_E,fileNamePrefix="ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFEM_E",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_E,fileNamePrefix="ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFEM_E",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001215/0.001214, allocations: 179.9 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.897/1.897, allocations: 205.4 MB / 222.5 MB, free: 9.129 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008807/0.0008807, allocations: 92.14 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.4679/0.4679, allocations: 48.78 MB / 367.9 MB, free: 47.44 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003836/0.0003838, allocations: 8 kB / 438.7 MB, free: 10.89 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1449/0.1453, allocations: 60.24 MB / 499 MB, free: 14.5 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.171/7.316, allocations: 2.943 GB / 3.43 GB, free: 79.58 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002866/7.316, allocations: 78.52 kB / 3.431 GB, free: 79.54 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.596/9.912, allocations: 0.6614 GB / 4.092 GB, free: 21.16 MB / 0.5261 GB Notification: Performance of FrontEnd: time 4.499e-06/9.912, allocations: 4 kB / 4.092 GB, free: 21.16 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0007057/9.913, allocations: 188 kB / 4.092 GB, free: 20.97 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2772 * Number of variables: 2772 Notification: Performance of Generate backend data structure: time 0.06688/9.98, allocations: 19.62 MB / 4.111 GB, free: 1.273 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.677e-05/9.98, allocations: 8.031 kB / 4.111 GB, free: 1.266 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01082/9.991, allocations: 1.501 MB / 4.113 GB, free: 15.75 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0145/10.01, allocations: 1.576 MB / 4.114 GB, free: 14.17 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02374/10.03, allocations: 5.755 MB / 4.12 GB, free: 8.383 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00141/10.03, allocations: 0.7864 MB / 4.121 GB, free: 7.594 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009286/10.04, allocations: 1.035 MB / 4.122 GB, free: 6.559 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5227/10.56, allocations: 24.21 MB / 4.145 GB, free: 38.27 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006443/10.56, allocations: 4.75 kB / 4.145 GB, free: 38.27 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008472/10.57, allocations: 439.3 kB / 4.146 GB, free: 38.27 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004792/10.57, allocations: 411.3 kB / 4.146 GB, free: 38.25 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1022/10.67, allocations: 28.24 MB / 4.174 GB, free: 38.16 MB / 0.5417 GB 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.1189/10.79, allocations: 48.89 MB / 4.221 GB, free: 17.21 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02383/10.82, allocations: 9.529 MB / 4.231 GB, free: 17.11 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1179/10.94, allocations: 63.83 MB / 4.293 GB, free: 9.758 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001249/10.94, allocations: 85.91 kB / 4.293 GB, free: 9.715 MB / 0.573 GB Notification: Performance of pre-optimization done (n=501): time 7.124e-06/10.94, allocations: 4 kB / 4.293 GB, free: 9.711 MB / 0.573 GB Notification: Performance of matching and sorting (n=501): time 0.2716/11.21, allocations: 54.7 MB / 4.347 GB, free: 9.5 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.838e-05/11.21, allocations: 106.2 kB / 4.347 GB, free: 9.387 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01451/11.22, allocations: 7.012 MB / 4.354 GB, free: 3.488 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.00407/11.23, allocations: 117.7 kB / 4.354 GB, free: 3.367 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.4269/11.65, allocations: 6.222 MB / 4.36 GB, free: 81.72 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.006037/11.66, allocations: 2.021 MB / 4.362 GB, free: 80.7 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004806/11.66, allocations: 340.7 kB / 4.362 GB, free: 80.7 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.001811/11.67, allocations: 1.057 MB / 4.363 GB, free: 80.36 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01864/11.68, allocations: 7.709 MB / 4.371 GB, free: 80.32 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02993/11.71, allocations: 17.8 MB / 4.388 GB, free: 67.35 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02265/11.74, allocations: 10.93 MB / 4.399 GB, free: 67.24 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0009194/11.74, allocations: 102 kB / 4.399 GB, free: 67.24 MB / 0.5886 GB Notification: Performance of matching and sorting (n=2191) (initialization): time 0.08662/11.82, allocations: 30.6 MB / 4.429 GB, free: 65.12 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0476/11.87, allocations: 140.5 MB / 4.566 GB, free: 14.4 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002268/11.87, allocations: 357.2 kB / 4.566 GB, free: 14.4 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.09996/11.97, allocations: 25.05 MB / 4.591 GB, free: 13.38 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01219/11.99, allocations: 3.361 MB / 4.594 GB, free: 13.06 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06406/12.05, allocations: 19.84 MB / 4.613 GB, free: 10.3 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02385/12.08, allocations: 2.616 MB / 4.616 GB, free: 8.836 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.009045/12.08, allocations: 1.276 MB / 4.617 GB, free: 8.633 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 3.256e-05/12.08, allocations: 3.969 kB / 4.617 GB, free: 8.633 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.5803/12.66, allocations: 29.76 MB / 4.646 GB, free: 147.2 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001897/12.67, allocations: 359.3 kB / 4.647 GB, free: 147.2 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.095/12.76, allocations: 25.05 MB / 4.671 GB, free: 147.1 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01242/12.77, allocations: 3.327 MB / 4.674 GB, free: 147.1 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05567/12.83, allocations: 19.84 MB / 4.694 GB, free: 146.5 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02117/12.85, allocations: 1.966 MB / 4.696 GB, free: 146.5 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.007454/12.86, allocations: 1.262 MB / 4.697 GB, free: 146.5 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1613 * Number of states: 0 () * Number of discrete variables: 28 (hexB.fluidState[12].phase,hexB.fluidState[11].phase,hexB.fluidState[10].phase,hexB.fluidState[9].phase,hexB.fluidState[8].phase,hexB.fluidState[7].phase,hexB.fluidState[6].phase,hexB.fluidState[5].phase,hexB.fluidState[4].phase,hexB.fluidState[3].phase,hexB.fluidState[2].phase,hexB.fluidState[1].phase,hexA.fluidState[12].phase,hexA.fluidState[11].phase,hexA.fluidState[10].phase,hexA.fluidState[9].phase,hexA.fluidState[8].phase,hexA.fluidState[7].phase,hexA.fluidState[6].phase,hexA.fluidState[5].phase,hexA.fluidState[4].phase,hexA.fluidState[3].phase,hexA.fluidState[2].phase,hexA.fluidState[1].phase,SensT_B_out.fluidState.phase,SensT_A_out.fluidState.phase,SensT_B_in.fluidState.phase,SensT_A_in.fluidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1804): * Single equations (assignments): 1803 * 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 {26 362} Notification: Performance of prepare postOptimizeDAE: time 0.01746/12.88, allocations: 3.527 MB / 4.7 GB, free: 146.1 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004703/12.88, allocations: 0.6983 MB / 4.701 GB, free: 145.9 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1409/13.02, allocations: 63.93 MB / 4.763 GB, free: 138 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001957/13.02, allocations: 138.7 kB / 4.763 GB, free: 138 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.579e-05/13.02, allocations: 0 / 4.763 GB, free: 138 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002787/13.02, allocations: 31.95 kB / 4.764 GB, free: 138 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1604/13.18, allocations: 87.43 MB / 4.849 GB, free: 75.86 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.041e-05/13.18, allocations: 4 kB / 4.849 GB, free: 75.85 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005547/13.19, allocations: 0.7485 MB / 4.85 GB, free: 75.39 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.5541/13.74, allocations: 16.71 MB / 4.866 GB, free: 146.3 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00345/13.75, allocations: 245.4 kB / 4.866 GB, free: 146.3 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1421/13.89, allocations: 63.85 MB / 4.929 GB, free: 143.1 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.362e-06/13.89, allocations: 6.422 kB / 4.929 GB, free: 143.1 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.09589/13.98, allocations: 30.63 MB / 4.958 GB, free: 140.8 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00773/13.99, allocations: 1.778 MB / 4.96 GB, free: 139.9 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003867/14, allocations: 173.7 kB / 4.96 GB, free: 139.8 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01033/14.01, allocations: 0.5781 MB / 4.961 GB, free: 139.7 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005073/14.01, allocations: 496.1 kB / 4.961 GB, free: 139.6 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002273/14.01, allocations: 196.5 kB / 4.962 GB, free: 139.6 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.01022/14.02, allocations: 4.573 MB / 4.966 GB, free: 138.4 MB / 0.6823 GB Notification: Performance of sort global known variables: time 4.11e-07/14.02, allocations: 2.125 kB / 4.966 GB, free: 138.4 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.04756/14.07, allocations: 6.035 MB / 4.972 GB, free: 137.3 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 26 (hexA.p,hexA.h[1],hexA.h[2],hexA.h[3],hexA.h[4],hexA.h[5],hexA.h[6],hexA.h[7],hexA.h[8],hexA.h[9],hexA.h[10],hexA.h[11],hexA.h[12],hexB.p,hexB.h[1],hexB.h[2],hexB.h[3],hexB.h[4],hexB.h[5],hexB.h[6],hexB.h[7],hexB.h[8],hexB.h[9],hexB.h[10],hexB.h[11],hexB.h[12]) * Number of discrete variables: 56 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse55.phase,$cse55.region,$cse56.phase,$cse56.region,$cse57.phase,$cse57.region,$cse58.phase,$cse58.region,$cse59.phase,$cse59.region,$cse60.phase,$cse60.region,$cse61.phase,$cse61.region,$cse62.phase,$cse62.region,$cse63.phase,$cse63.region,$cse64.phase,$cse64.region,$cse65.phase,$cse65.region,$cse66.phase,$cse66.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (297): * Single equations (assignments): 267 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 28 * 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: 0 * Non-linear torn systems: 2 {13 126,13 126} Notification: Performance of Backend phase and start with SimCode phase: time 0.1163/14.19, allocations: 33.04 MB / 5.004 GB, free: 127.3 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.09063/14.28, allocations: 34.12 MB / 5.038 GB, free: 110.4 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.519e-05/14.28, allocations: 0 / 5.038 GB, free: 110.4 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.03156/14.31, allocations: 9.449 MB / 5.047 GB, free: 102.5 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01126/14.32, allocations: 1.328 MB / 5.048 GB, free: 101.5 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7488/15.07, allocations: 337.2 MB / 5.377 GB, free: 14.51 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008827/15.08, allocations: 5.064 MB / 5.382 GB, free: 13.61 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 0.0282/15.11, allocations: 10.57 MB / 5.393 GB, free: 13.22 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009995/15.12, allocations: 3.815 MB / 5.396 GB, free: 13.21 MB / 0.8073 GB Notification: Performance of SimCode: time 1.583e-06/15.12, allocations: 0 / 5.396 GB, free: 13.21 MB / 0.8073 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.429/16.55, allocations: 421.5 MB / 5.808 GB, free: 262.6 MB / 0.8073 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001701/16.55, allocations: 218 kB / 5.808 GB, free: 262.3 MB / 0.8073 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.47/31.01, allocations: 1.031 kB / 5.808 GB, free: 262.3 MB / 0.8073 GB (rm -f ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_E.pipe ; mkfifo ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_E.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_E.pipe >> ../files/ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_E.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFEM_E_fmu --startTime=0 --stopTime=900 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFEM_E.fmu > ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_E.pipe 2>&1)