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.001307/0.001306, allocations: 108.8 kB / 17.06 MB, free: 6.016 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.001341/0.001341, allocations: 189.4 kB / 18 MB, free: 5.102 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.378/1.378, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2937/0.2937, allocations: 48.85 MB / 320.1 MB, free: 11.02 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.002379/0.002379, allocations: 71.89 kB / 450 MB, free: 9.066 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1212, allocations: 59.15 MB / 0.4972 GB, free: 13.79 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.GasComponents.TestGT): time 0.4439/0.5651, allocations: 186.2 MB / 0.679 GB, free: 388 kB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.004319/0.5695, allocations: 1.941 MB / 0.6809 GB, free: 14.43 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008296/0.5704, allocations: 15.94 kB / 0.6809 GB, free: 14.42 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001259/0.5717, allocations: 377.6 kB / 0.6813 GB, free: 14.05 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.001942/0.5736, allocations: 0.7933 MB / 0.6821 GB, free: 13.25 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.002902/0.5765, allocations: 1.054 MB / 0.6831 GB, free: 12.2 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.002836/0.5794, allocations: 1.875 MB / 0.6849 GB, free: 10.32 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001313/0.5807, allocations: 0.6439 MB / 0.6856 GB, free: 9.664 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001905/0.5826, allocations: 0.8214 MB / 0.6864 GB, free: 8.84 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001539/0.5842, allocations: 0.7866 MB / 0.6871 GB, free: 8.051 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0003893/0.5846, allocations: 84 kB / 0.6872 GB, free: 7.969 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002399/0.587, allocations: 0.678 MB / 0.6879 GB, free: 7.289 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.00133/0.5884, allocations: 0.7947 MB / 0.6887 GB, free: 6.492 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.001835/0.5902, allocations: 0.9514 MB / 0.6896 GB, free: 5.535 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.004133/0.5944, allocations: 2.46 MB / 0.692 GB, free: 3.07 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.5944, allocations: 4 kB / 0.692 GB, free: 3.066 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.873e-06/0.5944, allocations: 0 / 0.692 GB, free: 3.066 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 6.856e-05/0.5945, allocations: 0 / 0.692 GB, free: 3.066 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.005473/0.5999, allocations: 2.465 MB / 0.6944 GB, free: 0.5352 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.842e-05/0.6, allocations: 11.89 kB / 0.6944 GB, free: 0.5234 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003887/0.6004, allocations: 147.5 kB / 0.6946 GB, free: 380 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001451/0.6019, allocations: 314.4 kB / 0.6949 GB, free: 64 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002829/0.6047, allocations: 1.417 MB / 0.6962 GB, free: 14.57 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000147/0.6049, allocations: 95.64 kB / 0.6963 GB, free: 14.48 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002215/0.6051, allocations: 84 kB / 0.6964 GB, free: 14.39 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002454/0.6076, allocations: 1.137 MB / 0.6975 GB, free: 13.2 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.392e-05/0.6077, allocations: 8 kB / 0.6975 GB, free: 13.19 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000179/0.6078, allocations: 44 kB / 0.6976 GB, free: 13.15 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.496e-05/0.6079, allocations: 34 kB / 0.6976 GB, free: 13.12 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001606/0.6095, allocations: 0.8233 MB / 0.6984 GB, free: 12.29 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.00964/0.6192, allocations: 5.123 MB / 0.7034 GB, free: 6.934 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007446/0.6199, allocations: 310.5 kB / 0.7037 GB, free: 6.613 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002724/0.6202, allocations: 141.7 kB / 0.7038 GB, free: 6.469 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 4.596e-05/0.6203, allocations: 8.594 kB / 0.7038 GB, free: 6.461 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.07e-05/0.6204, allocations: 46.55 kB / 0.7039 GB, free: 6.406 MB / 0.545 GB Notification: Performance of pre-optimization done (n=38): time 2.715e-06/0.6204, allocations: 3.938 kB / 0.7039 GB, free: 6.402 MB / 0.545 GB Notification: Performance of matching and sorting (n=40): time 0.003478/0.6239, allocations: 1.708 MB / 0.7056 GB, free: 4.637 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.21e-05/0.6239, allocations: 93.22 kB / 0.7057 GB, free: 4.527 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005678/0.6296, allocations: 3.435 MB / 0.709 GB, free: 1.074 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0001321/0.6298, allocations: 37.7 kB / 0.709 GB, free: 1.031 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.001058/0.6309, allocations: 0.9838 MB / 0.71 GB, free: 44 kB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001999/0.6311, allocations: 150.9 kB / 0.7101 GB, free: 15.89 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002661/0.6314, allocations: 130.2 kB / 0.7103 GB, free: 15.76 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001568/0.6315, allocations: 333.9 kB / 0.7106 GB, free: 15.43 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004316/0.632, allocations: 205.1 kB / 0.7108 GB, free: 15.22 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005741/0.6325, allocations: 398.9 kB / 0.7112 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009141/0.6335, allocations: 0.5681 MB / 0.7117 GB, free: 14.1 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.68e-06/0.6335, allocations: 0 / 0.7117 GB, free: 14.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001758/0.6353, allocations: 0.8694 MB / 0.7126 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.011e-05/0.6353, allocations: 12 kB / 0.7126 GB, free: 13.22 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.744e-05/0.6353, allocations: 12 kB / 0.7126 GB, free: 13.21 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.759e-05/0.6354, allocations: 8 kB / 0.7126 GB, free: 13.2 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001119/0.6365, allocations: 218 kB / 0.7128 GB, free: 12.99 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009012/0.6374, allocations: 1.203 MB / 0.714 GB, free: 11.74 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009577/0.6384, allocations: 39.92 kB / 0.714 GB, free: 11.7 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.127e-05/0.6385, allocations: 31.94 kB / 0.7141 GB, free: 11.67 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.001099/0.6396, allocations: 0.5918 MB / 0.7146 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005296/0.6401, allocations: 226.5 kB / 0.7148 GB, free: 10.84 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001229/0.6414, allocations: 0.5358 MB / 0.7154 GB, free: 10.3 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.568e-06/0.6414, allocations: 4 kB / 0.7154 GB, free: 10.29 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.6414, allocations: 3.938 kB / 0.7154 GB, free: 10.29 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.6414, allocations: 3.984 kB / 0.7154 GB, free: 10.29 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00353/0.6449, allocations: 1.818 MB / 0.7172 GB, free: 8.398 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.209e-06/0.645, allocations: 1.312 kB / 0.7172 GB, free: 8.398 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007703/0.6457, allocations: 135.9 kB / 0.7173 GB, free: 8.266 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.083e-05/0.6458, allocations: 4 kB / 0.7173 GB, free: 8.262 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.441e-05/0.6458, allocations: 4.875 kB / 0.7173 GB, free: 8.258 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007764/0.6466, allocations: 1.203 MB / 0.7185 GB, free: 7.008 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.6466, allocations: 0 / 0.7185 GB, free: 7.008 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00138/0.648, allocations: 0.773 MB / 0.7192 GB, free: 6.215 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009364/0.6489, allocations: 447.4 kB / 0.7197 GB, free: 5.758 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004076/0.6494, allocations: 8 kB / 0.7197 GB, free: 5.75 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009611/0.6503, allocations: 41.06 kB / 0.7197 GB, free: 5.711 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.056e-05/0.6504, allocations: 23.97 kB / 0.7197 GB, free: 5.688 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.39e-05/0.6505, allocations: 23.97 kB / 0.7197 GB, free: 5.664 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004257/0.6548, allocations: 2.447 MB / 0.7221 GB, free: 3.207 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.8e-07/0.6548, allocations: 0 / 0.7221 GB, free: 3.207 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001455/0.6562, allocations: 331.8 kB / 0.7224 GB, free: 2.883 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.00379/0.66, allocations: 1.783 MB / 0.7242 GB, free: 1.066 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001174/0.6612, allocations: 461.9 kB / 0.7246 GB, free: 0.6094 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.746e-06/0.6613, allocations: 6.125 kB / 0.7246 GB, free: 0.6055 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0004023/0.6617, allocations: 167.7 kB / 0.7248 GB, free: 452 kB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003625/0.6653, allocations: 0.5981 MB / 0.7254 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03429/0.6996, allocations: 18.62 MB / 0.7436 GB, free: 12.85 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00171/0.7014, allocations: 1.472 MB / 0.745 GB, free: 11.35 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.001228/0.7026, allocations: 340.6 kB / 0.7453 GB, free: 11.01 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00114/0.7038, allocations: 0.7336 MB / 0.746 GB, free: 10.27 MB / 0.5919 GB Notification: Performance of SimCode: time 1.102e-06/0.7038, allocations: 0 / 0.746 GB, free: 10.27 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3122/1.016, allocations: 46.37 MB / 0.7913 GB, free: 203.8 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.75/16.76, allocations: 12 kB / 0.7913 GB, free: 203.8 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)