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.001032/0.001032, 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.0009192/0.0009192, 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.061/1.061, allocations: 177.2 MB / 202.8 MB, free: 5.746 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.6335/0.6335, allocations: 80.17 MB / 339.4 MB, free: 7.57 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 4.158e-06/4.158e-06, allocations: 0 / 0.4924 GB, free: 6.648 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 7.16e-05/7.575e-05, allocations: 4.672 kB / 0.4924 GB, free: 6.645 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping): time 0.1495/0.1496, allocations: 151 MB / 0.6398 GB, free: 0.9688 MB / 0.5417 GB Notification: Performance of NFInst.instExpressions: time 0.3706/0.5202, allocations: 10.65 MB / 0.6502 GB, free: 4.02 MB / 0.5417 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002172/0.5224, allocations: 98.19 kB / 0.6503 GB, free: 4.02 MB / 0.5417 GB Notification: Performance of NFTyping.typeComponents: time 0.002296/0.5247, allocations: 0.8605 MB / 0.6511 GB, free: 3.992 MB / 0.5417 GB Notification: Performance of NFTyping.typeBindings: time 0.005951/0.5306, allocations: 1.899 MB / 0.653 GB, free: 3.934 MB / 0.5417 GB Notification: Performance of NFTyping.typeClassSections: time 0.004034/0.5347, allocations: 1.385 MB / 0.6543 GB, free: 3.898 MB / 0.5417 GB Notification: Performance of NFFlatten.flatten: time 0.00454/0.5392, allocations: 2.861 MB / 0.6571 GB, free: 3.262 MB / 0.5417 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006825/0.5399, allocations: 239.1 kB / 0.6574 GB, free: 3.195 MB / 0.5417 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00408/0.544, allocations: 1.918 MB / 0.6592 GB, free: 2.98 MB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001709/0.5457, allocations: 1.057 MB / 0.6603 GB, free: 2.871 MB / 0.5417 GB Notification: Performance of NFPackage.collectConstants: time 0.0003091/0.546, allocations: 110 kB / 0.6604 GB, free: 2.871 MB / 0.5417 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004675/0.5507, allocations: 1.571 MB / 0.6619 GB, free: 2.758 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0003121/0.551, allocations: 349.9 kB / 0.6622 GB, free: 2.672 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.001422/0.5524, allocations: 0.5583 MB / 0.6628 GB, free: 2.59 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.005326/0.5577, allocations: 2.523 MB / 0.6653 GB, free: 2.281 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.5577, allocations: 3.938 kB / 0.6653 GB, free: 2.277 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.633e-06/0.5577, allocations: 0.9688 kB / 0.6653 GB, free: 2.277 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 6.406e-05/0.5578, allocations: 0 / 0.6653 GB, free: 2.277 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.003209/0.561, allocations: 2.094 MB / 0.6673 GB, free: 1.234 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.5611, allocations: 10.78 kB / 0.6673 GB, free: 1.234 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001378/0.5612, allocations: 154.4 kB / 0.6675 GB, free: 1.191 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004428/0.5616, allocations: 235.9 kB / 0.6677 GB, free: 1.086 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001833/0.5635, allocations: 1.137 MB / 0.6688 GB, free: 0.6992 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.95e-05/0.5635, allocations: 82.47 kB / 0.6689 GB, free: 0.6953 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001067/0.5636, allocations: 112.5 kB / 0.669 GB, free: 0.6914 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001342/0.565, allocations: 1.236 MB / 0.6702 GB, free: 452 kB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.937e-05/0.565, allocations: 4.125 kB / 0.6702 GB, free: 452 kB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.464e-05/0.565, allocations: 48 kB / 0.6702 GB, free: 452 kB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.641e-05/0.565, allocations: 25.44 kB / 0.6703 GB, free: 452 kB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001229/0.5663, allocations: 1.089 MB / 0.6713 GB, free: 448 kB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004604/0.5709, allocations: 3.914 MB / 0.6752 GB, free: 14.92 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001073/0.572, allocations: 0.7064 MB / 0.6758 GB, free: 14.84 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004175/0.5724, allocations: 392.9 kB / 0.6762 GB, free: 14.81 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002252/0.5746, allocations: 1.524 MB / 0.6777 GB, free: 14.2 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.824e-05/0.5746, allocations: 57.22 kB / 0.6778 GB, free: 14.16 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=108): time 2.996e-06/0.5747, allocations: 1 kB / 0.6778 GB, free: 14.16 MB / 0.5573 GB Notification: Performance of matching and sorting (n=108): time 0.002193/0.5768, allocations: 1.454 MB / 0.6792 GB, free: 13.96 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.566e-05/0.5769, allocations: 117.9 kB / 0.6793 GB, free: 13.84 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001063/0.578, allocations: 1.296 MB / 0.6806 GB, free: 13.66 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 5.953e-05/0.578, allocations: 47.2 kB / 0.6806 GB, free: 13.63 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004656/0.5785, allocations: 0.633 MB / 0.6812 GB, free: 13.45 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002891/0.5788, allocations: 389.3 kB / 0.6816 GB, free: 13.2 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002035/0.579, allocations: 194.3 kB / 0.6818 GB, free: 13.17 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001155/0.5791, allocations: 346.5 kB / 0.6821 GB, free: 12.87 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003491/0.5794, allocations: 294.5 kB / 0.6824 GB, free: 12.87 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004977/0.5799, allocations: 0.506 MB / 0.6829 GB, free: 12.65 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001006/0.5809, allocations: 0.7962 MB / 0.6837 GB, free: 12.51 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/0.581, allocations: 0 / 0.6837 GB, free: 12.51 MB / 0.5573 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.001681/0.5826, allocations: 1.17 MB / 0.6848 GB, free: 12.32 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.372e-05/0.5827, allocations: 11.27 kB / 0.6848 GB, free: 12.32 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.5827, allocations: 4.125 kB / 0.6848 GB, free: 12.32 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003234/0.583, allocations: 158.6 kB / 0.685 GB, free: 12.29 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004119/0.5834, allocations: 206.6 kB / 0.6852 GB, free: 12.29 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004011/0.5874, allocations: 6.709 MB / 0.6917 GB, free: 6.18 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006102/0.588, allocations: 106.8 kB / 0.6918 GB, free: 6.113 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.456e-05/0.5881, allocations: 55.97 kB / 0.6919 GB, free: 6.113 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.0006853/0.5888, allocations: 304.5 kB / 0.6922 GB, free: 6 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002627/0.5891, allocations: 185.8 kB / 0.6923 GB, free: 5.898 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001819/0.5909, allocations: 1.681 MB / 0.694 GB, free: 5.508 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/0.5909, allocations: 12.66 kB / 0.694 GB, free: 5.504 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.5909, allocations: 3.156 kB / 0.694 GB, free: 5.504 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.5909, allocations: 8.234 kB / 0.694 GB, free: 5.504 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002389/0.5933, allocations: 2.084 MB / 0.696 GB, free: 4.875 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.079e-06/0.5933, allocations: 7.562 kB / 0.696 GB, free: 4.875 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002621/0.5935, allocations: 121.8 kB / 0.6962 GB, free: 4.875 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003443/0.5939, allocations: 171 kB / 0.6963 GB, free: 4.828 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.605e-05/0.594, allocations: 28.5 kB / 0.6964 GB, free: 4.828 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003456/0.5974, allocations: 6.705 MB / 0.7029 GB, free: 14.72 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.5974, allocations: 6.031 kB / 0.7029 GB, free: 14.72 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001869/0.5993, allocations: 1.538 MB / 0.7044 GB, free: 14.18 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005905/0.5999, allocations: 265.9 kB / 0.7047 GB, free: 14.07 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001361/0.6, allocations: 34.66 kB / 0.7047 GB, free: 14.06 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003514/0.6004, allocations: 20.91 kB / 0.7047 GB, free: 14.06 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000138/0.6005, allocations: 81.5 kB / 0.7048 GB, free: 14.05 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.743e-05/0.6005, allocations: 31.41 kB / 0.7048 GB, free: 14.05 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.001117/0.6016, allocations: 0.9996 MB / 0.7058 GB, free: 13.94 MB / 0.573 GB Notification: Performance of sort global known variables: time 6e-08/0.6016, allocations: 0 / 0.7058 GB, free: 13.94 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.001385/0.603, allocations: 474.5 kB / 0.7063 GB, free: 13.9 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.003005/0.606, allocations: 2.754 MB / 0.7089 GB, free: 12.7 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.001713/0.6078, allocations: 1.278 MB / 0.7102 GB, free: 11.95 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.001e-05/0.6078, allocations: 4.219 kB / 0.7102 GB, free: 11.95 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0006957/0.6085, allocations: 0.9108 MB / 0.7111 GB, free: 11.27 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00231/0.6108, allocations: 0.7251 MB / 0.7118 GB, free: 11.05 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01427/0.625, allocations: 10.92 MB / 0.7225 GB, free: 5.773 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004883/0.6255, allocations: 0.6331 MB / 0.7231 GB, free: 5.605 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.001051/0.6266, allocations: 304.5 kB / 0.7234 GB, free: 5.539 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006623/0.6272, allocations: 0.6217 MB / 0.724 GB, free: 5.07 MB / 0.573 GB Notification: Performance of SimCode: time 2.435e-06/0.6272, allocations: 0 / 0.724 GB, free: 5.07 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08052/0.7078, allocations: 47.46 MB / 0.7703 GB, free: 9.809 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.685/10.39, allocations: 3.938 kB / 0.7703 GB, free: 9.805 MB / 0.6198 GB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Undirected_Interfaces_Tests_Test_p_out_clipping_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=1200 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.388938383199275]