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.001337/0.001337, allocations: 112 kB / 17.06 MB, free: 5.992 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.00116/0.00116, allocations: 193.4 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.5/1.5, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2968/0.2968, allocations: 48.84 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.002151/0.002151, allocations: 87.81 kB / 450.1 MB, free: 9.02 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1254, allocations: 59.16 MB / 0.4973 GB, free: 13.73 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestCoolingTowerStatic): time 0.4193/0.5448, allocations: 160.8 MB / 0.6543 GB, free: 9.297 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01416/0.559, allocations: 9.91 MB / 0.664 GB, free: 15.38 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003794/0.5595, allocations: 11.94 kB / 0.664 GB, free: 15.37 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0004147/0.5599, allocations: 107.2 kB / 0.6641 GB, free: 15.26 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.005846/0.5657, allocations: 2.09 MB / 0.6661 GB, free: 13.17 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.007451/0.5732, allocations: 2.589 MB / 0.6686 GB, free: 10.58 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.002309/0.5755, allocations: 2.005 MB / 0.6706 GB, free: 8.574 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006445/0.5762, allocations: 0.531 MB / 0.6711 GB, free: 8.047 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006748/0.5769, allocations: 0.5887 MB / 0.6717 GB, free: 7.457 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00311/0.58, allocations: 1.468 MB / 0.6731 GB, free: 5.977 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0001754/0.5802, allocations: 100 kB / 0.6732 GB, free: 5.879 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01118/0.5914, allocations: 5.945 MB / 0.679 GB, free: 15.93 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.000669/0.5921, allocations: 0.5612 MB / 0.6796 GB, free: 15.37 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0009011/0.593, allocations: 0.6303 MB / 0.6802 GB, free: 14.73 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.009367/0.6024, allocations: 4.384 MB / 0.6845 GB, free: 10.34 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 8.726e-06/0.6024, allocations: 3.938 kB / 0.6845 GB, free: 10.34 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.254e-06/0.6024, allocations: 0 / 0.6845 GB, free: 10.34 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 2.607e-05/0.6025, 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.005505/0.608, allocations: 1.868 MB / 0.6863 GB, free: 8.414 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.775e-05/0.6081, allocations: 15.89 kB / 0.6863 GB, free: 8.398 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002542/0.6083, allocations: 156.2 kB / 0.6865 GB, free: 8.238 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002468/0.6108, allocations: 288 kB / 0.6867 GB, free: 7.957 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001044/0.6119, allocations: 0.6047 MB / 0.6873 GB, free: 7.316 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.417e-05/0.6119, allocations: 78.31 kB / 0.6874 GB, free: 7.238 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001618/0.6121, allocations: 92.38 kB / 0.6875 GB, free: 7.148 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003428/0.6155, allocations: 1.663 MB / 0.6891 GB, free: 5.434 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.382e-05/0.6156, allocations: 0 / 0.6891 GB, free: 5.434 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001144/0.6157, allocations: 40 kB / 0.6891 GB, free: 5.395 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.695e-05/0.6157, allocations: 29.94 kB / 0.6892 GB, free: 5.367 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003461/0.6192, allocations: 1.686 MB / 0.6908 GB, free: 3.68 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.007136/0.6264, allocations: 5.622 MB / 0.6963 GB, free: 13.69 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003968/0.6304, allocations: 2.034 MB / 0.6983 GB, free: 11.65 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001452/0.6318, allocations: 0.956 MB / 0.6992 GB, free: 10.7 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04401/0.6758, allocations: 20.15 MB / 0.7189 GB, free: 4.336 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.343e-05/0.6759, allocations: 48.56 kB / 0.719 GB, free: 4.277 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=180): time 3.838e-06/0.6759, allocations: 4 kB / 0.719 GB, free: 4.273 MB / 0.5606 GB Notification: Performance of matching and sorting (n=180): time 0.06912/0.7451, allocations: 14.68 MB / 0.7333 GB, free: 5.555 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.611e-05/0.7452, allocations: 69.41 kB / 0.7334 GB, free: 5.477 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005416/0.7457, allocations: 445.8 kB / 0.7338 GB, free: 5.027 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 9.554e-05/0.7458, allocations: 57.7 kB / 0.7338 GB, free: 4.965 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002111/0.746, allocations: 274.4 kB / 0.7341 GB, free: 4.691 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005872/0.7466, allocations: 0.6311 MB / 0.7347 GB, free: 4.055 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004591/0.7471, allocations: 299.5 kB / 0.735 GB, free: 3.758 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001523/0.7472, allocations: 337.9 kB / 0.7353 GB, free: 3.422 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001254/0.7485, allocations: 0.7378 MB / 0.736 GB, free: 2.684 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001469/0.75, allocations: 0.9509 MB / 0.737 GB, free: 1.672 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002924/0.7529, allocations: 1.883 MB / 0.7388 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.07e-06/0.7529, allocations: 0 / 0.7388 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004843/0.7578, allocations: 2.754 MB / 0.7415 GB, free: 12.97 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.37e-05/0.7578, allocations: 8 kB / 0.7415 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.243e-05/0.7578, allocations: 4 kB / 0.7415 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01048/0.7683, allocations: 2.243 MB / 0.7437 GB, free: 10.72 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008734/0.7692, allocations: 163.8 kB / 0.7439 GB, free: 10.56 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00605/0.7753, allocations: 3.541 MB / 0.7473 GB, free: 6.992 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009882/0.7763, allocations: 146.9 kB / 0.7475 GB, free: 6.848 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001514/0.7765, allocations: 67.97 kB / 0.7475 GB, free: 6.781 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.0005357/0.777, allocations: 333.5 kB / 0.7478 GB, free: 6.445 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002339/0.7773, allocations: 103.4 kB / 0.7479 GB, free: 6.344 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2328/1.01, allocations: 9.349 MB / 0.7571 GB, free: 215.7 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001519/1.01, allocations: 115.6 kB / 0.7572 GB, free: 215.7 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.038e-05/1.01, allocations: 3.75 kB / 0.7572 GB, free: 215.7 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.045e-05/1.01, allocations: 12.47 kB / 0.7572 GB, free: 215.7 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01296/1.023, allocations: 10.78 MB / 0.7677 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-05/1.023, allocations: 1.25 kB / 0.7677 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005465/1.024, allocations: 116.5 kB / 0.7678 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01359/1.037, allocations: 4.839 MB / 0.7726 GB, free: 210.3 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005222/1.038, allocations: 56.78 kB / 0.7726 GB, free: 210.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01243/1.051, allocations: 7.886 MB / 0.7803 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.07e-06/1.051, allocations: 0 / 0.7803 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00883/1.059, allocations: 7.557 MB / 0.7877 GB, free: 203.4 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007836/1.06, allocations: 0.6171 MB / 0.7883 GB, free: 203.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001815/1.06, allocations: 53.8 kB / 0.7884 GB, free: 203.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007779/1.061, allocations: 81.7 kB / 0.7884 GB, free: 203.1 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000259/1.061, allocations: 133.8 kB / 0.7886 GB, free: 203 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001233/1.062, allocations: 75.42 kB / 0.7886 GB, free: 203 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003857/1.062, allocations: 406.7 kB / 0.789 GB, free: 202.8 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1e-07/1.062, allocations: 5.344 kB / 0.789 GB, free: 202.8 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002593/1.065, allocations: 1.204 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.01017/1.075, allocations: 7.475 MB / 0.7975 GB, free: 196.9 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.005564/1.08, allocations: 3.427 MB / 0.8008 GB, free: 193.5 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/1.08, allocations: 3.609 kB / 0.8008 GB, free: 193.5 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.003894/1.084, allocations: 2.741 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.003252/1.088, allocations: 0.7388 MB / 0.8042 GB, free: 190.1 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01943/1.107, allocations: 15.43 MB / 0.8193 GB, free: 174.5 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008451/1.108, allocations: 1.595 MB / 0.8209 GB, free: 172.8 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0008406/1.109, allocations: 382.3 kB / 0.8212 GB, free: 172.5 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006512/1.109, allocations: 0.7101 MB / 0.8219 GB, free: 171.8 MB / 0.5919 GB Notification: Performance of SimCode: time 1.814e-06/1.109, allocations: 0 / 0.8219 GB, free: 171.8 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1186/1.228, allocations: 92.36 MB / 0.9121 GB, free: 79.23 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.56/19.79, allocations: 8 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)