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.001283/0.001282, allocations: 112 kB / 17.06 MB, free: 5.984 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.001185/0.001185, allocations: 194.9 kB / 18 MB, free: 5.074 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.379/1.379, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2911/0.2911, allocations: 48.85 MB / 320.1 MB, free: 11 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.001567/0.001567, allocations: 71.91 kB / 450 MB, free: 9.039 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1227, allocations: 59.16 MB / 0.4973 GB, free: 13.75 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestCoolingTowerStatic): time 0.4705/0.5932, allocations: 160.8 MB / 0.6543 GB, free: 9.309 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01303/0.6062, allocations: 9.916 MB / 0.664 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003993/0.6067, allocations: 4 kB / 0.664 GB, free: 15.38 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0004321/0.6071, allocations: 107.2 kB / 0.6641 GB, free: 15.28 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.005377/0.6126, allocations: 2.1 MB / 0.6661 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.007681/0.6203, allocations: 2.591 MB / 0.6686 GB, free: 10.59 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.002272/0.6226, allocations: 2.013 MB / 0.6706 GB, free: 8.57 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007498/0.6233, allocations: 0.5232 MB / 0.6711 GB, free: 8.051 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007686/0.6241, allocations: 0.6004 MB / 0.6717 GB, free: 7.449 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003306/0.6274, allocations: 1.457 MB / 0.6731 GB, free: 5.98 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0001814/0.6276, allocations: 100 kB / 0.6732 GB, free: 5.883 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01157/0.6392, allocations: 5.951 MB / 0.679 GB, free: 15.93 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0006555/0.6399, allocations: 0.5573 MB / 0.6796 GB, free: 15.37 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0008583/0.6408, allocations: 0.6381 MB / 0.6802 GB, free: 14.73 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.009862/0.6506, allocations: 4.376 MB / 0.6845 GB, free: 10.34 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.6507, allocations: 0 / 0.6845 GB, free: 10.34 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.264e-06/0.6507, allocations: 0 / 0.6845 GB, free: 10.34 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.776e-05/0.6507, 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.005003/0.6557, allocations: 1.88 MB / 0.6863 GB, free: 8.406 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.958e-05/0.6558, allocations: 15.89 kB / 0.6863 GB, free: 8.391 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001845/0.656, allocations: 149.2 kB / 0.6865 GB, free: 8.238 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002327/0.6583, allocations: 284.1 kB / 0.6867 GB, free: 7.961 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00119/0.6595, allocations: 0.6086 MB / 0.6873 GB, free: 7.316 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.447e-05/0.6596, allocations: 74.38 kB / 0.6874 GB, free: 7.242 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000169/0.6597, allocations: 88.38 kB / 0.6875 GB, free: 7.156 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003136/0.6629, allocations: 1.663 MB / 0.6891 GB, free: 5.441 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.563e-05/0.6629, allocations: 3.938 kB / 0.6891 GB, free: 5.438 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001168/0.663, allocations: 47.98 kB / 0.6892 GB, free: 5.391 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.274e-05/0.6631, allocations: 24 kB / 0.6892 GB, free: 5.367 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003242/0.6663, allocations: 1.682 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.007646/0.674, allocations: 5.628 MB / 0.6963 GB, free: 13.69 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003731/0.6777, allocations: 2.038 MB / 0.6983 GB, free: 11.65 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001454/0.6792, allocations: 0.9599 MB / 0.6992 GB, free: 10.69 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04345/0.7227, allocations: 20.15 MB / 0.7189 GB, free: 4.332 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.984e-05/0.7228, allocations: 48.56 kB / 0.719 GB, free: 4.273 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=180): time 4.258e-06/0.7228, allocations: 4 kB / 0.719 GB, free: 4.27 MB / 0.5606 GB Notification: Performance of matching and sorting (n=180): time 0.06814/0.7909, allocations: 14.67 MB / 0.7333 GB, free: 5.559 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.505e-05/0.791, allocations: 73.39 kB / 0.7334 GB, free: 5.477 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006529/0.7917, allocations: 441.9 kB / 0.7338 GB, free: 5.031 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001867/0.7919, allocations: 53.7 kB / 0.7338 GB, free: 4.973 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002431/0.7921, allocations: 274.4 kB / 0.7341 GB, free: 4.699 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007235/0.7929, allocations: 0.6311 MB / 0.7347 GB, free: 4.062 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000514/0.7934, allocations: 295.5 kB / 0.735 GB, free: 3.77 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001289/0.7935, allocations: 341.9 kB / 0.7353 GB, free: 3.43 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001327/0.7949, allocations: 0.7425 MB / 0.7361 GB, free: 2.688 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001488/0.7964, allocations: 0.9587 MB / 0.737 GB, free: 1.668 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002952/0.7993, allocations: 1.87 MB / 0.7388 GB, free: 15.74 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.146e-06/0.7994, allocations: 0 / 0.7388 GB, free: 15.74 MB / 0.5919 GB Notification: Performance of matching and sorting (n=200) (initialization): time 0.005/0.8044, allocations: 2.754 MB / 0.7415 GB, free: 12.98 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.517e-05/0.8044, allocations: 11.94 kB / 0.7415 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.773e-05/0.8044, allocations: 7.984 kB / 0.7415 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01049/0.8149, allocations: 2.243 MB / 0.7437 GB, free: 10.72 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007394/0.8157, allocations: 167.8 kB / 0.7439 GB, free: 10.55 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006001/0.8217, allocations: 3.537 MB / 0.7473 GB, free: 6.992 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009568/0.8227, allocations: 146.9 kB / 0.7475 GB, free: 6.848 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001912/0.8229, allocations: 71.95 kB / 0.7475 GB, free: 6.777 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.0005615/0.8235, allocations: 325.5 kB / 0.7479 GB, free: 6.449 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002931/0.8238, allocations: 103.4 kB / 0.748 GB, free: 6.348 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2526/1.076, allocations: 9.348 MB / 0.7571 GB, free: 215.7 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001817/1.077, allocations: 115.8 kB / 0.7572 GB, free: 215.7 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.297e-05/1.077, allocations: 3.75 kB / 0.7572 GB, free: 215.7 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.074e-05/1.077, allocations: 14.72 kB / 0.7572 GB, free: 215.7 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01634/1.093, allocations: 10.77 MB / 0.7677 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.981e-05/1.093, allocations: 2.812 kB / 0.7677 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005953/1.094, allocations: 119.8 kB / 0.7678 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01335/1.107, allocations: 4.84 MB / 0.7726 GB, free: 210.3 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003421/1.107, allocations: 52.59 kB / 0.7726 GB, free: 210.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01083/1.118, allocations: 7.886 MB / 0.7803 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.18e-06/1.118, allocations: 1.812 kB / 0.7803 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008885/1.127, allocations: 7.559 MB / 0.7877 GB, free: 203.4 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001288/1.128, allocations: 0.6187 MB / 0.7883 GB, free: 203.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000186/1.129, allocations: 52.48 kB / 0.7884 GB, free: 203.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008254/1.13, allocations: 79.48 kB / 0.7884 GB, free: 203.1 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002353/1.13, allocations: 137.7 kB / 0.7886 GB, free: 203 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001299/1.13, allocations: 72.66 kB / 0.7886 GB, free: 203 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0004558/1.13, allocations: 415.6 kB / 0.789 GB, free: 202.8 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.81e-07/1.13, allocations: 0 / 0.789 GB, free: 202.8 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002574/1.133, allocations: 1.198 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.009891/1.143, allocations: 7.472 MB / 0.7975 GB, free: 196.9 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.005857/1.149, allocations: 3.432 MB / 0.8009 GB, free: 193.5 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/1.149, allocations: 7.359 kB / 0.8009 GB, free: 193.5 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.003924/1.153, allocations: 2.737 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.003243/1.156, allocations: 0.7477 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.02009/1.176, 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.0008563/1.177, allocations: 1.591 MB / 0.8209 GB, free: 172.9 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0008486/1.178, allocations: 391.7 kB / 0.8212 GB, free: 172.5 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005419/1.178, allocations: 0.7141 MB / 0.8219 GB, free: 171.8 MB / 0.5919 GB Notification: Performance of SimCode: time 2.164e-06/1.178, allocations: 0 / 0.8219 GB, free: 171.8 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1189/1.297, allocations: 92.36 MB / 0.9121 GB, free: 79.25 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.64/19.93, allocations: 3.938 kB / 0.9121 GB, free: 79.25 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)