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.001023/0.001023, allocations: 107.7 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.001346/0.001346, 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.249/1.249, allocations: 205.1 MB / 223.7 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2581/0.2581, allocations: 48.84 MB / 319.9 MB, free: 11.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.001405/0.001405, allocations: 71.03 kB / 390.2 MB, free: 48.81 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08798/0.08939, allocations: 59.15 MB / 449.3 MB, free: 9.691 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.GasComponents.TestGasTurbine): time 0.3464/0.4358, allocations: 170.6 MB / 0.6054 GB, free: 5.141 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.005136/0.441, allocations: 3.811 MB / 0.6091 GB, free: 2.055 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004418/0.4415, allocations: 8.594 kB / 0.6091 GB, free: 2.051 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000782/0.4423, allocations: 269.1 kB / 0.6093 GB, free: 1.828 MB / 430.1 MB [/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.0008381/0.4432, allocations: 486.8 kB / 0.6098 GB, free: 1.461 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003424/0.4466, allocations: 1.557 MB / 0.6113 GB, free: 352 kB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00119/0.4478, allocations: 1.249 MB / 0.6125 GB, free: 15.64 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004252/0.4482, allocations: 370.2 kB / 0.6129 GB, free: 15.41 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005123/0.4488, allocations: 480.7 kB / 0.6134 GB, free: 15.16 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004407/0.4492, allocations: 455.2 kB / 0.6138 GB, free: 14.91 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 8.289e-05/0.4493, allocations: 55.56 kB / 0.6138 GB, free: 14.91 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00243/0.4517, allocations: 1.427 MB / 0.6152 GB, free: 14.18 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002797/0.452, allocations: 386.4 kB / 0.6156 GB, free: 13.95 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003799/0.4524, allocations: 463.5 kB / 0.6161 GB, free: 13.64 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001821/0.4542, allocations: 1.725 MB / 0.6177 GB, free: 12.59 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.4543, allocations: 0 / 0.6177 GB, free: 12.59 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.4543, allocations: 2.219 kB / 0.6177 GB, free: 12.59 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.075e-05/0.4543, allocations: 0 / 0.6177 GB, free: 12.59 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.001651/0.4559, allocations: 1.276 MB / 0.619 GB, free: 11.59 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.464e-05/0.456, allocations: 17.94 kB / 0.619 GB, free: 11.59 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001004/0.4561, allocations: 98.33 kB / 0.6191 GB, free: 11.5 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006676/0.4568, allocations: 156.8 kB / 0.6192 GB, free: 11.42 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007558/0.4575, allocations: 0.6482 MB / 0.6199 GB, free: 10.93 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.6e-05/0.4576, allocations: 35.12 kB / 0.6199 GB, free: 10.91 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.864e-05/0.4576, allocations: 48.41 kB / 0.62 GB, free: 10.89 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008202/0.4585, allocations: 0.6052 MB / 0.6205 GB, free: 10.54 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.622e-05/0.4585, allocations: 2.969 kB / 0.6206 GB, free: 10.54 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.819e-05/0.4585, allocations: 25.22 kB / 0.6206 GB, free: 10.52 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.778e-06/0.4586, allocations: 16.19 kB / 0.6206 GB, free: 10.52 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006104/0.4592, allocations: 468.3 kB / 0.621 GB, free: 10.3 MB / 446.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.003468/0.4627, allocations: 2.363 MB / 0.6233 GB, free: 8.004 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002248/0.4629, allocations: 142.6 kB / 0.6235 GB, free: 7.855 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.954e-05/0.463, allocations: 49.09 kB / 0.6235 GB, free: 7.805 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002352/0.4632, allocations: 125.1 kB / 0.6236 GB, free: 7.664 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.43e-05/0.4633, allocations: 42.5 kB / 0.6237 GB, free: 7.613 MB / 446.1 MB Notification: Performance of pre-optimization done (n=14): time 1.593e-06/0.4633, allocations: 0 / 0.6237 GB, free: 7.613 MB / 446.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004639/0.4637, allocations: 252.6 kB / 0.6239 GB, free: 7.359 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.309e-05/0.4638, allocations: 55.34 kB / 0.624 GB, free: 7.293 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001401/0.4652, allocations: 1.336 MB / 0.6253 GB, free: 5.934 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.699e-05/0.4652, allocations: 33.7 kB / 0.6253 GB, free: 5.895 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003239/0.4656, allocations: 471 kB / 0.6258 GB, free: 5.43 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.76e-05/0.4656, allocations: 51.34 kB / 0.6258 GB, free: 5.379 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001161/0.4657, allocations: 81.97 kB / 0.6259 GB, free: 5.293 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.4658, allocations: 325.9 kB / 0.6262 GB, free: 4.969 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000184/0.466, allocations: 130 kB / 0.6263 GB, free: 4.84 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002433/0.4663, allocations: 245.5 kB / 0.6266 GB, free: 4.539 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003807/0.4667, allocations: 344.8 kB / 0.6269 GB, free: 4.141 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.4667, allocations: 0 / 0.6269 GB, free: 4.141 MB / 446.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006593/0.4673, allocations: 473.7 kB / 0.6273 GB, free: 3.672 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.4674, allocations: 8 kB / 0.6274 GB, free: 3.664 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.4674, allocations: 4 kB / 0.6274 GB, free: 3.66 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.752e-05/0.4674, allocations: 15.88 kB / 0.6274 GB, free: 3.645 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004223/0.4678, allocations: 104.4 kB / 0.6275 GB, free: 3.543 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000323/0.4682, allocations: 0.6094 MB / 0.6281 GB, free: 2.91 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004128/0.4686, allocations: 71.17 kB / 0.6281 GB, free: 2.84 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.15e-05/0.4686, allocations: 27.98 kB / 0.6282 GB, free: 2.812 MB / 446.1 MB 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.0003236/0.469, allocations: 294.1 kB / 0.6284 GB, free: 2.516 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001444/0.4691, allocations: 94.91 kB / 0.6285 GB, free: 2.422 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003576/0.4695, allocations: 247.5 kB / 0.6288 GB, free: 2.176 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.4695, allocations: 0 / 0.6288 GB, free: 2.176 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.676e-06/0.4695, allocations: 0 / 0.6288 GB, free: 2.176 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.4695, allocations: 4 kB / 0.6288 GB, free: 2.172 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005872/0.4701, allocations: 0.5568 MB / 0.6293 GB, free: 1.566 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.4701, allocations: 3.938 kB / 0.6293 GB, free: 1.562 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002168/0.4703, allocations: 43.91 kB / 0.6294 GB, free: 1.52 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.608e-06/0.4704, allocations: 4 kB / 0.6294 GB, free: 1.516 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.219e-05/0.4704, allocations: 0 / 0.6294 GB, free: 1.516 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002757/0.4707, allocations: 0.6015 MB / 0.63 GB, free: 0.8906 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.4707, allocations: 0 / 0.63 GB, free: 0.8906 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004248/0.4711, allocations: 382.7 kB / 0.6303 GB, free: 0.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002121/0.4713, allocations: 203.9 kB / 0.6305 GB, free: 288 kB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001047/0.4714, allocations: 2.062 kB / 0.6305 GB, free: 288 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003785/0.4718, allocations: 20.14 kB / 0.6305 GB, free: 268 kB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.418e-05/0.4719, allocations: 11.98 kB / 0.6305 GB, free: 256 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.013e-05/0.4719, allocations: 15.98 kB / 0.6306 GB, free: 240 kB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001053/0.473, allocations: 0.9464 MB / 0.6315 GB, free: 15.27 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.473, allocations: 4 kB / 0.6315 GB, free: 15.27 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0006533/0.4736, allocations: 227.7 kB / 0.6317 GB, free: 15.05 MB / 462.1 MB 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.001805/0.4754, allocations: 1.347 MB / 0.633 GB, free: 13.69 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0004647/0.4759, allocations: 256.4 kB / 0.6333 GB, free: 13.44 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.4759, allocations: 3.938 kB / 0.6333 GB, free: 13.44 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001305/0.4761, allocations: 67.91 kB / 0.6333 GB, free: 13.37 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001431/0.4775, allocations: 331.3 kB / 0.6336 GB, free: 13.04 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009203/0.4867, allocations: 8.541 MB / 0.642 GB, free: 4.184 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005187/0.4873, allocations: 0.9931 MB / 0.643 GB, free: 3.164 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0005294/0.4878, allocations: 162.7 kB / 0.6431 GB, free: 3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003377/0.4881, allocations: 295.3 kB / 0.6434 GB, free: 2.711 MB / 462.1 MB Notification: Performance of SimCode: time 4.31e-07/0.4882, allocations: 3.938 kB / 0.6434 GB, free: 2.707 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04763/0.5358, allocations: 24.12 MB / 0.667 GB, free: 10.5 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.62/11.16, allocations: 8.047 kB / 0.667 GB, free: 10.49 MB / 494.1 MB (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)