Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Processes.Tests.Turbine.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(ThermofluidStream.Processes.Tests.Turbine,fileNamePrefix="ThermofluidStream_ThermofluidStream_Processes_Tests_Turbine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Processes.Tests.Turbine,fileNamePrefix="ThermofluidStream_ThermofluidStream_Processes_Tests_Turbine",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.001413/0.001413, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001666/0.001666, allocations: 193.2 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.355/1.355, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6635/0.6635, allocations: 91.2 MB / 381.6 MB, free: 9.422 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001461/0.001461, allocations: 85.17 kB / 460.4 MB, free: 23.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1118, allocations: 67.7 MB / 0.5157 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Turbine): time 0.3902/0.502, allocations: 149.3 MB / 0.6616 GB, free: 2.426 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01309/0.5152, allocations: 12.01 MB / 0.6733 GB, free: 8.719 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007559/0.516, allocations: 20.06 kB / 0.6733 GB, free: 8.711 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001091/0.5171, allocations: 301 kB / 0.6736 GB, free: 8.465 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001615/0.5188, allocations: 0.5409 MB / 0.6741 GB, free: 8.023 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002087/0.5209, allocations: 0.7096 MB / 0.6748 GB, free: 7.48 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001168/0.522, allocations: 0.9154 MB / 0.6757 GB, free: 6.949 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000306/0.5224, allocations: 172.5 kB / 0.6759 GB, free: 6.867 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000679/0.523, allocations: 384.6 kB / 0.6762 GB, free: 6.652 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007338/0.5238, allocations: 466.7 kB / 0.6767 GB, free: 6.379 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001239/0.5239, allocations: 55.44 kB / 0.6767 GB, free: 6.379 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002137/0.5261, allocations: 1.054 MB / 0.6778 GB, free: 5.883 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000173/0.5263, allocations: 155.2 kB / 0.6779 GB, free: 5.758 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000426/0.5267, allocations: 327.4 kB / 0.6782 GB, free: 5.539 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00186/0.5286, allocations: 1.077 MB / 0.6793 GB, free: 4.879 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.5286, allocations: 2.281 kB / 0.6793 GB, free: 4.879 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.5286, allocations: 0 / 0.6793 GB, free: 4.879 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.208e-05/0.5286, allocations: 0 / 0.6793 GB, free: 4.879 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.00218/0.5308, allocations: 1.068 MB / 0.6803 GB, free: 4.039 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/0.5309, allocations: 10.06 kB / 0.6803 GB, free: 4.039 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001057/0.531, allocations: 85.52 kB / 0.6804 GB, free: 3.961 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001549/0.5311, allocations: 75.12 kB / 0.6805 GB, free: 3.922 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006552/0.5318, allocations: 481.3 kB / 0.681 GB, free: 3.504 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.361e-05/0.5319, allocations: 102.9 kB / 0.6811 GB, free: 3.414 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.509e-05/0.532, allocations: 46.53 kB / 0.6811 GB, free: 3.398 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001046/0.533, allocations: 0.6512 MB / 0.6817 GB, free: 2.992 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.858e-05/0.5331, allocations: 0 / 0.6817 GB, free: 2.992 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.826e-05/0.5331, allocations: 20.56 kB / 0.6818 GB, free: 2.977 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.304e-05/0.5332, allocations: 26.8 kB / 0.6818 GB, free: 2.969 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001116/0.5343, allocations: 0.6652 MB / 0.6824 GB, free: 2.637 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003587/0.5379, allocations: 2.456 MB / 0.6848 GB, free: 0.6484 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001169/0.5391, allocations: 0.6209 MB / 0.6854 GB, free: 320 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005831/0.5397, allocations: 358.4 kB / 0.6858 GB, free: 140 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002335/0.542, allocations: 2.626 MB / 0.6883 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.87e-05/0.5421, allocations: 38.75 kB / 0.6884 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=62): time 3.637e-06/0.5421, allocations: 4 kB / 0.6884 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of matching and sorting (n=64): time 0.004253/0.5464, allocations: 2.15 MB / 0.6905 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.75e-05/0.5464, allocations: 59.94 kB / 0.6905 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005144/0.547, allocations: 431.7 kB / 0.6909 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.275e-05/0.547, allocations: 37.7 kB / 0.691 GB, free: 11.19 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001824/0.5472, allocations: 245.4 kB / 0.6912 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002344/0.5474, allocations: 216.8 kB / 0.6914 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001905/0.5476, allocations: 110.2 kB / 0.6915 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001673/0.5478, allocations: 370.8 kB / 0.6919 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004999/0.5483, allocations: 253.1 kB / 0.6921 GB, free: 10 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005854/0.5489, allocations: 333.5 kB / 0.6924 GB, free: 9.648 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001112/0.55, allocations: 0.6141 MB / 0.693 GB, free: 9.012 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.5501, allocations: 0 / 0.693 GB, free: 9.012 MB / 0.4981 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001642/0.5517, allocations: 0.8346 MB / 0.6939 GB, free: 8.164 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.205e-05/0.5517, allocations: 8 kB / 0.6939 GB, free: 8.156 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.23e-05/0.5518, allocations: 11.98 kB / 0.6939 GB, free: 8.145 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000447/0.5522, allocations: 133.5 kB / 0.694 GB, free: 8.012 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004946/0.5527, allocations: 115.8 kB / 0.6941 GB, free: 7.898 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00291/0.5556, allocations: 2.46 MB / 0.6965 GB, free: 5.309 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004337/0.5561, allocations: 20.02 kB / 0.6965 GB, free: 5.289 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.533e-05/0.5562, allocations: 27.92 kB / 0.6966 GB, free: 5.262 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (56): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003339/0.5565, allocations: 209.6 kB / 0.6968 GB, free: 5.047 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001821/0.5567, allocations: 59.33 kB / 0.6968 GB, free: 4.988 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002066/0.5588, allocations: 1.033 MB / 0.6978 GB, free: 3.934 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.788e-06/0.5588, allocations: 8 kB / 0.6978 GB, free: 3.926 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.5588, allocations: 3.984 kB / 0.6978 GB, free: 3.922 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.5588, allocations: 0 / 0.6978 GB, free: 3.922 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002798/0.5616, allocations: 1.658 MB / 0.6995 GB, free: 2.199 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.391e-05/0.5617, allocations: 4 kB / 0.6995 GB, free: 2.195 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004516/0.5621, allocations: 95.12 kB / 0.6996 GB, free: 2.105 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003834/0.5625, allocations: 131.9 kB / 0.6997 GB, free: 1.977 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.525e-05/0.5626, allocations: 23.97 kB / 0.6997 GB, free: 1.953 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00254/0.5651, allocations: 2.4 MB / 0.702 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.5652, allocations: 0 / 0.702 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002059/0.5672, allocations: 1.256 MB / 0.7033 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001327/0.5674, allocations: 128.3 kB / 0.7034 GB, free: 14 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.659e-05/0.5675, allocations: 12 kB / 0.7034 GB, free: 13.99 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003298/0.5678, allocations: 20.03 kB / 0.7034 GB, free: 13.97 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.932e-05/0.5679, allocations: 44.48 kB / 0.7035 GB, free: 13.93 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.589e-05/0.5679, allocations: 23.98 kB / 0.7035 GB, free: 13.9 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003487/0.5683, allocations: 330.9 kB / 0.7038 GB, free: 13.58 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.5e-07/0.5683, allocations: 4 kB / 0.7038 GB, free: 13.58 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0008716/0.5692, allocations: 283.8 kB / 0.7041 GB, free: 13.3 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (turbine.m_flow,turbine1.m_flow,turbine1.phi,turbine1.omega) * 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 (50): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002821/0.572, allocations: 2.078 MB / 0.7061 GB, free: 11.19 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.00188/0.5739, allocations: 0.9779 MB / 0.7071 GB, free: 10.18 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.5739, allocations: 0 / 0.7071 GB, free: 10.18 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0009179/0.5748, allocations: 0.5791 MB / 0.7076 GB, free: 9.578 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001022/0.5759, allocations: 216 kB / 0.7078 GB, free: 9.383 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008817/0.5847, allocations: 6.017 MB / 0.7137 GB, free: 3.234 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004467/0.5852, allocations: 0.8918 MB / 0.7146 GB, free: 2.316 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0004433/0.5856, allocations: 140.7 kB / 0.7147 GB, free: 2.176 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003076/0.5859, allocations: 231.3 kB / 0.7149 GB, free: 1.949 MB / 0.5137 GB Notification: Performance of SimCode: time 4.01e-07/0.586, allocations: 0 / 0.7149 GB, free: 1.949 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04881/0.6348, allocations: 19.72 MB / 0.7342 GB, free: 14.37 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.72/11.35, allocations: 9.719 kB / 0.7342 GB, free: 14.36 MB / 0.545 GB (rm -f ThermofluidStream_ThermofluidStream.Processes.Tests.Turbine.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Processes.Tests.Turbine.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Processes.Tests.Turbine.pipe >> ../files/ThermofluidStream_ThermofluidStream.Processes.Tests.Turbine.sim & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.Processes.Tests.Turbine_res.csv --start-time 0 --stop-time 30 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.03 ThermofluidStream_ThermofluidStream_Processes_Tests_Turbine.fmu > ThermofluidStream_ThermofluidStream.Processes.Tests.Turbine.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Processes.Tests.Turbine_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Processes.Tests.Turbine_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Processes.Tests.Turbine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches