Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.GasComponents.TestGasTurbine.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.GasComponents.TestGasTurbine,fileNamePrefix="ThermoPower_ThermoPower_Test_GasComponents_TestGasTurbine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.GasComponents.TestGasTurbine,fileNamePrefix="ThermoPower_ThermoPower_Test_GasComponents_TestGasTurbine",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.001278/0.001278, allocations: 107.7 kB / 17.06 MB, free: 5.996 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.001831/0.001831, allocations: 197.3 kB / 18.01 MB, free: 5.066 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.41/1.41, allocations: 205.1 MB / 223.9 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2952/0.2952, 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.00207/0.00207, allocations: 75.88 kB / 450 MB, free: 9.047 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1121, allocations: 59.14 MB / 0.4972 GB, free: 13.77 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.GasComponents.TestGasTurbine): time 0.3971/0.5093, allocations: 170.6 MB / 0.6638 GB, free: 15.99 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.005521/0.5148, allocations: 3.809 MB / 0.6675 GB, free: 12.18 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003483/0.5152, allocations: 11.94 kB / 0.6675 GB, free: 12.16 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0008219/0.5161, allocations: 262.4 kB / 0.6678 GB, free: 11.91 MB / 0.5137 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0009149/0.517, allocations: 497.5 kB / 0.6683 GB, free: 11.42 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.003635/0.5206, allocations: 1.544 MB / 0.6698 GB, free: 9.875 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.00143/0.5221, allocations: 1.241 MB / 0.671 GB, free: 8.633 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005306/0.5226, allocations: 377.5 kB / 0.6713 GB, free: 8.258 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006501/0.5233, allocations: 489.6 kB / 0.6718 GB, free: 7.781 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005746/0.5239, allocations: 450.4 kB / 0.6722 GB, free: 7.34 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0001142/0.524, allocations: 59.98 kB / 0.6723 GB, free: 7.281 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002641/0.5266, allocations: 1.419 MB / 0.6737 GB, free: 5.859 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0003751/0.527, allocations: 386.9 kB / 0.674 GB, free: 5.48 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0004859/0.5275, allocations: 465.7 kB / 0.6745 GB, free: 5.023 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.00235/0.5299, allocations: 1.737 MB / 0.6762 GB, free: 3.281 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.5299, allocations: 0 / 0.6762 GB, free: 3.281 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.343e-06/0.5299, allocations: 0 / 0.6762 GB, free: 3.281 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.171e-05/0.5299, allocations: 4 kB / 0.6762 GB, free: 3.277 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.002064/0.532, allocations: 1.31 MB / 0.6775 GB, free: 1.91 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.532, allocations: 11.89 kB / 0.6775 GB, free: 1.898 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001286/0.5322, allocations: 102.5 kB / 0.6776 GB, free: 1.789 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000706/0.5329, allocations: 159.3 kB / 0.6777 GB, free: 1.633 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009248/0.5338, allocations: 0.6631 MB / 0.6784 GB, free: 0.9297 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.518e-05/0.5339, allocations: 37 kB / 0.6784 GB, free: 0.8945 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.387e-05/0.5339, allocations: 48 kB / 0.6785 GB, free: 0.8477 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001008/0.535, allocations: 0.6074 MB / 0.679 GB, free: 236 kB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.976e-05/0.535, allocations: 4 kB / 0.6791 GB, free: 232 kB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.095e-05/0.5351, allocations: 23.94 kB / 0.6791 GB, free: 208 kB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.935e-05/0.5351, allocations: 12 kB / 0.6791 GB, free: 196 kB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007748/0.5359, allocations: 463.8 kB / 0.6795 GB, free: 15.73 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.003981/0.5399, allocations: 2.356 MB / 0.6818 GB, free: 13.21 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002581/0.5401, allocations: 126.7 kB / 0.6819 GB, free: 13.08 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001002/0.5402, allocations: 52.84 kB / 0.682 GB, free: 13.03 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002534/0.5405, allocations: 121.1 kB / 0.6821 GB, free: 12.89 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.591e-05/0.5405, allocations: 46.5 kB / 0.6822 GB, free: 12.84 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=14): time 1.563e-06/0.5406, allocations: 0 / 0.6822 GB, free: 12.84 MB / 0.5294 GB Notification: Performance of matching and sorting (n=14): time 0.0005068/0.5411, allocations: 257.3 kB / 0.6824 GB, free: 12.58 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.038e-05/0.5411, allocations: 51.41 kB / 0.6825 GB, free: 12.52 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00166/0.5428, allocations: 1.34 MB / 0.6838 GB, free: 11.15 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 3.877e-05/0.5428, allocations: 33.7 kB / 0.6838 GB, free: 11.11 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004039/0.5432, allocations: 467.8 kB / 0.6842 GB, free: 10.65 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 4.786e-05/0.5433, allocations: 55.53 kB / 0.6843 GB, free: 10.6 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001446/0.5435, allocations: 89.97 kB / 0.6844 GB, free: 10.5 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001452/0.5436, allocations: 329.9 kB / 0.6847 GB, free: 10.18 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002293/0.5438, allocations: 126.6 kB / 0.6848 GB, free: 10.05 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00031/0.5442, allocations: 245.4 kB / 0.685 GB, free: 9.75 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004578/0.5446, allocations: 344.8 kB / 0.6854 GB, free: 9.352 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.5446, allocations: 0 / 0.6854 GB, free: 9.352 MB / 0.5294 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007654/0.5454, allocations: 480.5 kB / 0.6858 GB, free: 8.875 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.081e-05/0.5454, allocations: 11.91 kB / 0.6858 GB, free: 8.863 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.388e-06/0.5455, allocations: 6.062 kB / 0.6859 GB, free: 8.859 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/0.5455, allocations: 12.47 kB / 0.6859 GB, free: 8.848 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004312/0.5459, allocations: 111.8 kB / 0.686 GB, free: 8.738 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004219/0.5463, allocations: 0.6093 MB / 0.6866 GB, free: 8.105 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004203/0.5468, allocations: 75.39 kB / 0.6866 GB, free: 8.031 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.55e-05/0.5468, allocations: 24 kB / 0.6867 GB, free: 8.008 MB / 0.5294 GB Warning: Assuming fixed start value for the following 1 variables: Inertia1.phi:VARIABLE(unit = "rad" fixed = true ) "Absolute rotation angle of component" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003829/0.5472, allocations: 299.2 kB / 0.6869 GB, free: 7.707 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001464/0.5474, allocations: 95.38 kB / 0.687 GB, free: 7.613 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004288/0.5478, allocations: 238.8 kB / 0.6873 GB, free: 7.371 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.5478, allocations: 3.984 kB / 0.6873 GB, free: 7.367 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.5478, allocations: 0 / 0.6873 GB, free: 7.367 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.5478, allocations: 4 kB / 0.6873 GB, free: 7.363 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007079/0.5486, allocations: 0.5491 MB / 0.6878 GB, free: 6.766 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.93e-06/0.5486, allocations: 3.938 kB / 0.6878 GB, free: 6.762 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002279/0.5488, allocations: 44.72 kB / 0.6879 GB, free: 6.719 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.5488, allocations: 4 kB / 0.6879 GB, free: 6.715 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.294e-05/0.5488, allocations: 4 kB / 0.6879 GB, free: 6.711 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003792/0.5492, allocations: 0.6015 MB / 0.6885 GB, free: 6.086 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.5492, allocations: 0 / 0.6885 GB, free: 6.086 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005026/0.5497, allocations: 391.8 kB / 0.6888 GB, free: 5.688 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002527/0.55, allocations: 205 kB / 0.689 GB, free: 5.469 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.907e-05/0.5501, allocations: 4.156 kB / 0.689 GB, free: 5.465 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003937/0.5505, allocations: 15.98 kB / 0.689 GB, free: 5.449 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.742e-05/0.5505, allocations: 11.98 kB / 0.689 GB, free: 5.438 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.562e-05/0.5506, allocations: 16.86 kB / 0.6891 GB, free: 5.422 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001234/0.5518, allocations: 0.9463 MB / 0.69 GB, free: 4.465 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.11e-07/0.5518, allocations: 4 kB / 0.69 GB, free: 4.461 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0006853/0.5525, allocations: 223.6 kB / 0.6902 GB, free: 4.242 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Inertia1.phi,Inertia1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002494/0.555, allocations: 1.361 MB / 0.6915 GB, free: 2.859 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0005231/0.5556, allocations: 251.8 kB / 0.6918 GB, free: 2.613 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.5556, allocations: 0 / 0.6918 GB, free: 2.613 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.000161/0.5557, allocations: 59.92 kB / 0.6918 GB, free: 2.555 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001497/0.5572, allocations: 347.8 kB / 0.6922 GB, free: 2.215 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01057/0.5678, allocations: 8.011 MB / 0.7 GB, free: 9.953 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006968/0.5686, allocations: 0.9881 MB / 0.701 GB, free: 8.938 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0005479/0.5691, allocations: 166.7 kB / 0.7011 GB, free: 8.77 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004004/0.5695, allocations: 295.3 kB / 0.7014 GB, free: 8.48 MB / 0.545 GB Notification: Performance of SimCode: time 9.32e-07/0.5695, allocations: 4 kB / 0.7014 GB, free: 8.477 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05724/0.6268, allocations: 24.83 MB / 0.7256 GB, free: 15.56 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.05/13.68, allocations: 8 kB / 0.7257 GB, free: 15.55 MB / 0.5762 GB (rm -f ThermoPower_ThermoPower.Test.GasComponents.TestGasTurbine.pipe ; mkfifo ThermoPower_ThermoPower.Test.GasComponents.TestGasTurbine.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.GasComponents.TestGasTurbine.pipe >> ../files/ThermoPower_ThermoPower.Test.GasComponents.TestGasTurbine.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.GasComponents.TestGasTurbine_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 ThermoPower_ThermoPower_Test_GasComponents_TestGasTurbine.fmu > ThermoPower_ThermoPower.Test.GasComponents.TestGasTurbine.pipe 2>&1)