Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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_dev_ThermofluidStream_Processes_Tests_Turbine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Processes.Tests.Turbine,fileNamePrefix="ThermofluidStream_dev_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.001339/0.001339, 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.001316/0.001317, allocations: 198.1 kB / 16.54 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.493/1.493, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8593/0.8593, allocations: 93.72 MB / 384.1 MB, free: 6.984 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002401/0.002401, allocations: 81.44 kB / 463.5 MB, free: 22.02 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1579/0.1603, allocations: 68.26 MB / 0.5193 GB, free: 6.934 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Turbine): time 0.5617/0.7221, allocations: 149.4 MB / 0.6652 GB, free: 14.25 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01699/0.7392, allocations: 12.02 MB / 0.6769 GB, free: 4.531 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001051/0.7403, allocations: 24.22 kB / 0.6769 GB, free: 4.52 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001182/0.7415, allocations: 292.3 kB / 0.6772 GB, free: 4.281 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001965/0.7435, allocations: 0.5493 MB / 0.6777 GB, free: 3.832 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002748/0.7463, allocations: 0.7138 MB / 0.6784 GB, free: 3.285 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.00132/0.7476, allocations: 0.9424 MB / 0.6793 GB, free: 2.738 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003494/0.7479, allocations: 177.4 kB / 0.6795 GB, free: 2.656 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006784/0.7486, allocations: 390.9 kB / 0.6799 GB, free: 2.438 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006365/0.7493, allocations: 480.9 kB / 0.6804 GB, free: 2.152 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.45e-05/0.7494, allocations: 52.88 kB / 0.6804 GB, free: 2.152 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002884/0.7523, allocations: 1.046 MB / 0.6814 GB, free: 1.664 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001983/0.7525, allocations: 149.9 kB / 0.6816 GB, free: 1.547 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003764/0.7529, allocations: 331.6 kB / 0.6819 GB, free: 1.324 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00186/0.7547, allocations: 1.092 MB / 0.6829 GB, free: 0.6523 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.93e-06/0.7548, allocations: 0 / 0.6829 GB, free: 0.6523 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.7548, allocations: 0 / 0.6829 GB, free: 0.6523 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.156e-05/0.7548, allocations: 0 / 0.6829 GB, free: 0.6523 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.002512/0.7573, allocations: 1.068 MB / 0.684 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.67e-05/0.7574, allocations: 14.09 kB / 0.684 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001453/0.7575, allocations: 87.64 kB / 0.6841 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001898/0.7577, allocations: 75.28 kB / 0.6842 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008095/0.7585, allocations: 484.7 kB / 0.6846 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001191/0.7587, allocations: 99.58 kB / 0.6847 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.154e-05/0.7588, allocations: 49.72 kB / 0.6848 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001249/0.76, allocations: 0.6572 MB / 0.6854 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.003e-05/0.7601, allocations: 6.469 kB / 0.6854 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.074e-05/0.7601, allocations: 21.12 kB / 0.6854 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.072e-05/0.7602, allocations: 22.7 kB / 0.6855 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001278/0.7615, allocations: 0.6648 MB / 0.6861 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0045/0.766, allocations: 2.475 MB / 0.6885 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001284/0.7673, allocations: 0.6124 MB / 0.6891 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007087/0.768, allocations: 367 kB / 0.6895 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003214/0.7712, allocations: 2.616 MB / 0.692 GB, free: 8.863 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.749e-05/0.7713, allocations: 39.91 kB / 0.6921 GB, free: 8.816 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=62): time 5.751e-06/0.7713, allocations: 0 / 0.6921 GB, free: 8.816 MB / 0.4981 GB Notification: Performance of matching and sorting (n=64): time 0.004888/0.7762, allocations: 2.151 MB / 0.6942 GB, free: 6.973 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.856e-05/0.7763, allocations: 59.97 kB / 0.6942 GB, free: 6.902 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005487/0.7768, allocations: 434 kB / 0.6946 GB, free: 6.465 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 6.621e-05/0.7769, allocations: 37.7 kB / 0.6947 GB, free: 6.422 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000207/0.7771, allocations: 245.5 kB / 0.6949 GB, free: 6.176 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002105/0.7773, allocations: 224.8 kB / 0.6951 GB, free: 5.953 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001964/0.7775, allocations: 106.2 kB / 0.6952 GB, free: 5.844 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0002402/0.7778, allocations: 378.8 kB / 0.6956 GB, free: 5.465 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000533/0.7783, allocations: 249.1 kB / 0.6958 GB, free: 5.223 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006399/0.779, allocations: 332.5 kB / 0.6961 GB, free: 4.879 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00129/0.7803, allocations: 0.6064 MB / 0.6967 GB, free: 4.246 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.7803, allocations: 0 / 0.6967 GB, free: 4.246 MB / 0.4981 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001815/0.7821, allocations: 0.8384 MB / 0.6975 GB, free: 3.398 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.111e-05/0.7822, allocations: 8.188 kB / 0.6976 GB, free: 3.391 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.423e-05/0.7822, allocations: 11.98 kB / 0.6976 GB, free: 3.379 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004754/0.7827, allocations: 136.6 kB / 0.6977 GB, free: 3.242 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005278/0.7832, allocations: 103.9 kB / 0.6978 GB, free: 3.141 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003363/0.7866, allocations: 2.482 MB / 0.7002 GB, free: 0.5312 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004303/0.787, allocations: 24.05 kB / 0.7002 GB, free: 0.5078 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.232e-05/0.7871, allocations: 23.98 kB / 0.7003 GB, free: 496 kB / 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.000356/0.7875, allocations: 201.6 kB / 0.7005 GB, free: 284 kB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001378/0.7876, allocations: 55.34 kB / 0.7005 GB, free: 228 kB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002167/0.7898, allocations: 1.035 MB / 0.7015 GB, free: 15.16 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.108e-05/0.7898, allocations: 7.984 kB / 0.7015 GB, free: 15.16 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/0.7898, allocations: 4 kB / 0.7015 GB, free: 15.15 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.7898, allocations: 3.938 kB / 0.7015 GB, free: 15.15 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003059/0.7929, allocations: 1.654 MB / 0.7031 GB, free: 13.44 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.618e-05/0.7929, allocations: 4 kB / 0.7032 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004974/0.7934, allocations: 95.86 kB / 0.7032 GB, free: 13.34 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000482/0.7939, allocations: 136.7 kB / 0.7034 GB, free: 13.2 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.337e-05/0.794, allocations: 19.98 kB / 0.7034 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003186/0.7972, allocations: 2.405 MB / 0.7057 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.7972, allocations: 0 / 0.7057 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002461/0.7997, allocations: 1.252 MB / 0.707 GB, free: 9.363 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001917/0.7999, allocations: 129.2 kB / 0.7071 GB, free: 9.219 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.283e-05/0.8, allocations: 16.03 kB / 0.7071 GB, free: 9.203 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003469/0.8003, allocations: 23.98 kB / 0.7071 GB, free: 9.18 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001046/0.8005, allocations: 44.5 kB / 0.7072 GB, free: 9.137 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.782e-05/0.8005, allocations: 19.98 kB / 0.7072 GB, free: 9.117 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0005747/0.8011, allocations: 330.9 kB / 0.7075 GB, free: 8.797 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8011, allocations: 0 / 0.7075 GB, free: 8.797 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001414/0.8026, allocations: 291.9 kB / 0.7078 GB, free: 8.512 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.003652/0.8062, allocations: 2.076 MB / 0.7098 GB, free: 6.402 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002335/0.8086, allocations: 0.97 MB / 0.7108 GB, free: 5.406 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.631e-06/0.8086, allocations: 4 kB / 0.7108 GB, free: 5.402 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001089/0.8097, allocations: 0.5871 MB / 0.7113 GB, free: 4.793 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001277/0.811, allocations: 213.3 kB / 0.7115 GB, free: 4.598 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01132/0.8223, allocations: 6.06 MB / 0.7175 GB, free: 14.41 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007789/0.8231, allocations: 0.8996 MB / 0.7183 GB, free: 13.48 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0006914/0.8239, allocations: 140.7 kB / 0.7185 GB, free: 13.34 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004267/0.8243, allocations: 235.3 kB / 0.7187 GB, free: 13.11 MB / 0.5294 GB Notification: Performance of SimCode: time 1.653e-06/0.8243, allocations: 4 kB / 0.7187 GB, free: 13.11 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06242/0.8867, allocations: 19.83 MB / 0.7381 GB, free: 9.422 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.91/12.79, allocations: 11.94 kB / 0.7381 GB, free: 9.41 MB / 0.545 GB (rm -f ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Turbine.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Turbine.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Turbine.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Turbine.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_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_dev_ThermofluidStream_Processes_Tests_Turbine.fmu > ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Turbine.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_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_dev_ThermofluidStream.Processes.Tests.Turbine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches