Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001155/0.001155, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001125/0.001125, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.057/1.057, allocations: 177.1 MB / 202.8 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.0/package.mo): time 0.7184/0.7184, allocations: 80.17 MB / 339.4 MB, free: 7.547 MB / 314.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_Interfaces_Tests_Test_p_out_clipping",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_Interfaces_Tests_Test_p_out_clipping",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.144e-06/2.144e-06, allocations: 0 / 0.4924 GB, free: 6.633 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.175e-05/2.39e-05, allocations: 2.281 kB / 0.4924 GB, free: 6.629 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping): time 0.1887/0.1887, allocations: 151 MB / 0.6398 GB, free: 0.9531 MB / 0.5417 GB Notification: Performance of NFInst.instExpressions: time 0.5399/0.7285, allocations: 10.64 MB / 0.6502 GB, free: 3.949 MB / 0.5417 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002182/0.7307, allocations: 100.9 kB / 0.6503 GB, free: 3.949 MB / 0.5417 GB Notification: Performance of NFTyping.typeComponents: time 0.00256/0.7333, allocations: 0.8612 MB / 0.6511 GB, free: 3.922 MB / 0.5417 GB Notification: Performance of NFTyping.typeBindings: time 0.006466/0.7397, allocations: 1.899 MB / 0.653 GB, free: 3.863 MB / 0.5417 GB Notification: Performance of NFTyping.typeClassSections: time 0.005115/0.7449, allocations: 1.388 MB / 0.6544 GB, free: 3.828 MB / 0.5417 GB Notification: Performance of NFFlatten.flatten: time 0.005855/0.7507, allocations: 2.863 MB / 0.6572 GB, free: 3.191 MB / 0.5417 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005917/0.7513, allocations: 238.6 kB / 0.6574 GB, free: 3.125 MB / 0.5417 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003722/0.755, allocations: 1.912 MB / 0.6592 GB, free: 2.91 MB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001539/0.7566, allocations: 1.059 MB / 0.6603 GB, free: 2.801 MB / 0.5417 GB Notification: Performance of NFPackage.collectConstants: time 0.0002114/0.7568, allocations: 112.2 kB / 0.6604 GB, free: 2.801 MB / 0.5417 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00493/0.7617, allocations: 1.568 MB / 0.6619 GB, free: 2.688 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0003674/0.7621, allocations: 349.4 kB / 0.6623 GB, free: 2.602 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.0008641/0.7629, allocations: 0.5571 MB / 0.6628 GB, free: 2.52 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.004082/0.767, allocations: 2.533 MB / 0.6653 GB, free: 2.207 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.767, allocations: 0 / 0.6653 GB, free: 2.207 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.843e-06/0.767, allocations: 0.5938 kB / 0.6653 GB, free: 2.207 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.622e-05/0.767, allocations: 0 / 0.6653 GB, free: 2.207 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 266 * Number of variables: 266 Notification: Performance of Generate backend data structure: time 0.002655/0.7697, allocations: 2.092 MB / 0.6673 GB, free: 1.164 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 0.0001125/0.7698, allocations: 12.88 kB / 0.6673 GB, free: 1.164 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001895/0.77, allocations: 154.2 kB / 0.6675 GB, free: 1.121 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004154/0.7704, allocations: 231.8 kB / 0.6677 GB, free: 1.016 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001551/0.772, allocations: 1.138 MB / 0.6688 GB, free: 0.6289 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.438e-05/0.772, allocations: 82.59 kB / 0.6689 GB, free: 0.625 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001613/0.7722, allocations: 111 kB / 0.669 GB, free: 0.6211 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001482/0.7737, allocations: 1.238 MB / 0.6702 GB, free: 380 kB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.067e-05/0.7737, allocations: 1 kB / 0.6702 GB, free: 380 kB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.558e-05/0.7738, allocations: 47.72 kB / 0.6702 GB, free: 380 kB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.212e-05/0.7738, allocations: 26.81 kB / 0.6703 GB, free: 380 kB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001282/0.7751, allocations: 1.088 MB / 0.6713 GB, free: 376 kB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004582/0.7797, allocations: 3.918 MB / 0.6752 GB, free: 14.85 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001222/0.7809, allocations: 0.7057 MB / 0.6758 GB, free: 14.77 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004888/0.7814, allocations: 389.3 kB / 0.6762 GB, free: 14.75 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002015/0.7834, allocations: 1.526 MB / 0.6777 GB, free: 14.13 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.539e-05/0.7834, allocations: 47.31 kB / 0.6778 GB, free: 14.09 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=108): time 2.845e-06/0.7834, allocations: 0 / 0.6778 GB, free: 14.09 MB / 0.5573 GB Notification: Performance of matching and sorting (n=108): time 0.002469/0.7859, allocations: 1.463 MB / 0.6792 GB, free: 13.9 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.596e-05/0.786, allocations: 114.1 kB / 0.6793 GB, free: 13.77 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001323/0.7873, allocations: 1.303 MB / 0.6806 GB, free: 13.6 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 5.31e-05/0.7873, allocations: 45.52 kB / 0.6806 GB, free: 13.57 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005261/0.7879, allocations: 0.6335 MB / 0.6812 GB, free: 13.39 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002334/0.7881, allocations: 389.9 kB / 0.6816 GB, free: 13.13 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002289/0.7883, allocations: 197.8 kB / 0.6818 GB, free: 13.11 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001512/0.7885, allocations: 345.9 kB / 0.6821 GB, free: 12.8 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004094/0.7889, allocations: 293 kB / 0.6824 GB, free: 12.8 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005615/0.7894, allocations: 0.5002 MB / 0.6829 GB, free: 12.59 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00102/0.7905, allocations: 0.8006 MB / 0.6837 GB, free: 12.45 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.7905, allocations: 1.031 kB / 0.6837 GB, free: 12.45 MB / 0.5573 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.001845/0.7923, allocations: 1.173 MB / 0.6848 GB, free: 12.26 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 5.21e-05/0.7924, allocations: 10.2 kB / 0.6848 GB, free: 12.26 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.963e-05/0.7924, allocations: 2.906 kB / 0.6848 GB, free: 12.26 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000451/0.7928, allocations: 154.1 kB / 0.685 GB, free: 12.22 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004192/0.7933, allocations: 209.6 kB / 0.6852 GB, free: 12.22 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004482/0.7977, allocations: 6.704 MB / 0.6917 GB, free: 6.117 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003866/0.7981, allocations: 109.6 kB / 0.6918 GB, free: 6.051 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.152e-05/0.7982, allocations: 51.67 kB / 0.6919 GB, free: 6.051 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (117): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004171/0.7986, allocations: 308.3 kB / 0.6922 GB, free: 5.938 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002002/0.7988, allocations: 183.9 kB / 0.6923 GB, free: 5.836 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002336/0.8012, allocations: 1.684 MB / 0.694 GB, free: 5.445 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.905e-06/0.8012, allocations: 12.41 kB / 0.694 GB, free: 5.441 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.8012, allocations: 6.5 kB / 0.694 GB, free: 5.441 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.957e-06/0.8012, allocations: 6.938 kB / 0.694 GB, free: 5.438 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002474/0.8037, allocations: 2.086 MB / 0.696 GB, free: 4.812 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.979e-06/0.8037, allocations: 3.188 kB / 0.6961 GB, free: 4.812 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002785/0.804, allocations: 127.5 kB / 0.6962 GB, free: 4.809 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000307/0.8043, allocations: 169.4 kB / 0.6963 GB, free: 4.762 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.664e-05/0.8043, allocations: 27.64 kB / 0.6964 GB, free: 4.762 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004473/0.8088, allocations: 6.705 MB / 0.7029 GB, free: 14.65 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.06e-06/0.8088, allocations: 3.344 kB / 0.7029 GB, free: 14.65 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001753/0.8105, allocations: 1.541 MB / 0.7044 GB, free: 14.11 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003572/0.8109, allocations: 269.3 kB / 0.7047 GB, free: 14 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001082/0.811, allocations: 34.89 kB / 0.7047 GB, free: 13.99 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003138/0.8113, allocations: 15.64 kB / 0.7047 GB, free: 13.99 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001637/0.8115, allocations: 80.08 kB / 0.7048 GB, free: 13.99 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.527e-05/0.8115, allocations: 33.83 kB / 0.7048 GB, free: 13.99 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.001145/0.8127, allocations: 0.9963 MB / 0.7058 GB, free: 13.88 MB / 0.573 GB Notification: Performance of sort global known variables: time 7e-08/0.8127, allocations: 0 / 0.7058 GB, free: 13.88 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.001416/0.8141, allocations: 474.9 kB / 0.7063 GB, free: 13.84 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 5 (flowResistance1.m_flow,flowResistance.m_flow,basicControlValve.m_flow,specificValveType.m_flow,tanValve.m_flow) * 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 (70): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003682/0.8178, allocations: 2.75 MB / 0.7089 GB, free: 12.63 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.001758/0.8195, allocations: 1.279 MB / 0.7102 GB, free: 11.91 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.8195, allocations: 1.031 kB / 0.7102 GB, free: 11.91 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0008341/0.8204, allocations: 0.9109 MB / 0.7111 GB, free: 11.24 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002171/0.8225, allocations: 0.7375 MB / 0.7118 GB, free: 11.01 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01436/0.8369, allocations: 10.91 MB / 0.7225 GB, free: 5.742 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000672/0.8376, allocations: 0.6282 MB / 0.7231 GB, free: 5.578 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.001226/0.8388, allocations: 307.5 kB / 0.7234 GB, free: 5.508 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006543/0.8394, allocations: 0.6237 MB / 0.724 GB, free: 5.039 MB / 0.573 GB Notification: Performance of SimCode: time 2.124e-06/0.8394, allocations: 0 / 0.724 GB, free: 5.039 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08015/0.9196, allocations: 47.46 MB / 0.7703 GB, free: 9.809 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.56/12.48, allocations: 8.062 kB / 0.7703 GB, free: 9.801 MB / 0.6198 GB " [Timeout remaining time 647] (rm -f ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.sim & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping_res.csv --start-time 0 --stop-time 1 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 ThermofluidStream_ThermofluidStream_Undirected_Interfaces_Tests_Test_p_out_clipping.fmu > ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Time in file ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping_res.csv. Warning: Get data of variable Time from file ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.858618013560772]