Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.WaterPumps.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.WaterComponents.WaterPumps,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_WaterPumps",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.WaterPumps,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_WaterPumps",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.002069/0.002069, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.081/2.081, allocations: 205.3 MB / 214.1 MB, free: 14.08 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001017/0.001016, allocations: 89.22 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.6371/0.6371, allocations: 48.77 MB / 358.8 MB, free: 53.18 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 3.548e-05/3.549e-05, allocations: 4 kB / 425.4 MB, free: 8.148 MB / 315.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1828/0.1829, allocations: 60.25 MB / 485.6 MB, free: 11.75 MB / 379.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.305/7.488, allocations: 2.888 GB / 3.362 GB, free: 146 MB / 0.5108 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003043/7.488, allocations: 77.03 kB / 3.362 GB, free: 146 MB / 0.5108 GB Notification: Performance of FrontEnd - DAE generated: time 1.776/9.264, allocations: 493.6 MB / 3.844 GB, free: 52.86 MB / 0.5108 GB Notification: Performance of FrontEnd: time 1.693e-06/9.264, allocations: 0 / 3.844 GB, free: 52.86 MB / 0.5108 GB Notification: Performance of Transformations before backend: time 6.065e-05/9.264, allocations: 31.16 kB / 3.844 GB, free: 52.86 MB / 0.5108 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.006455/9.271, allocations: 1.461 MB / 3.846 GB, free: 52.12 MB / 0.5108 GB Notification: Performance of prepare preOptimizeDAE: time 6.754e-05/9.271, allocations: 11.56 kB / 3.846 GB, free: 52.12 MB / 0.5108 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004901/9.271, allocations: 130.9 kB / 3.846 GB, free: 52.07 MB / 0.5108 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0022/9.274, allocations: 0.7577 MB / 3.847 GB, free: 51.77 MB / 0.5108 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001666/9.274, allocations: 122.7 kB / 3.847 GB, free: 51.67 MB / 0.5108 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00011/9.274, allocations: 48.42 kB / 3.847 GB, free: 51.66 MB / 0.5108 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009726/9.275, allocations: 470.3 kB / 3.847 GB, free: 51.66 MB / 0.5108 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001071/9.276, allocations: 0.7376 MB / 3.848 GB, free: 51.38 MB / 0.5108 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.806e-05/9.276, allocations: 3.75 kB / 3.848 GB, free: 51.38 MB / 0.5108 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.119e-05/9.276, allocations: 0 / 3.848 GB, free: 51.38 MB / 0.5108 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.767e-05/9.276, allocations: 21.34 kB / 3.848 GB, free: 51.38 MB / 0.5108 GB Warning: The model contains alias variables with conflicting start and/or 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.003284/9.279, allocations: 3.378 MB / 3.851 GB, free: 48.64 MB / 0.5108 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008521/9.28, allocations: 455.1 kB / 3.852 GB, free: 48.46 MB / 0.5108 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002452/9.28, allocations: 179.3 kB / 3.852 GB, free: 48.39 MB / 0.5108 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05668/9.337, allocations: 32.1 MB / 3.883 GB, free: 27.77 MB / 0.5108 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.726e-05/9.337, allocations: 40.88 kB / 3.883 GB, free: 27.73 MB / 0.5108 GB Notification: Performance of pre-optimization done (n=53): time 3.276e-06/9.337, allocations: 0 / 3.883 GB, free: 27.73 MB / 0.5108 GB Notification: Performance of matching and sorting (n=53): time 0.00219/9.339, allocations: 0.6269 MB / 3.884 GB, free: 27.49 MB / 0.5108 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.91e-05/9.34, allocations: 58.06 kB / 3.884 GB, free: 27.43 MB / 0.5108 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004384/9.34, allocations: 368.2 kB / 3.884 GB, free: 27.24 MB / 0.5108 GB Notification: Performance of collectPreVariables (initialization): time 3.719e-05/9.34, allocations: 25.7 kB / 3.884 GB, free: 27.21 MB / 0.5108 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002149/9.34, allocations: 374.7 kB / 3.885 GB, free: 26.92 MB / 0.5108 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001241/9.34, allocations: 181.2 kB / 3.885 GB, free: 26.77 MB / 0.5108 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.877e-05/9.34, allocations: 0 / 3.885 GB, free: 26.77 MB / 0.5108 GB Notification: Performance of setup shared object (initialization): time 0.0001094/9.341, allocations: 366.2 kB / 3.885 GB, free: 26.44 MB / 0.5108 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001968/9.341, allocations: 138.4 kB / 3.885 GB, free: 26.39 MB / 0.5108 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002562/9.341, allocations: 229.4 kB / 3.886 GB, free: 26.22 MB / 0.5108 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005339/9.342, allocations: 178.1 kB / 3.886 GB, free: 26.16 MB / 0.5108 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/9.342, allocations: 3.938 kB / 3.886 GB, free: 26.15 MB / 0.5108 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.00163/9.343, allocations: 0.6534 MB / 3.886 GB, free: 25.9 MB / 0.5108 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002816/9.343, allocations: 1.139 MB / 3.888 GB, free: 24.68 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/9.343, allocations: 3.156 kB / 3.888 GB, free: 24.68 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001234/9.345, allocations: 304.3 kB / 3.888 GB, free: 24.61 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004205/9.345, allocations: 105 kB / 3.888 GB, free: 24.59 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00175/9.347, allocations: 1.98 MB / 3.89 GB, free: 22.89 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007437/9.348, allocations: 91.36 kB / 3.89 GB, free: 22.86 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.776e-05/9.348, allocations: 43.53 kB / 3.89 GB, free: 22.85 MB / 0.5108 GB Notification: Performance of prepare postOptimizeDAE: time 1.342e-05/9.348, allocations: 11.5 kB / 3.89 GB, free: 22.84 MB / 0.5108 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001522/9.349, allocations: 0.5386 MB / 3.891 GB, free: 22.67 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/9.349, allocations: 3.906 kB / 3.891 GB, free: 22.67 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006062/9.35, allocations: 220.3 kB / 3.891 GB, free: 22.59 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004308/9.35, allocations: 109 kB / 3.891 GB, free: 22.59 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001049/9.351, allocations: 1.818 MB / 3.893 GB, free: 20.93 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006511/9.352, allocations: 83.84 kB / 3.893 GB, free: 20.9 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.783e-05/9.352, allocations: 37.42 kB / 3.893 GB, free: 20.89 MB / 0.5108 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: Pump2.dp:VARIABLE(unit = "Pa" ) "Outlet pressure minus inlet pressure" type: Real Pump2.w:VARIABLE(min = -100000.0 max = 100000.0 unit = "kg/s" ) "Mass flow rate (total)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: Pump3.w:VARIABLE(min = -100000.0 max = 100000.0 unit = "kg/s" ) "Mass flow rate (total)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: Pump1.w:VARIABLE(min = -100000.0 max = 100000.0 unit = "kg/s" ) "Mass flow rate (total)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 6 (Pump3.int_Np,Pump2.int_Np,Pump1.int_Np,Pump3.inletFluidState.phase,Pump2.inletFluidState.phase,Pump1.inletFluidState.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 41 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {3 6,3 6,3 6} Notification: Performance of prepare postOptimizeDAE: time 0.000305/9.353, allocations: 129.4 kB / 3.893 GB, free: 20.77 MB / 0.5108 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00103/9.354, allocations: 0.4949 MB / 3.893 GB, free: 20.55 MB / 0.5108 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.589e-05/9.354, allocations: 70.72 kB / 3.893 GB, free: 20.52 MB / 0.5108 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001806/9.355, allocations: 1.369 MB / 3.895 GB, free: 19.86 MB / 0.5108 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.755e-05/9.355, allocations: 11.7 kB / 3.895 GB, free: 19.86 MB / 0.5108 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/9.355, allocations: 0 / 3.895 GB, free: 19.86 MB / 0.5108 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.696e-06/9.356, allocations: 3.797 kB / 3.895 GB, free: 19.86 MB / 0.5108 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009659/9.356, allocations: 0.7022 MB / 3.896 GB, free: 19.46 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/9.356, allocations: 0 / 3.896 GB, free: 19.46 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003943/9.357, allocations: 73.56 kB / 3.896 GB, free: 19.46 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001651/9.359, allocations: 1.212 MB / 3.897 GB, free: 19.23 MB / 0.5108 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.844e-05/9.359, allocations: 11.8 kB / 3.897 GB, free: 19.23 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001816/9.36, allocations: 2.611 MB / 3.899 GB, free: 17.18 MB / 0.5108 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/9.36, allocations: 0 / 3.899 GB, free: 17.18 MB / 0.5108 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002048/9.363, allocations: 1.656 MB / 3.901 GB, free: 16.31 MB / 0.5108 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003784/9.363, allocations: 203.2 kB / 3.901 GB, free: 16.14 MB / 0.5108 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.999e-05/9.363, allocations: 3.75 kB / 3.901 GB, free: 16.14 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004893/9.363, allocations: 56.89 kB / 3.901 GB, free: 16.12 MB / 0.5108 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001377/9.364, allocations: 41.34 kB / 3.901 GB, free: 16.11 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.345e-05/9.364, allocations: 15.36 kB / 3.901 GB, free: 16.11 MB / 0.5108 GB Notification: Performance of sorting global known variables: time 0.000348/9.364, allocations: 277 kB / 3.902 GB, free: 15.96 MB / 0.5108 GB Notification: Performance of sort global known variables: time 3.71e-07/9.364, allocations: 4 kB / 3.902 GB, free: 15.96 MB / 0.5108 GB Notification: Performance of remove unused functions: time 0.005681/9.37, allocations: 1.145 MB / 3.903 GB, free: 15.72 MB / 0.5108 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (Pump1.h,Pump2.h,Pump3.h) * Number of discrete variables: 6 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 29 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 8,2 8,2 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.00952/9.379, allocations: 3.571 MB / 3.906 GB, free: 14.19 MB / 0.5108 GB Notification: Performance of simCode: created initialization part: time 0.002084/9.381, allocations: 0.8417 MB / 3.907 GB, free: 13.91 MB / 0.5108 GB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/9.381, allocations: 3.719 kB / 3.907 GB, free: 13.91 MB / 0.5108 GB Notification: Performance of simCode: created simulation system equations: time 0.0007503/9.382, allocations: 413 kB / 3.907 GB, free: 13.77 MB / 0.5108 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001593/9.384, allocations: 253.8 kB / 3.908 GB, free: 13.71 MB / 0.5108 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005927/9.39, allocations: 1.683 MB / 3.909 GB, free: 12.93 MB / 0.5108 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004227/9.39, allocations: 0.9976 MB / 3.91 GB, free: 12.21 MB / 0.5108 GB Notification: Performance of simCode: alias equations: time 0.0009477/9.391, allocations: 228.6 kB / 3.91 GB, free: 12.16 MB / 0.5108 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004271/9.392, allocations: 298.3 kB / 3.911 GB, free: 11.93 MB / 0.5108 GB Notification: Performance of SimCode: time 1.353e-06/9.392, allocations: 4 kB / 3.911 GB, free: 11.92 MB / 0.5108 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4957/9.887, allocations: 44.14 MB / 3.954 GB, free: 70.09 MB / 0.5265 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001852/9.887, allocations: 123.2 kB / 3.954 GB, free: 69.9 MB / 0.5265 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.982/13.87, allocations: 2.438 kB / 3.954 GB, free: 69.9 MB / 0.5265 GB (rm -f ThermoPower_ThermoPower.Test.WaterComponents.WaterPumps.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.WaterPumps.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.WaterPumps.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.WaterPumps.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_WaterComponents_WaterPumps_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_WaterComponents_WaterPumps.fmu > ThermoPower_ThermoPower.Test.WaterComponents.WaterPumps.pipe 2>&1)