Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.GasComponents.TestGasTurbineStodola.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.TestGasTurbineStodola,fileNamePrefix="ThermoPower_ThermoPower_Test_GasComponents_TestGasTurbineStodola",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.GasComponents.TestGasTurbineStodola,fileNamePrefix="ThermoPower_ThermoPower_Test_GasComponents_TestGasTurbineStodola",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.001932/0.001931, allocations: 105.5 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.002206/0.002206, allocations: 192 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.405/1.405, 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.2892/0.2892, 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.001987/0.001987, allocations: 71.89 kB / 450 MB, free: 9.066 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1096, allocations: 59.16 MB / 0.4973 GB, free: 13.78 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.GasComponents.TestGasTurbineStodola): time 0.4073/0.517, allocations: 170.6 MB / 0.6639 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.005748/0.5228, allocations: 3.755 MB / 0.6675 GB, free: 12.2 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004452/0.5233, allocations: 11.94 kB / 0.6676 GB, free: 12.18 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0009083/0.5242, allocations: 270.4 kB / 0.6678 GB, free: 11.92 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.001192/0.5254, allocations: 445.6 kB / 0.6682 GB, free: 11.48 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.003778/0.5292, allocations: 1.472 MB / 0.6697 GB, free: 10.01 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.001721/0.531, allocations: 1.21 MB / 0.6709 GB, free: 8.801 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005955/0.5316, allocations: 368.3 kB / 0.6712 GB, free: 8.438 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008064/0.5324, allocations: 462.4 kB / 0.6717 GB, free: 7.984 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006317/0.533, allocations: 410.5 kB / 0.672 GB, free: 7.582 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0001152/0.5331, allocations: 56 kB / 0.6721 GB, free: 7.527 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003196/0.5364, allocations: 1.434 MB / 0.6735 GB, free: 6.09 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0003454/0.5367, allocations: 315.2 kB / 0.6738 GB, free: 5.781 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0004843/0.5372, allocations: 410 kB / 0.6742 GB, free: 5.379 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.002477/0.5397, allocations: 1.621 MB / 0.6758 GB, free: 3.754 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.5397, allocations: 0 / 0.6758 GB, free: 3.754 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.512e-06/0.5397, allocations: 3.938 kB / 0.6758 GB, free: 3.75 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.7e-05/0.5397, allocations: 0 / 0.6758 GB, free: 3.75 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001942/0.5417, allocations: 1.151 MB / 0.6769 GB, free: 2.547 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.848e-05/0.5417, allocations: 19.83 kB / 0.6769 GB, free: 2.527 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001149/0.5419, allocations: 94.45 kB / 0.677 GB, free: 2.426 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006987/0.5426, allocations: 143.4 kB / 0.6771 GB, free: 2.285 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007578/0.5433, allocations: 0.524 MB / 0.6777 GB, free: 1.719 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.048e-05/0.5434, allocations: 41.25 kB / 0.6777 GB, free: 1.676 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.137e-05/0.5435, allocations: 52 kB / 0.6777 GB, free: 1.625 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001029/0.5445, allocations: 0.6119 MB / 0.6783 GB, free: 1 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.2e-05/0.5445, allocations: 11.89 kB / 0.6784 GB, free: 0.9883 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.697e-05/0.5446, allocations: 31.94 kB / 0.6784 GB, free: 0.957 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.351e-05/0.5447, allocations: 12 kB / 0.6784 GB, free: 0.9453 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007575/0.5454, allocations: 469 kB / 0.6788 GB, free: 500 kB / 0.5137 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.004139/0.5496, allocations: 2.307 MB / 0.6811 GB, free: 14.02 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002673/0.5498, allocations: 134.6 kB / 0.6812 GB, free: 13.88 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001028/0.55, allocations: 56.84 kB / 0.6813 GB, free: 13.82 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002742/0.5502, allocations: 121.1 kB / 0.6814 GB, free: 13.68 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.463e-05/0.5503, allocations: 39.75 kB / 0.6814 GB, free: 13.63 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=15): time 1.373e-06/0.5503, allocations: 4 kB / 0.6814 GB, free: 13.63 MB / 0.5294 GB Notification: Performance of matching and sorting (n=15): time 0.0005036/0.5508, allocations: 245 kB / 0.6817 GB, free: 13.38 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.187e-05/0.5509, allocations: 55.41 kB / 0.6817 GB, free: 13.32 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001238/0.5521, allocations: 0.985 MB / 0.6827 GB, free: 12.32 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 3.435e-05/0.5521, allocations: 33.7 kB / 0.6827 GB, free: 12.29 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003198/0.5525, allocations: 391.9 kB / 0.6831 GB, free: 11.89 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 5.428e-05/0.5525, allocations: 59.59 kB / 0.6832 GB, free: 11.84 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001451/0.5527, allocations: 82.08 kB / 0.6832 GB, free: 11.75 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001396/0.5528, allocations: 329.9 kB / 0.6835 GB, free: 11.42 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00022/0.553, allocations: 130.6 kB / 0.6837 GB, free: 11.29 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003158/0.5534, allocations: 258.3 kB / 0.6839 GB, free: 10.98 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005213/0.5539, allocations: 333.7 kB / 0.6842 GB, free: 10.59 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.5539, allocations: 0 / 0.6842 GB, free: 10.59 MB / 0.5294 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007624/0.5547, allocations: 472.5 kB / 0.6847 GB, free: 10.12 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.5547, allocations: 11.98 kB / 0.6847 GB, free: 10.11 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.471e-05/0.5547, allocations: 7.938 kB / 0.6847 GB, free: 10.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.022e-05/0.5548, allocations: 8.562 kB / 0.6847 GB, free: 10.09 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005659/0.5553, allocations: 115.8 kB / 0.6848 GB, free: 9.977 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004089/0.5558, allocations: 0.6016 MB / 0.6854 GB, free: 9.352 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004288/0.5562, allocations: 76.27 kB / 0.6855 GB, free: 9.277 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.956e-05/0.5563, allocations: 27.98 kB / 0.6855 GB, free: 9.25 MB / 0.5294 GB Warning: Assuming fixed start value for the following 1 variables: ConstantSpeed1.phi:VARIABLE(unit = "rad" fixed = true ) "Angle of flange with respect to support (= flange.phi - support.phi)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (48): * Single equations (assignments): 47 * 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.0003356/0.5566, allocations: 255.3 kB / 0.6858 GB, free: 8.992 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001247/0.5567, allocations: 75.53 kB / 0.6858 GB, free: 8.918 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000402/0.5571, allocations: 224.4 kB / 0.686 GB, free: 8.688 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.97e-06/0.5572, allocations: 4 kB / 0.686 GB, free: 8.684 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.5572, allocations: 0 / 0.686 GB, free: 8.684 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.5572, allocations: 3.312 kB / 0.686 GB, free: 8.684 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001175/0.5584, allocations: 0.809 MB / 0.6868 GB, free: 7.809 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.5584, allocations: 4 kB / 0.6868 GB, free: 7.805 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002273/0.5586, allocations: 43.97 kB / 0.6869 GB, free: 7.762 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.402e-06/0.5586, allocations: 7.938 kB / 0.6869 GB, free: 7.754 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.389e-05/0.5586, allocations: 0 / 0.6869 GB, free: 7.754 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000445/0.5591, allocations: 0.6015 MB / 0.6875 GB, free: 7.129 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.5591, allocations: 0 / 0.6875 GB, free: 7.129 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000497/0.5596, allocations: 394.7 kB / 0.6879 GB, free: 6.719 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001962/0.5598, allocations: 172.5 kB / 0.688 GB, free: 6.531 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.301e-05/0.5599, allocations: 8 kB / 0.688 GB, free: 6.523 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004061/0.5603, allocations: 23.97 kB / 0.688 GB, free: 6.5 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.122e-05/0.5604, allocations: 12.05 kB / 0.6881 GB, free: 6.488 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.682e-05/0.5604, allocations: 15.98 kB / 0.6881 GB, free: 6.473 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0009064/0.5613, allocations: 0.6981 MB / 0.6888 GB, free: 5.777 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.41e-07/0.5613, allocations: 0 / 0.6888 GB, free: 5.777 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0007578/0.5621, allocations: 215.6 kB / 0.689 GB, free: 5.566 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 1 (ConstantSpeed1.phi) * 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 (16): * Single equations (assignments): 15 * 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.002524/0.5646, allocations: 1.367 MB / 0.6903 GB, free: 4.164 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0005567/0.5652, allocations: 247.9 kB / 0.6905 GB, free: 3.922 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.593e-06/0.5652, allocations: 0 / 0.6905 GB, free: 3.922 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0001519/0.5654, allocations: 71.84 kB / 0.6906 GB, free: 3.852 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001501/0.5669, allocations: 316.9 kB / 0.6909 GB, free: 3.547 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008374/0.5753, allocations: 6.337 MB / 0.6971 GB, free: 12.97 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005944/0.5759, allocations: 0.9096 MB / 0.698 GB, free: 12.04 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0004789/0.5764, allocations: 153.8 kB / 0.6981 GB, free: 11.88 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003394/0.5767, allocations: 235.4 kB / 0.6984 GB, free: 11.65 MB / 0.545 GB Notification: Performance of SimCode: time 7.32e-07/0.5767, allocations: 0 / 0.6984 GB, free: 11.65 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05372/0.6305, allocations: 22.2 MB / 0.72 GB, free: 5.371 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.8/13.43, allocations: 0 / 0.72 GB, free: 5.371 MB / 0.5606 GB (rm -f ThermoPower_ThermoPower.Test.GasComponents.TestGasTurbineStodola.pipe ; mkfifo ThermoPower_ThermoPower.Test.GasComponents.TestGasTurbineStodola.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.GasComponents.TestGasTurbineStodola.pipe >> ../files/ThermoPower_ThermoPower.Test.GasComponents.TestGasTurbineStodola.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.GasComponents.TestGasTurbineStodola_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ThermoPower_ThermoPower_Test_GasComponents_TestGasTurbineStodola.fmu > ThermoPower_ThermoPower.Test.GasComponents.TestGasTurbineStodola.pipe 2>&1)