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.001205/0.001205, allocations: 109.2 kB / 17.06 MB, free: 6.016 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.001176/0.001176, allocations: 188 kB / 18 MB, free: 5.102 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.437/1.437, allocations: 205.1 MB / 223.9 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2974/0.2974, allocations: 48.85 MB / 320.1 MB, free: 10.99 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.001619/0.00162, allocations: 79.88 kB / 450 MB, free: 9.043 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1199, allocations: 59.16 MB / 0.4973 GB, free: 13.76 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestCoolingTowerStatic): time 0.5922/0.7121, allocations: 160.8 MB / 0.6543 GB, free: 9.305 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01218/0.7243, allocations: 9.919 MB / 0.664 GB, free: 15.38 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004485/0.7248, allocations: 4 kB / 0.664 GB, free: 15.38 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.000524/0.7254, allocations: 103.3 kB / 0.6641 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.006383/0.7318, allocations: 2.095 MB / 0.6661 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.008051/0.7399, allocations: 2.592 MB / 0.6686 GB, free: 10.59 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.002245/0.7422, allocations: 2.009 MB / 0.6706 GB, free: 8.574 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006662/0.7429, allocations: 0.5271 MB / 0.6711 GB, free: 8.051 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007056/0.7436, allocations: 0.5965 MB / 0.6717 GB, free: 7.453 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003261/0.7468, allocations: 1.472 MB / 0.6731 GB, free: 5.969 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0002021/0.7471, allocations: 100 kB / 0.6732 GB, free: 5.871 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01173/0.7588, allocations: 5.943 MB / 0.679 GB, free: 15.92 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0007339/0.7596, allocations: 0.5534 MB / 0.6796 GB, free: 15.37 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.001049/0.7606, allocations: 0.642 MB / 0.6802 GB, free: 14.72 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0102/0.7708, allocations: 4.372 MB / 0.6845 GB, free: 10.34 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.7709, allocations: 4 kB / 0.6845 GB, free: 10.34 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.214e-06/0.7709, allocations: 0 / 0.6845 GB, free: 10.34 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 2.217e-05/0.7709, allocations: 0 / 0.6845 GB, free: 10.34 MB / 0.5294 GB 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.004828/0.7758, allocations: 1.876 MB / 0.6863 GB, free: 8.406 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.518e-05/0.7758, allocations: 19.83 kB / 0.6863 GB, free: 8.387 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001803/0.776, allocations: 152.2 kB / 0.6865 GB, free: 8.23 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002525/0.7785, allocations: 284.1 kB / 0.6867 GB, free: 7.953 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001013/0.7796, allocations: 0.6124 MB / 0.6873 GB, free: 7.305 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.372e-05/0.7796, allocations: 70.38 kB / 0.6874 GB, free: 7.234 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001639/0.7798, allocations: 92.38 kB / 0.6875 GB, free: 7.145 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00323/0.7831, allocations: 1.665 MB / 0.6891 GB, free: 5.43 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.417e-05/0.7831, allocations: 3.938 kB / 0.6891 GB, free: 5.426 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001177/0.7832, allocations: 40 kB / 0.6892 GB, free: 5.387 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.141e-05/0.7832, allocations: 24 kB / 0.6892 GB, free: 5.363 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003358/0.7866, allocations: 1.678 MB / 0.6908 GB, free: 3.684 MB / 0.5294 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.007298/0.7939, allocations: 5.626 MB / 0.6963 GB, free: 13.69 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003973/0.7979, allocations: 2.038 MB / 0.6983 GB, free: 11.65 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001482/0.7994, allocations: 0.956 MB / 0.6992 GB, free: 10.69 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04556/0.845, allocations: 20.15 MB / 0.7189 GB, free: 4.34 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.109e-05/0.8451, allocations: 60.48 kB / 0.719 GB, free: 4.27 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=180): time 1.069e-05/0.8452, allocations: 3.984 kB / 0.719 GB, free: 4.266 MB / 0.5606 GB Notification: Performance of matching and sorting (n=180): time 0.06715/0.9123, allocations: 14.67 MB / 0.7333 GB, free: 5.555 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.158e-05/0.9124, allocations: 69.41 kB / 0.7334 GB, free: 5.477 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006252/0.9131, allocations: 437.9 kB / 0.7338 GB, free: 5.035 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001958/0.9133, allocations: 61.7 kB / 0.7338 GB, free: 4.969 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002244/0.9135, allocations: 274.4 kB / 0.7341 GB, free: 4.695 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007003/0.9142, allocations: 0.635 MB / 0.7347 GB, free: 4.055 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000472/0.9147, allocations: 295.5 kB / 0.735 GB, free: 3.762 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001203/0.9148, allocations: 334 kB / 0.7353 GB, free: 3.43 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001311/0.9161, allocations: 0.7417 MB / 0.7361 GB, free: 2.688 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001532/0.9177, allocations: 0.9548 MB / 0.737 GB, free: 1.672 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003192/0.9209, allocations: 1.882 MB / 0.7388 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.477e-05/0.9209, allocations: 1 kB / 0.7388 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of matching and sorting (n=200) (initialization): time 0.00545/0.9264, allocations: 2.754 MB / 0.7415 GB, free: 12.97 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 4.818e-05/0.9265, allocations: 8 kB / 0.7415 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.239e-05/0.9265, allocations: 4.469 kB / 0.7415 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01124/0.9378, allocations: 2.255 MB / 0.7437 GB, free: 10.71 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008509/0.9387, allocations: 159.8 kB / 0.7439 GB, free: 10.55 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006663/0.9454, allocations: 3.534 MB / 0.7473 GB, free: 6.992 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001095/0.9465, allocations: 154.8 kB / 0.7475 GB, free: 6.84 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002074/0.9467, allocations: 67.97 kB / 0.7475 GB, free: 6.773 MB / 0.5919 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.0005912/0.9473, allocations: 333.5 kB / 0.7479 GB, free: 6.438 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003054/0.9477, allocations: 103.4 kB / 0.748 GB, free: 6.336 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2704/1.218, allocations: 9.348 MB / 0.7571 GB, free: 215.7 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001689/1.218, allocations: 108.2 kB / 0.7572 GB, free: 215.7 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.449e-05/1.218, allocations: 4.75 kB / 0.7572 GB, free: 215.7 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-05/1.218, allocations: 13.28 kB / 0.7572 GB, free: 215.7 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01396/1.232, allocations: 10.78 MB / 0.7677 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-05/1.232, allocations: 1.688 kB / 0.7677 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005763/1.233, allocations: 117.2 kB / 0.7679 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01375/1.247, allocations: 4.835 MB / 0.7726 GB, free: 210.3 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004244/1.247, allocations: 53.73 kB / 0.7726 GB, free: 210.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01136/1.259, allocations: 7.888 MB / 0.7803 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/1.259, allocations: 1.531 kB / 0.7803 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009284/1.268, allocations: 7.555 MB / 0.7877 GB, free: 203.4 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001068/1.269, allocations: 0.6168 MB / 0.7883 GB, free: 203.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002204/1.269, allocations: 58.41 kB / 0.7884 GB, free: 203.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008473/1.27, allocations: 77.36 kB / 0.7884 GB, free: 203.1 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002132/1.27, allocations: 135.2 kB / 0.7886 GB, free: 203 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001216/1.27, allocations: 76.41 kB / 0.7886 GB, free: 203 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0004113/1.271, allocations: 415.5 kB / 0.789 GB, free: 202.8 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.1e-07/1.271, allocations: 0 / 0.789 GB, free: 202.8 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002792/1.274, allocations: 1.2 MB / 0.7902 GB, free: 202.6 MB / 0.5919 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.01041/1.284, allocations: 7.472 MB / 0.7975 GB, free: 196.9 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.005875/1.29, allocations: 3.429 MB / 0.8009 GB, free: 193.5 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.541e-06/1.29, allocations: 3.609 kB / 0.8009 GB, free: 193.5 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.004321/1.294, allocations: 2.747 MB / 0.8035 GB, free: 190.8 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003438/1.298, allocations: 0.7419 MB / 0.8043 GB, free: 190.1 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0205/1.318, allocations: 15.42 MB / 0.8193 GB, free: 174.5 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008388/1.319, allocations: 1.595 MB / 0.8209 GB, free: 172.9 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0008907/1.32, allocations: 384.5 kB / 0.8212 GB, free: 172.5 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006845/1.321, allocations: 0.7141 MB / 0.8219 GB, free: 171.8 MB / 0.5919 GB Notification: Performance of SimCode: time 3.406e-06/1.321, allocations: 0 / 0.8219 GB, free: 171.8 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1242/1.445, allocations: 92.35 MB / 0.9121 GB, free: 79.24 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.71/20.16, allocations: 12 kB / 0.9121 GB, free: 79.23 MB / 0.5919 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)