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.001502/0.001502, allocations: 112 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.001677/0.001677, allocations: 194.9 kB / 18.01 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.385/1.385, 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.2628/0.2628, 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.00147/0.00147, allocations: 75.89 kB / 450 MB, free: 9.039 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09448/0.09597, allocations: 59.15 MB / 0.4972 GB, free: 13.76 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.GasComponents.TestGT): time 0.3938/0.4898, allocations: 186.2 MB / 0.679 GB, free: 344 kB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.003444/0.4933, allocations: 1.934 MB / 0.6809 GB, free: 14.4 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000554/0.4939, allocations: 11.94 kB / 0.6809 GB, free: 14.39 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001101/0.495, allocations: 385.6 kB / 0.6813 GB, free: 14.01 MB / 0.5294 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.001565/0.4966, allocations: 0.8089 MB / 0.6821 GB, free: 13.2 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.002722/0.4993, allocations: 1.069 MB / 0.6831 GB, free: 12.13 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.002244/0.5016, allocations: 1.875 MB / 0.685 GB, free: 10.25 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001112/0.5027, allocations: 0.6542 MB / 0.6856 GB, free: 9.582 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001633/0.5044, allocations: 0.8253 MB / 0.6864 GB, free: 8.754 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001144/0.5055, allocations: 0.7982 MB / 0.6872 GB, free: 7.953 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0002621/0.5058, allocations: 84 kB / 0.6873 GB, free: 7.871 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00173/0.5075, allocations: 0.6625 MB / 0.6879 GB, free: 7.207 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0007806/0.5084, allocations: 0.7986 MB / 0.6887 GB, free: 6.406 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.001315/0.5097, allocations: 0.9515 MB / 0.6896 GB, free: 5.449 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.003232/0.5129, allocations: 2.46 MB / 0.692 GB, free: 2.984 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.513, allocations: 0 / 0.692 GB, free: 2.984 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.224e-06/0.513, allocations: 0 / 0.692 GB, free: 2.984 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 8.198e-05/0.513, allocations: 0 / 0.692 GB, free: 2.984 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: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.004694/0.5177, allocations: 2.465 MB / 0.6944 GB, free: 464 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.452e-05/0.5178, allocations: 11.89 kB / 0.6944 GB, free: 452 kB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002551/0.5181, allocations: 147.5 kB / 0.6946 GB, free: 296 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001128/0.5192, allocations: 314.6 kB / 0.6949 GB, free: 15.98 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002495/0.5217, allocations: 1.417 MB / 0.6963 GB, free: 14.49 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.616e-05/0.5218, allocations: 91.7 kB / 0.6964 GB, free: 14.4 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001632/0.522, allocations: 87.94 kB / 0.6964 GB, free: 14.31 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001933/0.5239, allocations: 1.138 MB / 0.6976 GB, free: 13.12 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.982e-05/0.524, allocations: 7.938 kB / 0.6976 GB, free: 13.11 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001268/0.5241, allocations: 40 kB / 0.6976 GB, free: 13.07 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.323e-05/0.5242, allocations: 41.94 kB / 0.6976 GB, free: 13.03 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001343/0.5255, allocations: 0.8195 MB / 0.6984 GB, free: 12.21 MB / 0.545 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.008513/0.5341, allocations: 5.119 MB / 0.7034 GB, free: 6.855 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007097/0.5348, allocations: 317.3 kB / 0.7037 GB, free: 6.527 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002613/0.5351, allocations: 149.6 kB / 0.7039 GB, free: 6.375 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.929e-05/0.5351, allocations: 12.52 kB / 0.7039 GB, free: 6.363 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.099e-05/0.5352, allocations: 46.5 kB / 0.7039 GB, free: 6.309 MB / 0.545 GB Notification: Performance of pre-optimization done (n=38): time 2.184e-06/0.5352, allocations: 0 / 0.7039 GB, free: 6.309 MB / 0.545 GB Notification: Performance of matching and sorting (n=40): time 0.003242/0.5384, allocations: 1.708 MB / 0.7056 GB, free: 4.543 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.974e-05/0.5385, allocations: 85.23 kB / 0.7057 GB, free: 4.441 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005072/0.5436, allocations: 3.439 MB / 0.709 GB, free: 0.9844 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 9.5e-05/0.5437, allocations: 41.7 kB / 0.7091 GB, free: 0.9375 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008883/0.5446, allocations: 0.9801 MB / 0.71 GB, free: 15.95 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001503/0.5448, allocations: 150.7 kB / 0.7102 GB, free: 15.8 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000243/0.545, allocations: 134.2 kB / 0.7103 GB, free: 15.66 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001208/0.5451, allocations: 330 kB / 0.7106 GB, free: 15.34 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000399/0.5456, allocations: 202.1 kB / 0.7108 GB, free: 15.14 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004838/0.546, allocations: 402 kB / 0.7112 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008032/0.5469, allocations: 0.5681 MB / 0.7118 GB, free: 14.01 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/0.5469, allocations: 0 / 0.7118 GB, free: 14.01 MB / 0.5606 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001514/0.5484, allocations: 0.8655 MB / 0.7126 GB, free: 13.14 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.372e-05/0.5484, allocations: 8.094 kB / 0.7126 GB, free: 13.14 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.471e-05/0.5485, allocations: 8 kB / 0.7126 GB, free: 13.13 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.761e-05/0.5485, allocations: 8 kB / 0.7126 GB, free: 13.12 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001137/0.5496, allocations: 222 kB / 0.7128 GB, free: 12.91 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007666/0.5504, allocations: 1.205 MB / 0.714 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001082/0.5515, allocations: 39.92 kB / 0.7141 GB, free: 11.62 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.263e-05/0.5516, allocations: 28 kB / 0.7141 GB, free: 11.59 MB / 0.5606 GB 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.0008548/0.5525, allocations: 0.5879 MB / 0.7147 GB, free: 10.99 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000449/0.5529, allocations: 226.5 kB / 0.7149 GB, free: 10.77 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009862/0.5539, allocations: 0.5381 MB / 0.7154 GB, free: 10.22 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.554, allocations: 4 kB / 0.7154 GB, free: 10.21 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.554, allocations: 0 / 0.7154 GB, free: 10.21 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/0.554, allocations: 3.984 kB / 0.7154 GB, free: 10.21 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003194/0.5572, allocations: 1.828 MB / 0.7172 GB, free: 8.316 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.5572, allocations: 0 / 0.7172 GB, free: 8.316 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007952/0.558, allocations: 131.9 kB / 0.7173 GB, free: 8.188 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.536e-06/0.558, allocations: 4 kB / 0.7173 GB, free: 8.184 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.875e-05/0.5581, allocations: 8 kB / 0.7173 GB, free: 8.176 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005966/0.5587, allocations: 1.2 MB / 0.7185 GB, free: 6.93 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.5587, allocations: 3.938 kB / 0.7185 GB, free: 6.926 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001199/0.5599, allocations: 0.7731 MB / 0.7193 GB, free: 6.133 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001016/0.5609, allocations: 443.4 kB / 0.7197 GB, free: 5.68 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003451/0.5613, allocations: 8 kB / 0.7197 GB, free: 5.672 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009923/0.5623, allocations: 40.06 kB / 0.7197 GB, free: 5.633 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.205e-05/0.5624, allocations: 27.95 kB / 0.7198 GB, free: 5.605 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.648e-05/0.5624, allocations: 28.86 kB / 0.7198 GB, free: 5.578 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003337/0.5658, allocations: 2.443 MB / 0.7222 GB, free: 3.125 MB / 0.5606 GB Notification: Performance of sort global known variables: time 4.71e-07/0.5658, allocations: 0 / 0.7222 GB, free: 3.125 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001184/0.567, allocations: 335.7 kB / 0.7225 GB, free: 2.797 MB / 0.5606 GB 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.002842/0.5698, allocations: 1.775 MB / 0.7242 GB, free: 0.9883 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001002/0.5709, allocations: 465.8 kB / 0.7247 GB, free: 0.5273 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.122e-06/0.5709, allocations: 6.125 kB / 0.7247 GB, free: 0.5234 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0003497/0.5712, allocations: 167.8 kB / 0.7248 GB, free: 368 kB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002803/0.5741, allocations: 0.5979 MB / 0.7254 GB, free: 15.76 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02406/0.5981, allocations: 18.63 MB / 0.7436 GB, free: 12.76 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001079/0.5993, allocations: 1.46 MB / 0.745 GB, free: 11.27 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.001027/0.6003, allocations: 348.6 kB / 0.7454 GB, free: 10.93 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008852/0.6012, allocations: 0.7336 MB / 0.7461 GB, free: 10.19 MB / 0.5919 GB Notification: Performance of SimCode: time 7.42e-07/0.6012, allocations: 0 / 0.7461 GB, free: 10.19 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2949/0.8961, allocations: 46.36 MB / 0.7914 GB, free: 203.7 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.78/16.67, allocations: 11.17 kB / 0.7914 GB, free: 203.7 MB / 0.5919 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)