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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001525/0.001525, allocations: 93.83 kB / 16.3 MB, free: 6.004 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.002264/0.002263, allocations: 184.9 kB / 17.2 MB, free: 5.91 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.304/2.304, allocations: 205.4 MB / 223.4 MB, free: 5.5 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.5725/0.5725, allocations: 48.78 MB / 320.4 MB, free: 3.867 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.0008869/0.0008871, allocations: 20 kB / 391.3 MB, free: 14.22 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.194/0.1949, allocations: 60.24 MB / 451.5 MB, free: 1.844 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.WaterPumps): time 0.4897/0.6847, allocations: 69.11 MB / 0.5084 GB, free: 4.059 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01896/0.7037, allocations: 9.848 MB / 0.518 GB, free: 12.26 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001591/0.7054, allocations: 33.97 kB / 0.518 GB, free: 12.24 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001588/0.707, allocations: 305.9 kB / 0.5183 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00309/0.7101, allocations: 0.6367 MB / 0.519 GB, free: 11.44 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02817/0.7383, allocations: 4.344 MB / 0.5232 GB, free: 8.098 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003404/0.7418, allocations: 1.061 MB / 0.5242 GB, free: 7.438 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001548/0.7434, allocations: 457.6 kB / 0.5247 GB, free: 7.137 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004732/0.7481, allocations: 1.928 MB / 0.5266 GB, free: 5.609 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001988/0.7502, allocations: 0.779 MB / 0.5273 GB, free: 4.828 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003451/0.7505, allocations: 36 kB / 0.5274 GB, free: 4.793 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01812/0.7687, allocations: 6.297 MB / 0.5335 GB, free: 14.49 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004571/0.7692, allocations: 139.4 kB / 0.5336 GB, free: 14.35 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007657/0.77, allocations: 193.3 kB / 0.5338 GB, free: 14.16 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009573/0.7796, allocations: 2.894 MB / 0.5366 GB, free: 11.26 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.835e-06/0.7797, allocations: 0 / 0.5366 GB, free: 11.26 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.666e-06/0.7797, allocations: 0 / 0.5366 GB, free: 11.26 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.277e-05/0.7798, allocations: 0 / 0.5366 GB, free: 11.26 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: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.008756/0.7885, allocations: 1.501 MB / 0.5381 GB, free: 9.715 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.896e-05/0.7886, allocations: 8.031 kB / 0.5381 GB, free: 9.707 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004099/0.7891, allocations: 114.5 kB / 0.5382 GB, free: 9.586 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001033/0.7901, allocations: 130.8 kB / 0.5384 GB, free: 9.457 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001839/0.792, allocations: 0.5062 MB / 0.5388 GB, free: 8.91 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000271/0.7923, allocations: 139.1 kB / 0.539 GB, free: 8.754 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002338/0.7925, allocations: 64 kB / 0.539 GB, free: 8.691 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002714/0.7953, allocations: 0.7834 MB / 0.5398 GB, free: 7.875 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.88e-05/0.7953, allocations: 3.938 kB / 0.5398 GB, free: 7.871 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001207/0.7954, allocations: 28 kB / 0.5398 GB, free: 7.844 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.155e-05/0.7955, allocations: 16 kB / 0.5399 GB, free: 7.828 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002598/0.7981, allocations: 0.5945 MB / 0.5404 GB, free: 7.234 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.006609/0.8047, allocations: 3.653 MB / 0.544 GB, free: 3.199 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002296/0.8071, allocations: 0.5368 MB / 0.5445 GB, free: 2.652 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07588/0.883, allocations: 32.43 MB / 0.5762 GB, free: 14.4 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.759e-05/0.8831, allocations: 39 kB / 0.5762 GB, free: 14.35 MB / 462.1 MB Notification: Performance of pre-optimization done (n=53): time 2.976e-06/0.8831, allocations: 3.938 kB / 0.5762 GB, free: 14.35 MB / 462.1 MB Notification: Performance of matching and sorting (n=53): time 0.005441/0.8885, allocations: 1.488 MB / 0.5777 GB, free: 12.79 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.163e-05/0.8886, allocations: 55.84 kB / 0.5777 GB, free: 12.72 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008069/0.8894, allocations: 0.5552 MB / 0.5783 GB, free: 12.16 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.02e-05/0.8895, allocations: 37.7 kB / 0.5783 GB, free: 12.11 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003101/0.8898, allocations: 356.4 kB / 0.5787 GB, free: 11.76 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002039/0.89, allocations: 181.3 kB / 0.5788 GB, free: 11.58 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.089e-05/0.8901, allocations: 12 kB / 0.5788 GB, free: 11.57 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001926/0.8903, allocations: 386.8 kB / 0.5792 GB, free: 11.18 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004349/0.8907, allocations: 165 kB / 0.5794 GB, free: 11.02 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004949/0.8912, allocations: 277.2 kB / 0.5796 GB, free: 10.71 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004559/0.8917, allocations: 198.1 kB / 0.5798 GB, free: 10.52 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.469e-06/0.8917, allocations: 3.938 kB / 0.5798 GB, free: 10.51 MB / 462.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002149/0.8939, allocations: 0.7501 MB / 0.5806 GB, free: 9.742 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007709/0.8947, allocations: 1.136 MB / 0.5817 GB, free: 8.52 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.343e-05/0.8947, allocations: 4 kB / 0.5817 GB, free: 8.516 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001473/0.8962, allocations: 294.2 kB / 0.582 GB, free: 8.219 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004763/0.8967, allocations: 97.39 kB / 0.582 GB, free: 8.125 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002188/0.8989, allocations: 1.899 MB / 0.5839 GB, free: 6.152 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008341/0.8997, allocations: 99.45 kB / 0.584 GB, free: 6.055 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.322e-05/0.8998, allocations: 31.98 kB / 0.584 GB, free: 6.023 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.348e-05/0.8998, allocations: 4 kB / 0.584 GB, free: 6.02 MB / 462.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001599/0.9014, allocations: 0.6281 MB / 0.5846 GB, free: 5.379 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.255e-06/0.9015, allocations: 8.312 kB / 0.5847 GB, free: 5.371 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000612/0.9021, allocations: 182.3 kB / 0.5848 GB, free: 5.184 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004771/0.9026, allocations: 107.9 kB / 0.5849 GB, free: 5.078 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006305/0.9089, allocations: 4.976 MB / 0.5898 GB, free: 15.72 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007714/0.9097, allocations: 99.33 kB / 0.5899 GB, free: 15.62 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.59e-05/0.9098, allocations: 26.25 kB / 0.5899 GB, free: 15.6 MB / 478.1 MB 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 () * Number of clocked 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 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0004226/0.9102, allocations: 257.1 kB / 0.5902 GB, free: 15.34 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001811/0.9104, allocations: 83.06 kB / 0.5902 GB, free: 15.25 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002586/0.913, allocations: 1.53 MB / 0.5917 GB, free: 13.7 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.725e-05/0.9131, allocations: 11.98 kB / 0.5917 GB, free: 13.69 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.9131, allocations: 1.562 kB / 0.5917 GB, free: 13.69 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.103e-06/0.9131, allocations: 0 / 0.5917 GB, free: 13.69 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001249/0.9143, allocations: 0.8192 MB / 0.5925 GB, free: 12.82 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.015e-05/0.9144, allocations: 0 / 0.5925 GB, free: 12.82 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004137/0.9148, allocations: 79.89 kB / 0.5926 GB, free: 12.74 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001773/0.9166, allocations: 1.029 MB / 0.5936 GB, free: 11.7 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.492e-05/0.9166, allocations: 19.94 kB / 0.5936 GB, free: 11.68 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002624/0.9193, allocations: 2.513 MB / 0.5961 GB, free: 9.094 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.9193, allocations: 3.938 kB / 0.5961 GB, free: 9.09 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003279/0.9226, allocations: 1.86 MB / 0.5979 GB, free: 7.207 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005081/0.9231, allocations: 207.8 kB / 0.5981 GB, free: 6.984 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001546/0.9233, allocations: 4 kB / 0.5981 GB, free: 6.98 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000577/0.9239, allocations: 69.64 kB / 0.5982 GB, free: 6.914 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001236/0.924, allocations: 44.5 kB / 0.5982 GB, free: 6.871 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.434e-05/0.924, allocations: 19.98 kB / 0.5982 GB, free: 6.852 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0005198/0.9246, allocations: 391 kB / 0.5986 GB, free: 6.473 MB / 478.1 MB Notification: Performance of sort global known variables: time 7.433e-06/0.9246, allocations: 0 / 0.5986 GB, free: 6.473 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004473/0.9291, allocations: 1.171 MB / 0.5998 GB, free: 5.301 MB / 478.1 MB 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 () * Number of clocked 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.009185/0.9383, allocations: 2.94 MB / 0.6026 GB, free: 2.324 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003087/0.9414, allocations: 1.28 MB / 0.6039 GB, free: 1.012 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.9414, allocations: 0 / 0.6039 GB, free: 1.012 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001122/0.9426, allocations: 469.5 kB / 0.6043 GB, free: 0.5547 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002119/0.9447, allocations: 352.4 kB / 0.6047 GB, free: 228 kB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01309/0.9578, allocations: 6.647 MB / 0.6112 GB, free: 9.461 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006716/0.9586, allocations: 1.002 MB / 0.6121 GB, free: 8.43 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0008272/0.9594, allocations: 203.7 kB / 0.6123 GB, free: 8.23 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004146/0.9598, allocations: 311.3 kB / 0.6126 GB, free: 7.926 MB / 494.1 MB Notification: Performance of SimCode: time 1.553e-06/0.9599, allocations: 0 / 0.6126 GB, free: 7.926 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3763/1.336, allocations: 50.7 MB / 0.6621 GB, free: 143.9 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003016/1.337, allocations: 214.3 kB / 0.6623 GB, free: 143.6 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.644/6.981, allocations: 0 / 0.6623 GB, free: 143.6 MB / 0.4981 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) Environment - environmentSimulation: