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.001612/0.001612, 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.001842/0.001843, allocations: 195.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.535/1.535, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7967/0.7967, allocations: 91.2 MB / 381.6 MB, free: 9.418 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001923/0.001923, allocations: 78.22 kB / 460.4 MB, free: 23.1 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1545/0.1564, 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.5447/0.7011, allocations: 149.3 MB / 0.6616 GB, free: 2.449 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01611/0.7173, allocations: 12.01 MB / 0.6733 GB, free: 8.738 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00108/0.7184, allocations: 20.31 kB / 0.6733 GB, free: 8.73 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001368/0.7198, allocations: 305 kB / 0.6736 GB, free: 8.48 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002063/0.7219, allocations: 0.5374 MB / 0.6741 GB, free: 8.043 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002779/0.7247, allocations: 0.7097 MB / 0.6748 GB, free: 7.5 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001335/0.7261, allocations: 0.9155 MB / 0.6757 GB, free: 6.969 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003623/0.7265, allocations: 175.7 kB / 0.6759 GB, free: 6.879 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007003/0.7272, allocations: 382.9 kB / 0.6762 GB, free: 6.664 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008468/0.728, allocations: 473.3 kB / 0.6767 GB, free: 6.387 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.418e-05/0.7281, allocations: 55.06 kB / 0.6768 GB, free: 6.387 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002859/0.731, allocations: 1.05 MB / 0.6778 GB, free: 5.895 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001625/0.7312, allocations: 149 kB / 0.6779 GB, free: 5.777 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003602/0.7315, allocations: 329.8 kB / 0.6782 GB, free: 5.555 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002028/0.7336, allocations: 1.083 MB / 0.6793 GB, free: 4.891 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.7336, allocations: 4 kB / 0.6793 GB, free: 4.887 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.7336, allocations: 0 / 0.6793 GB, free: 4.887 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.111e-05/0.7336, allocations: 0 / 0.6793 GB, free: 4.887 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.002732/0.7364, allocations: 1.058 MB / 0.6803 GB, free: 4.055 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.827e-05/0.7364, allocations: 13.88 kB / 0.6803 GB, free: 4.051 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001075/0.7365, allocations: 85.55 kB / 0.6804 GB, free: 3.973 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001566/0.7367, allocations: 71.34 kB / 0.6805 GB, free: 3.938 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009253/0.7376, allocations: 484.1 kB / 0.681 GB, free: 3.52 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001266/0.7378, allocations: 96.2 kB / 0.681 GB, free: 3.434 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.792e-05/0.7379, allocations: 46.91 kB / 0.6811 GB, free: 3.418 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001302/0.7392, allocations: 0.659 MB / 0.6817 GB, free: 3.004 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.186e-05/0.7393, allocations: 0 / 0.6817 GB, free: 3.004 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.559e-05/0.7394, allocations: 17.19 kB / 0.6817 GB, free: 2.992 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.729e-05/0.7394, allocations: 26.2 kB / 0.6818 GB, free: 2.984 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001216/0.7406, allocations: 0.6634 MB / 0.6824 GB, free: 2.656 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00456/0.7452, allocations: 2.458 MB / 0.6848 GB, free: 0.6641 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001493/0.7467, allocations: 0.6187 MB / 0.6854 GB, free: 340 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006392/0.7474, allocations: 374.7 kB / 0.6858 GB, free: 144 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003384/0.7508, allocations: 2.618 MB / 0.6883 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.22e-05/0.7509, allocations: 38.12 kB / 0.6884 GB, free: 13.08 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=62): time 4.569e-06/0.7509, allocations: 0 / 0.6884 GB, free: 13.08 MB / 0.4981 GB Notification: Performance of matching and sorting (n=64): time 0.005177/0.7561, allocations: 2.154 MB / 0.6905 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.345e-05/0.7561, allocations: 59.69 kB / 0.6905 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005995/0.7567, allocations: 427.2 kB / 0.6909 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.696e-05/0.7568, allocations: 37.7 kB / 0.691 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002066/0.757, allocations: 245.4 kB / 0.6912 GB, free: 11 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001944/0.7572, allocations: 220.8 kB / 0.6914 GB, free: 10.78 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002203/0.7575, allocations: 110.2 kB / 0.6915 GB, free: 10.67 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001657/0.7576, allocations: 370.8 kB / 0.6919 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006388/0.7583, allocations: 253.1 kB / 0.6921 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006086/0.7589, allocations: 337.4 kB / 0.6924 GB, free: 9.695 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001348/0.7602, allocations: 0.6064 MB / 0.693 GB, free: 9.066 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.737e-06/0.7603, allocations: 0 / 0.693 GB, free: 9.066 MB / 0.4981 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001842/0.7621, allocations: 0.8385 MB / 0.6939 GB, free: 8.215 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.297e-05/0.7622, allocations: 8 kB / 0.6939 GB, free: 8.207 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.276e-05/0.7622, allocations: 7.984 kB / 0.6939 GB, free: 8.199 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004835/0.7627, allocations: 137.3 kB / 0.694 GB, free: 8.062 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000677/0.7634, allocations: 111.8 kB / 0.6941 GB, free: 7.953 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00361/0.767, allocations: 2.464 MB / 0.6965 GB, free: 5.355 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003863/0.7674, allocations: 20.02 kB / 0.6965 GB, free: 5.336 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.66e-05/0.7675, allocations: 27.98 kB / 0.6966 GB, free: 5.309 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.0003948/0.7679, allocations: 205.5 kB / 0.6968 GB, free: 5.098 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001599/0.768, allocations: 59.28 kB / 0.6968 GB, free: 5.039 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002333/0.7704, allocations: 1.035 MB / 0.6978 GB, free: 3.988 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.438e-06/0.7704, allocations: 8 kB / 0.6978 GB, free: 3.98 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.7704, allocations: 3.984 kB / 0.6978 GB, free: 3.977 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.073e-06/0.7704, allocations: 0 / 0.6978 GB, free: 3.977 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003162/0.7736, allocations: 1.658 MB / 0.6995 GB, free: 2.254 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-05/0.7736, allocations: 8 kB / 0.6995 GB, free: 2.246 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005765/0.7742, allocations: 95.06 kB / 0.6996 GB, free: 2.156 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000423/0.7746, allocations: 132.7 kB / 0.6997 GB, free: 2.023 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.272e-05/0.7747, allocations: 19.97 kB / 0.6997 GB, free: 2.004 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003198/0.7779, allocations: 2.398 MB / 0.702 GB, free: 15.47 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.7779, allocations: 3.938 kB / 0.702 GB, free: 15.46 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002474/0.7804, allocations: 1.253 MB / 0.7033 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001683/0.7806, allocations: 128.3 kB / 0.7034 GB, free: 14.05 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001077/0.7807, allocations: 16 kB / 0.7034 GB, free: 14.04 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000487/0.7812, allocations: 20.03 kB / 0.7034 GB, free: 14.02 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.952e-05/0.7813, allocations: 44.48 kB / 0.7035 GB, free: 13.97 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.9e-05/0.7814, allocations: 23.98 kB / 0.7035 GB, free: 13.95 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0004652/0.7819, allocations: 330.9 kB / 0.7038 GB, free: 13.63 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7819, allocations: 0 / 0.7038 GB, free: 13.63 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001052/0.783, allocations: 283.9 kB / 0.7041 GB, free: 13.35 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.003431/0.7864, allocations: 2.08 MB / 0.7061 GB, free: 11.24 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.00223/0.7886, allocations: 0.9776 MB / 0.7071 GB, free: 10.24 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.7887, allocations: 0 / 0.7071 GB, free: 10.24 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001183/0.7898, allocations: 0.5872 MB / 0.7076 GB, free: 9.625 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001174/0.791, allocations: 205.4 kB / 0.7078 GB, free: 9.43 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01056/0.8016, allocations: 6.02 MB / 0.7137 GB, free: 3.285 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007569/0.8024, allocations: 0.8957 MB / 0.7146 GB, free: 2.363 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0005661/0.803, allocations: 140.7 kB / 0.7147 GB, free: 2.223 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003721/0.8034, allocations: 227.3 kB / 0.7149 GB, free: 2 MB / 0.5137 GB Notification: Performance of SimCode: time 1.422e-06/0.8034, allocations: 0 / 0.7149 GB, free: 2 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07849/0.8819, allocations: 19.73 MB / 0.7342 GB, free: 14.41 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 14/14.88, allocations: 6.438 kB / 0.7342 GB, free: 14.4 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Processes.Tests.Turbine_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Processes_Tests_Turbine_fmu --startTime=0 --stopTime=30 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Processes_Tests_Turbine.fmu > ThermofluidStream_ThermofluidStream.Processes.Tests.Turbine.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Processes.Tests.Turbine_res.mat","/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