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.0008079/0.000808, allocations: 94.06 kB / 16.65 MB, free: 6.59 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.0008769/0.0008769, allocations: 181.3 kB / 17.56 MB, free: 6.203 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.147/1.147, allocations: 205.4 MB / 223.8 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2397/0.2397, allocations: 48.79 MB / 320.8 MB, free: 11.18 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.0004378/0.0004378, allocations: 14.41 kB / 391.9 MB, free: 49.95 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07761/0.07806, allocations: 60.27 MB / 452.2 MB, free: 9.102 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.WaterPumps): time 0.06645/0.1445, allocations: 82.09 MB / 0.5217 GB, free: 6.746 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1984/0.3429, allocations: 11.82 MB / 0.5333 GB, free: 6.188 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006115/0.3436, allocations: 34 kB / 0.5333 GB, free: 6.188 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008762/0.3445, allocations: 317.5 kB / 0.5336 GB, free: 6.188 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001507/0.346, allocations: 0.6604 MB / 0.5343 GB, free: 6.18 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01155/0.3576, allocations: 4.52 MB / 0.5387 GB, free: 6.125 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002371/0.3599, allocations: 2.205 MB / 0.5408 GB, free: 6.125 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005906/0.3605, allocations: 483.6 kB / 0.5413 GB, free: 6.07 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002022/0.3626, allocations: 1.205 MB / 0.5425 GB, free: 6.047 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008474/0.3634, allocations: 0.733 MB / 0.5432 GB, free: 6.043 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.466e-05/0.3635, allocations: 33.41 kB / 0.5432 GB, free: 6.043 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01106/0.3746, allocations: 6.437 MB / 0.5495 GB, free: 5.992 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002642/0.3749, allocations: 142 kB / 0.5496 GB, free: 5.992 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008826/0.3758, allocations: 455 kB / 0.5501 GB, free: 5.961 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009099/0.3849, allocations: 4.344 MB / 0.5543 GB, free: 5.773 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.3849, allocations: 0 / 0.5543 GB, free: 5.773 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3849, allocations: 0 / 0.5543 GB, free: 5.773 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.863e-05/0.3849, allocations: 0 / 0.5543 GB, free: 5.773 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.00424/0.3892, allocations: 1.49 MB / 0.5558 GB, free: 4.805 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.4e-05/0.3892, allocations: 9.719 kB / 0.5558 GB, free: 4.805 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001209/0.3894, allocations: 114.2 kB / 0.5559 GB, free: 4.75 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003456/0.3897, allocations: 126.2 kB / 0.556 GB, free: 4.691 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005249/0.3902, allocations: 0.5287 MB / 0.5565 GB, free: 4.32 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001083/0.3904, allocations: 142.5 kB / 0.5567 GB, free: 4.219 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.862e-05/0.3905, allocations: 73.28 kB / 0.5567 GB, free: 4.215 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001273/0.3917, allocations: 0.7867 MB / 0.5575 GB, free: 3.934 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.583e-05/0.3918, allocations: 8.781 kB / 0.5575 GB, free: 3.934 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.672e-05/0.3918, allocations: 24.94 kB / 0.5575 GB, free: 3.934 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.377e-05/0.3918, allocations: 17.81 kB / 0.5576 GB, free: 3.934 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001166/0.393, allocations: 0.597 MB / 0.5581 GB, free: 3.836 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.002632/0.3957, allocations: 3.66 MB / 0.5617 GB, free: 0.7773 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001129/0.3968, allocations: 0.5341 MB / 0.5622 GB, free: 0.668 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003672/0.3972, allocations: 221.2 kB / 0.5624 GB, free: 0.6289 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05691/0.4541, allocations: 32.43 MB / 0.5941 GB, free: 7.109 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.706e-05/0.4542, allocations: 40 kB / 0.5941 GB, free: 7.066 MB / 446.1 MB Notification: Performance of pre-optimization done (n=53): time 2.134e-06/0.4542, allocations: 0 / 0.5941 GB, free: 7.066 MB / 446.1 MB Notification: Performance of matching and sorting (n=53): time 0.004732/0.4589, allocations: 1.492 MB / 0.5956 GB, free: 5.723 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.899e-05/0.459, allocations: 55.84 kB / 0.5957 GB, free: 5.656 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005721/0.4595, allocations: 0.5771 MB / 0.5962 GB, free: 5.203 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.047e-05/0.4596, allocations: 37.45 kB / 0.5963 GB, free: 5.168 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001999/0.4598, allocations: 355.3 kB / 0.5966 GB, free: 4.945 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001296/0.4599, allocations: 179.9 kB / 0.5968 GB, free: 4.793 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.396e-05/0.46, allocations: 59.06 kB / 0.5968 GB, free: 4.75 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.4602, allocations: 380 kB / 0.5972 GB, free: 4.398 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004005/0.4606, allocations: 182.7 kB / 0.5974 GB, free: 4.273 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004309/0.461, allocations: 286.8 kB / 0.5976 GB, free: 4.012 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008136/0.4618, allocations: 485.9 kB / 0.5981 GB, free: 3.645 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.4618, allocations: 4 kB / 0.5981 GB, free: 3.641 MB / 446.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001768/0.4636, allocations: 0.7888 MB / 0.5989 GB, free: 3.031 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.859e-05/0.4637, allocations: 176.8 kB / 0.599 GB, free: 2.828 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.4637, allocations: 8 kB / 0.5991 GB, free: 2.82 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001243/0.465, allocations: 302.4 kB / 0.5993 GB, free: 2.566 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003936/0.4654, allocations: 109.2 kB / 0.5994 GB, free: 2.473 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001477/0.4669, allocations: 1.883 MB / 0.6013 GB, free: 0.6484 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000586/0.4675, allocations: 108.6 kB / 0.6014 GB, free: 0.5508 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.898e-05/0.4675, allocations: 27.55 kB / 0.6014 GB, free: 0.5273 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.823e-06/0.4675, allocations: 4 kB / 0.6014 GB, free: 0.5234 MB / 446.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001338/0.4689, allocations: 0.6339 MB / 0.602 GB, free: 64 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.4689, allocations: 3.938 kB / 0.602 GB, free: 60 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004756/0.4694, allocations: 175.5 kB / 0.6022 GB, free: 15.92 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004071/0.4698, allocations: 115.5 kB / 0.6023 GB, free: 15.81 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004543/0.4743, allocations: 4.929 MB / 0.6071 GB, free: 10.98 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005755/0.4749, allocations: 108.5 kB / 0.6072 GB, free: 10.89 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.089e-05/0.475, allocations: 24.61 kB / 0.6073 GB, free: 10.87 MB / 462.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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,7), (2,7), (2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003133/0.4753, allocations: 263.9 kB / 0.6075 GB, free: 10.64 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001201/0.4754, allocations: 76.8 kB / 0.6076 GB, free: 10.57 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002279/0.4777, allocations: 1.538 MB / 0.6091 GB, free: 9.578 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.668e-05/0.4778, allocations: 20.05 kB / 0.6091 GB, free: 9.562 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/0.4778, allocations: 0 / 0.6091 GB, free: 9.562 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/0.4778, allocations: 3.984 kB / 0.6091 GB, free: 9.559 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009234/0.4787, allocations: 0.8142 MB / 0.6099 GB, free: 8.934 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/0.4787, allocations: 0 / 0.6099 GB, free: 8.934 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003521/0.4791, allocations: 82.73 kB / 0.61 GB, free: 8.859 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001587/0.4807, allocations: 1.039 MB / 0.611 GB, free: 7.957 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.826e-05/0.4807, allocations: 15.8 kB / 0.611 GB, free: 7.949 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001979/0.4827, allocations: 2.517 MB / 0.6135 GB, free: 5.766 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.4827, allocations: 8.172 kB / 0.6135 GB, free: 5.758 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002516/0.4852, allocations: 1.868 MB / 0.6153 GB, free: 4.516 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002653/0.4855, allocations: 209.3 kB / 0.6155 GB, free: 4.309 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.562e-05/0.4856, allocations: 14.5 kB / 0.6155 GB, free: 4.305 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004429/0.4861, allocations: 60.67 kB / 0.6156 GB, free: 4.25 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.781e-05/0.4862, allocations: 38.38 kB / 0.6156 GB, free: 4.219 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.307e-05/0.4862, allocations: 25.67 kB / 0.6156 GB, free: 4.199 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0003847/0.4866, allocations: 391.4 kB / 0.616 GB, free: 3.906 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4866, allocations: 4 kB / 0.616 GB, free: 3.902 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003797/0.4904, allocations: 1.162 MB / 0.6171 GB, free: 2.797 MB / 462.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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,8), (2,8), (2,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007786/0.4982, allocations: 2.995 MB / 0.6201 GB, free: 356 kB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002385/0.5006, allocations: 1.296 MB / 0.6213 GB, free: 15.27 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.5006, allocations: 0 / 0.6213 GB, free: 15.27 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008835/0.5015, allocations: 472.4 kB / 0.6218 GB, free: 14.95 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001823/0.5034, allocations: 351.9 kB / 0.6221 GB, free: 14.67 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01096/0.5143, allocations: 6.906 MB / 0.6289 GB, free: 8.219 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004877/0.5148, allocations: 0.9829 MB / 0.6298 GB, free: 7.211 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0005686/0.5154, allocations: 200.5 kB / 0.63 GB, free: 7.016 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003326/0.5158, allocations: 311.3 kB / 0.6303 GB, free: 6.711 MB / 478.1 MB Notification: Performance of SimCode: time 5.71e-07/0.5158, allocations: 0 / 0.6303 GB, free: 6.711 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07311/0.5889, allocations: 50.6 MB / 0.6797 GB, free: 4.145 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002134/0.5891, allocations: 220.2 kB / 0.6799 GB, free: 3.887 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.73/4.32, allocations: 0 / 0.6799 GB, free: 3.887 MB / 0.5137 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/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)