Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestCoolingTowerStatic.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.TestCoolingTowerStatic,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestCoolingTowerStatic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestCoolingTowerStatic,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestCoolingTowerStatic",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.001052/0.001053, allocations: 107.5 kB / 16.92 MB, free: 6.145 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.001088/0.001088, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.255/1.255, allocations: 205.1 MB / 223.7 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2699/0.2699, allocations: 48.85 MB / 319.9 MB, free: 11.07 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.001438/0.001438, allocations: 68.53 kB / 390.2 MB, free: 48.81 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08263/0.08408, allocations: 59.16 MB / 449.3 MB, free: 9.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestCoolingTowerStatic): time 0.3519/0.436, allocations: 160.8 MB / 0.5958 GB, free: 11 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01169/0.4477, allocations: 9.925 MB / 0.6055 GB, free: 4.484 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003567/0.4482, allocations: 2.75 kB / 0.6055 GB, free: 4.484 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003644/0.4486, allocations: 97.48 kB / 0.6056 GB, free: 4.418 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004398/0.453, allocations: 2.102 MB / 0.6077 GB, free: 3.176 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00599/0.459, allocations: 2.578 MB / 0.6102 GB, free: 1.355 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001617/0.4606, allocations: 2.009 MB / 0.6121 GB, free: 172 kB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005285/0.4611, allocations: 0.5381 MB / 0.6127 GB, free: 15.79 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005112/0.4617, allocations: 0.5886 MB / 0.6132 GB, free: 15.5 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002566/0.4642, allocations: 1.466 MB / 0.6147 GB, free: 14.61 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001523/0.4644, allocations: 100.7 kB / 0.6148 GB, free: 14.61 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009648/0.4741, allocations: 5.802 MB / 0.6204 GB, free: 10.76 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006206/0.4747, allocations: 0.565 MB / 0.621 GB, free: 10.2 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008457/0.4756, allocations: 0.6303 MB / 0.6216 GB, free: 9.562 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006329/0.4819, allocations: 4.369 MB / 0.6259 GB, free: 5.184 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.4819, allocations: 0 / 0.6259 GB, free: 5.184 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.4819, allocations: 4 kB / 0.6259 GB, free: 5.18 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.179e-05/0.482, allocations: 0 / 0.6259 GB, free: 5.18 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 243 * Number of variables: 243 Notification: Performance of Generate backend data structure: time 0.004063/0.486, allocations: 1.833 MB / 0.6277 GB, free: 3.293 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.4861, allocations: 11.89 kB / 0.6277 GB, free: 3.281 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000159/0.4862, allocations: 156.2 kB / 0.6278 GB, free: 3.121 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002217/0.4885, allocations: 283.5 kB / 0.6281 GB, free: 2.844 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000775/0.4892, allocations: 0.6005 MB / 0.6287 GB, free: 2.207 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.112e-05/0.4893, allocations: 82.31 kB / 0.6288 GB, free: 2.129 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001423/0.4895, allocations: 88.38 kB / 0.6288 GB, free: 2.043 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002903/0.4924, allocations: 1.659 MB / 0.6305 GB, free: 336 kB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.243e-05/0.4924, allocations: 3.938 kB / 0.6305 GB, free: 332 kB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001047/0.4926, allocations: 47.94 kB / 0.6305 GB, free: 284 kB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.849e-05/0.4926, allocations: 24 kB / 0.6305 GB, free: 260 kB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003075/0.4957, allocations: 1.686 MB / 0.6322 GB, free: 14.57 MB / 462.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.005851/0.5015, allocations: 5.612 MB / 0.6377 GB, free: 8.594 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003417/0.5049, allocations: 2.038 MB / 0.6396 GB, free: 6.555 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001278/0.5062, allocations: 0.9554 MB / 0.6406 GB, free: 5.598 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04144/0.5477, allocations: 20.06 MB / 0.6602 GB, free: 15.33 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.477e-05/0.5478, allocations: 56.5 kB / 0.6602 GB, free: 15.27 MB / 494.1 MB Notification: Performance of pre-optimization done (n=180): time 3.937e-06/0.5478, allocations: 0 / 0.6602 GB, free: 15.27 MB / 494.1 MB Notification: Performance of matching and sorting (n=180): time 0.0625/0.6103, allocations: 14.67 MB / 0.6745 GB, free: 0.5547 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.706e-05/0.6104, allocations: 73.39 kB / 0.6746 GB, free: 480 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005543/0.6109, allocations: 441.9 kB / 0.675 GB, free: 32 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001155/0.6111, allocations: 57.7 kB / 0.6751 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002596/0.6113, allocations: 269.9 kB / 0.6753 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005658/0.6119, allocations: 0.6122 MB / 0.6759 GB, free: 15.08 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004223/0.6123, allocations: 291.5 kB / 0.6762 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001161/0.6125, allocations: 337.9 kB / 0.6765 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001075/0.6135, allocations: 0.7378 MB / 0.6773 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001283/0.6148, allocations: 0.9587 MB / 0.6782 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002589/0.6174, allocations: 1.878 MB / 0.68 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/0.6175, allocations: 0 / 0.68 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004217/0.6217, allocations: 2.749 MB / 0.6827 GB, free: 8 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.6217, allocations: 4.531 kB / 0.6827 GB, free: 7.996 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.39e-05/0.6217, allocations: 14.61 kB / 0.6827 GB, free: 7.984 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009764/0.6315, allocations: 2.257 MB / 0.6849 GB, free: 5.727 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00065/0.6322, allocations: 163.8 kB / 0.6851 GB, free: 5.566 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005187/0.6374, allocations: 3.529 MB / 0.6885 GB, free: 2.012 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008315/0.6382, allocations: 142.5 kB / 0.6887 GB, free: 1.871 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001351/0.6383, allocations: 79.89 kB / 0.6888 GB, free: 1.793 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(36,100)} Notification: Performance of prepare postOptimizeDAE: time 0.0004587/0.6388, allocations: 329.5 kB / 0.6891 GB, free: 1.461 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002073/0.639, allocations: 98.88 kB / 0.6892 GB, free: 1.363 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01089/0.6499, allocations: 9.385 MB / 0.6983 GB, free: 7.875 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.936e-05/0.65, allocations: 111.8 kB / 0.6984 GB, free: 7.766 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.65, allocations: 0 / 0.6984 GB, free: 7.766 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.227e-05/0.6501, allocations: 11.95 kB / 0.6985 GB, free: 7.754 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01141/0.6615, allocations: 10.78 MB / 0.709 GB, free: 12.84 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.114e-05/0.6615, allocations: 0 / 0.709 GB, free: 12.84 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005117/0.662, allocations: 111.9 kB / 0.7091 GB, free: 12.73 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01105/0.6731, allocations: 4.876 MB / 0.7138 GB, free: 7.832 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001527/0.6733, allocations: 55.97 kB / 0.7139 GB, free: 7.777 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008773/0.682, allocations: 7.874 MB / 0.7216 GB, free: 15.86 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.6821, allocations: 0 / 0.7216 GB, free: 15.86 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00845/0.6905, allocations: 7.538 MB / 0.729 GB, free: 8.227 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008521/0.6914, allocations: 0.6098 MB / 0.7295 GB, free: 7.594 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002283/0.6917, allocations: 59.73 kB / 0.7296 GB, free: 7.535 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008719/0.6925, allocations: 75.88 kB / 0.7297 GB, free: 7.461 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002541/0.6928, allocations: 129.8 kB / 0.7298 GB, free: 7.332 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001305/0.6929, allocations: 71.97 kB / 0.7299 GB, free: 7.262 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0004562/0.6934, allocations: 414.8 kB / 0.7303 GB, free: 6.855 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.61e-07/0.6934, allocations: 0 / 0.7303 GB, free: 6.855 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.003005/0.6964, allocations: 1.191 MB / 0.7314 GB, free: 5.664 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 37 ($cse8.region3boundary,$cse10.phase,$cse10.region,$cse14.region3boundary,$cse16.region3boundary,$cse18.phase,$cse18.region,$cse22.region3boundary,$cse24.region3boundary,$cse26.phase,$cse26.region,$cse30.region3boundary,$cse32.region3boundary,$cse34.phase,$cse34.region,$cse38.region3boundary,$cse40.region3boundary,$cse42.phase,$cse42.region,$cse46.region3boundary,$cse48.region3boundary,$cse50.phase,$cse50.region,$cse54.region3boundary,$cse56.region3boundary,$cse58.phase,$cse58.region,$cse62.region3boundary,$cse64.region3boundary,$cse66.phase,$cse66.region,$cse70.region3boundary,$cse72.region3boundary,$cse74.phase,$cse74.region,$cse77.region3boundary,$cse79.region3boundary) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 19 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(36,147)} Notification: Performance of Backend phase and start with SimCode phase: time 0.1745/0.8709, allocations: 7.448 MB / 0.7387 GB, free: 223.9 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009747/0.8807, allocations: 4.201 MB / 0.7428 GB, free: 223.7 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.187e-06/0.8807, allocations: 2.625 kB / 0.7428 GB, free: 223.7 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004822/0.8855, allocations: 2.741 MB / 0.7455 GB, free: 223.3 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003682/0.8893, allocations: 0.7534 MB / 0.7462 GB, free: 223.1 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02223/0.9115, allocations: 15.77 MB / 0.7616 GB, free: 216 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007393/0.9123, allocations: 1.585 MB / 0.7632 GB, free: 215.2 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0009011/0.9132, allocations: 387.7 kB / 0.7635 GB, free: 215.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005079/0.9137, allocations: 0.7152 MB / 0.7642 GB, free: 214.4 MB / 0.545 GB Notification: Performance of SimCode: time 1.122e-06/0.9137, allocations: 0 / 0.7642 GB, free: 214.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.107/1.021, allocations: 91.74 MB / 0.8538 GB, free: 125 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.31/14.33, allocations: 3.906 kB / 0.8538 GB, free: 125 MB / 0.545 GB (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestCoolingTowerStatic.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestCoolingTowerStatic.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestCoolingTowerStatic.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestCoolingTowerStatic.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.WaterComponents.TestCoolingTowerStatic_res.csv --start-time -50 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 ThermoPower_ThermoPower_Test_WaterComponents_TestCoolingTowerStatic.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestCoolingTowerStatic.pipe 2>&1)