Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.GasComponents.TestGT.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.TestGT,fileNamePrefix="ThermoPower_ThermoPower_Test_GasComponents_TestGT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.GasComponents.TestGT,fileNamePrefix="ThermoPower_ThermoPower_Test_GasComponents_TestGT",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.001074/0.001074, allocations: 110.6 kB / 16.92 MB, free: 6.332 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.001104/0.001104, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.254/1.254, allocations: 205.1 MB / 223.7 MB, free: 12.35 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2561/0.2561, allocations: 48.84 MB / 319.9 MB, free: 11.1 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.001497/0.001497, allocations: 64.83 kB / 390.2 MB, free: 48.84 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08033/0.08184, allocations: 59.16 MB / 449.3 MB, free: 9.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.GasComponents.TestGT): time 0.3728/0.4547, allocations: 186.1 MB / 0.6206 GB, free: 8.5 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.003421/0.4581, allocations: 1.941 MB / 0.6225 GB, free: 6.91 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004563/0.4586, allocations: 13.5 kB / 0.6225 GB, free: 6.906 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009802/0.4596, allocations: 378.9 kB / 0.6229 GB, free: 6.59 MB / 446.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.00132/0.461, allocations: 0.7978 MB / 0.6236 GB, free: 6.02 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002269/0.4632, allocations: 1.063 MB / 0.6247 GB, free: 5.23 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001783/0.465, allocations: 1.865 MB / 0.6265 GB, free: 4.199 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007646/0.4658, allocations: 0.6624 MB / 0.6271 GB, free: 3.758 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001067/0.4669, allocations: 0.8144 MB / 0.6279 GB, free: 3.32 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008049/0.4677, allocations: 0.7774 MB / 0.6287 GB, free: 2.734 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001599/0.4679, allocations: 91.98 kB / 0.6288 GB, free: 2.645 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001604/0.4695, allocations: 0.7404 MB / 0.6295 GB, free: 1.902 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006008/0.4701, allocations: 0.8025 MB / 0.6303 GB, free: 1.098 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008665/0.471, allocations: 0.9437 MB / 0.6312 GB, free: 152 kB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002356/0.4733, allocations: 2.442 MB / 0.6336 GB, free: 13.7 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.4734, allocations: 3.984 kB / 0.6336 GB, free: 13.7 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.4734, allocations: 4 kB / 0.6336 GB, free: 13.69 MB / 462.1 MB Notification: Performance of Transformations before backend: time 2.721e-05/0.4734, allocations: 0 / 0.6336 GB, free: 13.69 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.003282/0.4767, allocations: 2.404 MB / 0.636 GB, free: 11.23 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.4767, allocations: 11.89 kB / 0.636 GB, free: 11.21 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001659/0.4769, allocations: 143.5 kB / 0.6361 GB, free: 11.07 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008554/0.4778, allocations: 297.1 kB / 0.6364 GB, free: 10.77 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001786/0.4796, allocations: 1.396 MB / 0.6377 GB, free: 9.305 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.765e-05/0.4797, allocations: 93.77 kB / 0.6378 GB, free: 9.207 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001154/0.4798, allocations: 91.84 kB / 0.6379 GB, free: 9.117 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001575/0.4814, allocations: 1.14 MB / 0.639 GB, free: 7.922 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.382e-05/0.4814, allocations: 0 / 0.639 GB, free: 7.922 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.822e-05/0.4815, allocations: 44 kB / 0.6391 GB, free: 7.879 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.029e-05/0.4816, allocations: 34 kB / 0.6391 GB, free: 7.844 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001177/0.4827, allocations: 0.8274 MB / 0.6399 GB, free: 7.02 MB / 462.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.006998/0.4898, allocations: 5.202 MB / 0.645 GB, free: 1.578 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006101/0.4904, allocations: 317.1 kB / 0.6453 GB, free: 1.25 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000225/0.4906, allocations: 145.7 kB / 0.6454 GB, free: 1.102 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.76e-05/0.4907, allocations: 11.97 kB / 0.6455 GB, free: 1.09 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.374e-05/0.4907, allocations: 42.56 kB / 0.6455 GB, free: 1.039 MB / 462.1 MB Notification: Performance of pre-optimization done (n=38): time 3.307e-06/0.4907, allocations: 0 / 0.6455 GB, free: 1.039 MB / 462.1 MB Notification: Performance of matching and sorting (n=40): time 0.002529/0.4933, allocations: 1.668 MB / 0.6471 GB, free: 15.3 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.494e-05/0.4933, allocations: 85.11 kB / 0.6472 GB, free: 15.2 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003568/0.4969, allocations: 3.427 MB / 0.6506 GB, free: 11.76 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 6.117e-05/0.497, allocations: 37.7 kB / 0.6506 GB, free: 11.71 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007181/0.4977, allocations: 0.9751 MB / 0.6515 GB, free: 10.73 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.782e-05/0.4978, allocations: 141.9 kB / 0.6517 GB, free: 10.59 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001846/0.498, allocations: 134.1 kB / 0.6518 GB, free: 10.46 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.436e-05/0.4981, allocations: 330 kB / 0.6521 GB, free: 10.13 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003262/0.4984, allocations: 205.2 kB / 0.6523 GB, free: 9.926 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004242/0.4989, allocations: 398 kB / 0.6527 GB, free: 9.457 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007034/0.4996, allocations: 0.5681 MB / 0.6532 GB, free: 8.805 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.4996, allocations: 0 / 0.6532 GB, free: 8.805 MB / 478.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001274/0.5009, allocations: 0.8606 MB / 0.6541 GB, free: 7.938 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/0.5009, allocations: 8 kB / 0.6541 GB, free: 7.93 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.458e-05/0.5009, allocations: 8 kB / 0.6541 GB, free: 7.922 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.255e-05/0.5009, allocations: 8 kB / 0.6541 GB, free: 7.914 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001058/0.502, allocations: 221.7 kB / 0.6543 GB, free: 7.699 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006622/0.5027, allocations: 1.199 MB / 0.6555 GB, free: 6.453 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007838/0.5035, allocations: 35.97 kB / 0.6555 GB, free: 6.418 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.788e-05/0.5035, allocations: 28 kB / 0.6556 GB, free: 6.391 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 1 (BooleanStep1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007105/0.5043, allocations: 0.5911 MB / 0.6561 GB, free: 5.789 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002909/0.5046, allocations: 221.3 kB / 0.6563 GB, free: 5.57 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008049/0.5054, allocations: 0.5341 MB / 0.6569 GB, free: 5.023 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.787e-06/0.5054, allocations: 7.938 kB / 0.6569 GB, free: 5.016 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.5054, allocations: 0 / 0.6569 GB, free: 5.016 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/0.5054, allocations: 3.984 kB / 0.6569 GB, free: 5.012 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002437/0.5079, allocations: 1.83 MB / 0.6587 GB, free: 3.117 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.998e-06/0.5079, allocations: 4.562 kB / 0.6587 GB, free: 3.113 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007101/0.5086, allocations: 128.7 kB / 0.6588 GB, free: 2.988 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.891e-06/0.5086, allocations: 4 kB / 0.6588 GB, free: 2.984 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.435e-05/0.5086, allocations: 11.94 kB / 0.6588 GB, free: 2.973 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00056/0.5092, allocations: 1.2 MB / 0.66 GB, free: 1.727 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.5092, allocations: 0 / 0.66 GB, free: 1.727 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001018/0.5102, allocations: 0.7693 MB / 0.6607 GB, free: 0.9336 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006405/0.5109, allocations: 426.4 kB / 0.6611 GB, free: 0.4961 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002002/0.5111, allocations: 12 kB / 0.6611 GB, free: 496 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000733/0.5118, allocations: 39.91 kB / 0.6612 GB, free: 456 kB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.746e-05/0.5119, allocations: 27.95 kB / 0.6612 GB, free: 428 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.719e-05/0.512, allocations: 23.98 kB / 0.6612 GB, free: 404 kB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003014/0.515, allocations: 2.447 MB / 0.6636 GB, free: 13.94 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.515, allocations: 0 / 0.6636 GB, free: 13.94 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0009928/0.516, allocations: 332 kB / 0.6639 GB, free: 13.61 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (Generator.phi,Generator.omega_m,Generator.omega_e_filt,Grid.port.theta) * Number of discrete variables: 1 (BooleanStep1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002592/0.5186, allocations: 1.769 MB / 0.6657 GB, free: 11.82 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0009861/0.5196, allocations: 479.9 kB / 0.6661 GB, free: 11.35 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.5196, allocations: 0.5625 kB / 0.6661 GB, free: 11.35 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003269/0.5199, allocations: 167.6 kB / 0.6663 GB, free: 11.18 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002482/0.5224, allocations: 0.583 MB / 0.6669 GB, free: 10.6 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02572/0.5482, allocations: 21.95 MB / 0.6883 GB, free: 2.934 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00144/0.5497, allocations: 1.468 MB / 0.6897 GB, free: 1.438 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001452/0.5511, allocations: 348.6 kB / 0.6901 GB, free: 1.09 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000985/0.5521, allocations: 0.7258 MB / 0.6908 GB, free: 372 kB / 0.4981 GB Notification: Performance of SimCode: time 1.172e-06/0.5522, allocations: 4 kB / 0.6908 GB, free: 368 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07934/0.6315, allocations: 47.6 MB / 0.7372 GB, free: 0.6211 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.61, allocations: 4 kB / 0.7373 GB, free: 0.6172 MB / 0.545 GB (rm -f ThermoPower_ThermoPower.Test.GasComponents.TestGT.pipe ; mkfifo ThermoPower_ThermoPower.Test.GasComponents.TestGT.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.GasComponents.TestGT.pipe >> ../files/ThermoPower_ThermoPower.Test.GasComponents.TestGT.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.GasComponents.TestGT_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ThermoPower_ThermoPower_Test_GasComponents_TestGT.fmu > ThermoPower_ThermoPower.Test.GasComponents.TestGT.pipe 2>&1)