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.00118/0.00118, allocations: 112 kB / 17.06 MB, free: 5.988 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.001184/0.001184, allocations: 195.9 kB / 18 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.421/1.421, 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.271/0.271, allocations: 48.86 MB / 320.1 MB, free: 11.01 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.001543/0.001544, allocations: 68.12 kB / 450 MB, free: 9.082 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1053, allocations: 59.16 MB / 0.4972 GB, free: 13.79 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.GasComponents.TestGasTurbineStodola): time 0.4296/0.5349, allocations: 170.6 MB / 0.6639 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.00581/0.5408, allocations: 3.759 MB / 0.6676 GB, free: 12.19 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000543/0.5414, allocations: 11.94 kB / 0.6676 GB, free: 12.18 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0009067/0.5423, allocations: 274.4 kB / 0.6678 GB, free: 11.91 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.001136/0.5435, allocations: 453.6 kB / 0.6683 GB, free: 11.46 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.004057/0.5476, allocations: 1.48 MB / 0.6697 GB, free: 9.984 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.001936/0.5495, allocations: 1.21 MB / 0.6709 GB, free: 8.773 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007244/0.5502, allocations: 364.8 kB / 0.6712 GB, free: 8.414 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009089/0.5512, allocations: 470.4 kB / 0.6717 GB, free: 7.953 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005944/0.5518, allocations: 414.5 kB / 0.6721 GB, free: 7.547 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0001146/0.5519, allocations: 52 kB / 0.6721 GB, free: 7.496 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002919/0.5548, allocations: 1.427 MB / 0.6735 GB, free: 6.066 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0003401/0.5552, allocations: 327.2 kB / 0.6738 GB, free: 5.746 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0005174/0.5557, allocations: 410 kB / 0.6742 GB, free: 5.344 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.002412/0.5581, allocations: 1.625 MB / 0.6758 GB, free: 3.715 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.5581, allocations: 3.938 kB / 0.6758 GB, free: 3.711 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.472e-06/0.5581, allocations: 0 / 0.6758 GB, free: 3.711 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 2.582e-05/0.5582, allocations: 0 / 0.6758 GB, free: 3.711 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.002012/0.5602, allocations: 1.155 MB / 0.6769 GB, free: 2.504 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.608e-05/0.5603, allocations: 11.89 kB / 0.677 GB, free: 2.492 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001181/0.5604, allocations: 98.45 kB / 0.677 GB, free: 2.387 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007442/0.5611, allocations: 143.4 kB / 0.6772 GB, free: 2.246 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008324/0.562, allocations: 0.524 MB / 0.6777 GB, free: 1.68 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.894e-05/0.562, allocations: 37.31 kB / 0.6777 GB, free: 1.641 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.127e-05/0.5621, allocations: 51.98 kB / 0.6778 GB, free: 1.59 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001021/0.5631, allocations: 0.6119 MB / 0.6784 GB, free: 0.9648 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.981e-05/0.5632, allocations: 7.891 kB / 0.6784 GB, free: 0.957 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.478e-05/0.5632, allocations: 31.94 kB / 0.6784 GB, free: 0.9258 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.221e-05/0.5632, allocations: 12 kB / 0.6784 GB, free: 0.9141 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007265/0.564, allocations: 473 kB / 0.6789 GB, free: 464 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.004282/0.5683, allocations: 2.303 MB / 0.6811 GB, free: 13.98 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002569/0.5685, allocations: 134.6 kB / 0.6813 GB, free: 13.84 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.37e-05/0.5686, allocations: 52.84 kB / 0.6813 GB, free: 13.79 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002671/0.5689, allocations: 125.1 kB / 0.6814 GB, free: 13.65 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.836e-05/0.569, allocations: 38.56 kB / 0.6815 GB, free: 13.6 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=15): time 1.373e-06/0.569, allocations: 0 / 0.6815 GB, free: 13.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=15): time 0.0005093/0.5695, allocations: 249 kB / 0.6817 GB, free: 13.35 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.353e-05/0.5695, allocations: 51.41 kB / 0.6817 GB, free: 13.29 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001184/0.5707, allocations: 0.9889 MB / 0.6827 GB, free: 12.29 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 5.04e-05/0.5708, allocations: 33.7 kB / 0.6827 GB, free: 12.25 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003039/0.5711, allocations: 395.9 kB / 0.6831 GB, free: 11.86 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 5.704e-05/0.5712, allocations: 55.53 kB / 0.6832 GB, free: 11.8 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001325/0.5713, allocations: 82.08 kB / 0.6833 GB, free: 11.72 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001156/0.5714, allocations: 329.9 kB / 0.6836 GB, free: 11.39 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002276/0.5717, allocations: 130.7 kB / 0.6837 GB, free: 11.26 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002873/0.5719, allocations: 254.3 kB / 0.6839 GB, free: 10.95 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004378/0.5724, allocations: 333.7 kB / 0.6843 GB, free: 10.56 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.873e-06/0.5724, allocations: 4 kB / 0.6843 GB, free: 10.55 MB / 0.5294 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007622/0.5732, allocations: 480.5 kB / 0.6847 GB, free: 10.08 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.934e-05/0.5732, allocations: 8 kB / 0.6847 GB, free: 10.07 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.5732, allocations: 7.938 kB / 0.6847 GB, free: 10.06 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.053e-05/0.5732, allocations: 4.688 kB / 0.6847 GB, free: 10.06 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005268/0.5738, allocations: 112.4 kB / 0.6848 GB, free: 9.949 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000377/0.5742, allocations: 0.6016 MB / 0.6854 GB, free: 9.324 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005041/0.5747, allocations: 83.38 kB / 0.6855 GB, free: 9.242 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.764e-05/0.5747, allocations: 23.94 kB / 0.6855 GB, free: 9.219 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.0003227/0.5751, allocations: 255.3 kB / 0.6858 GB, free: 8.961 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001364/0.5752, allocations: 88.36 kB / 0.6859 GB, free: 8.875 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003722/0.5756, allocations: 212.6 kB / 0.6861 GB, free: 8.656 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.5756, allocations: 4 kB / 0.6861 GB, free: 8.652 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.5756, allocations: 0 / 0.6861 GB, free: 8.652 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.5756, allocations: 3.984 kB / 0.6861 GB, free: 8.648 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001182/0.5768, allocations: 0.8012 MB / 0.6869 GB, free: 7.781 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.62e-06/0.5768, allocations: 11.66 kB / 0.6869 GB, free: 7.773 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002388/0.5771, allocations: 39.97 kB / 0.6869 GB, free: 7.734 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.109e-06/0.5771, allocations: 7.938 kB / 0.6869 GB, free: 7.727 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.709e-05/0.5771, allocations: 7.984 kB / 0.6869 GB, free: 7.719 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003141/0.5774, allocations: 0.5976 MB / 0.6875 GB, free: 7.098 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.5775, allocations: 3.984 kB / 0.6875 GB, free: 7.094 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004814/0.5779, allocations: 386.3 kB / 0.6879 GB, free: 6.691 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002385/0.5782, allocations: 180.5 kB / 0.688 GB, free: 6.496 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.623e-05/0.5783, allocations: 8 kB / 0.6881 GB, free: 6.488 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004677/0.5788, allocations: 11.98 kB / 0.6881 GB, free: 6.477 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.145e-05/0.5788, allocations: 20.05 kB / 0.6881 GB, free: 6.457 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.512e-05/0.5789, allocations: 11.98 kB / 0.6881 GB, free: 6.445 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0008298/0.5797, allocations: 0.7059 MB / 0.6888 GB, free: 5.742 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.3e-07/0.5797, allocations: 0 / 0.6888 GB, free: 5.742 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0007152/0.5804, allocations: 207.6 kB / 0.689 GB, free: 5.539 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.002096/0.5825, allocations: 1.37 MB / 0.6903 GB, free: 4.137 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.000599/0.5831, allocations: 244 kB / 0.6906 GB, free: 3.898 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/0.5832, allocations: 4 kB / 0.6906 GB, free: 3.895 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0001542/0.5833, allocations: 67.86 kB / 0.6906 GB, free: 3.828 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001486/0.5848, allocations: 320.8 kB / 0.6909 GB, free: 3.52 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008163/0.593, allocations: 6.341 MB / 0.6971 GB, free: 12.95 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005504/0.5936, allocations: 0.9174 MB / 0.698 GB, free: 12 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.000527/0.5941, allocations: 141.9 kB / 0.6982 GB, free: 11.86 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003265/0.5944, allocations: 235.4 kB / 0.6984 GB, free: 11.63 MB / 0.545 GB Notification: Performance of SimCode: time 5.71e-07/0.5944, allocations: 0 / 0.6984 GB, free: 11.63 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04748/0.6419, allocations: 22.2 MB / 0.7201 GB, free: 5.344 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.55/13.19, allocations: 0 / 0.7201 GB, free: 5.344 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)