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.002544/0.002544, allocations: 103.5 kB / 16.45 MB, free: 6.5 MB / 14.72 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.001863/0.001863, allocations: 210.4 kB / 19.42 MB, free: 3.66 MB / 14.72 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.714/1.714, allocations: 230.6 MB / 252.8 MB, free: 8.965 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo): time 0.9842/0.9842, allocations: 94.56 MB / 403.4 MB, free: 10.54 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.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: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002615/0.002615, allocations: 81.73 kB / 0.5499 GB, free: 38.75 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2193/0.2219, allocations: 73.02 MB / 0.6212 GB, free: 1.98 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping): time 0.8522/1.074, allocations: 173.2 MB / 0.7903 GB, free: 1.648 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01986/1.094, allocations: 11.51 MB / 0.8016 GB, free: 1.41 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004045/1.098, allocations: 99.23 kB / 0.8016 GB, free: 1.41 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.004032/1.102, allocations: 0.9 MB / 0.8025 GB, free: 1.379 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.007517/1.11, allocations: 1.763 MB / 0.8042 GB, free: 1.309 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.005336/1.115, allocations: 1.317 MB / 0.8055 GB, free: 1.262 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.005302/1.12, allocations: 2.58 MB / 0.8081 GB, free: 1.242 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007761/1.121, allocations: 246.8 kB / 0.8083 GB, free: 1.164 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003942/1.125, allocations: 1.481 MB / 0.8097 GB, free: 1.062 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001951/1.127, allocations: 1.164 MB / 0.8109 GB, free: 0.8125 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002523/1.127, allocations: 109 kB / 0.811 GB, free: 0.8125 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00554/1.133, allocations: 1.876 MB / 0.8128 GB, free: 0.5078 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003397/1.133, allocations: 337.8 kB / 0.8131 GB, free: 320 kB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001298/1.134, allocations: 0.8112 MB / 0.8139 GB, free: 15.83 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.006471/1.141, allocations: 2.518 MB / 0.8164 GB, free: 15 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/1.141, allocations: 0 / 0.8164 GB, free: 15 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.964e-06/1.141, allocations: 2.531 kB / 0.8164 GB, free: 15 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 5.448e-05/1.141, allocations: 2.656 kB / 0.8164 GB, free: 15 MB / 0.5919 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.00516/1.146, allocations: 2.179 MB / 0.8185 GB, free: 13.45 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 6.603e-05/1.146, allocations: 8.281 kB / 0.8185 GB, free: 13.45 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000236/1.146, allocations: 155.4 kB / 0.8187 GB, free: 13.32 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005655/1.147, allocations: 202.9 kB / 0.8189 GB, free: 13.21 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002552/1.149, allocations: 1.247 MB / 0.8201 GB, free: 12.32 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.284e-05/1.15, allocations: 77.34 kB / 0.8202 GB, free: 12.29 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000184/1.15, allocations: 116.1 kB / 0.8203 GB, free: 12.25 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002207/1.152, allocations: 1.177 MB / 0.8214 GB, free: 11.48 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.614e-05/1.152, allocations: 2.531 kB / 0.8214 GB, free: 11.48 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001026/1.152, allocations: 46.78 kB / 0.8215 GB, free: 11.45 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.453e-05/1.152, allocations: 26.62 kB / 0.8215 GB, free: 11.45 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001836/1.154, allocations: 1.07 MB / 0.8225 GB, free: 10.93 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008268/1.162, allocations: 5.27 MB / 0.8277 GB, free: 6.352 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001471/1.164, allocations: 0.688 MB / 0.8284 GB, free: 5.965 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007803/1.164, allocations: 393.6 kB / 0.8287 GB, free: 5.762 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006333/1.171, allocations: 3.907 MB / 0.8325 GB, free: 1.738 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.604e-05/1.171, allocations: 52.48 kB / 0.8326 GB, free: 1.684 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=108): time 4.208e-06/1.171, allocations: 0 / 0.8326 GB, free: 1.684 MB / 0.5919 GB Notification: Performance of matching and sorting (n=108): time 0.004582/1.175, allocations: 1.846 MB / 0.8344 GB, free: 484 kB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/1.175, allocations: 116.2 kB / 0.8345 GB, free: 356 kB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002145/1.178, allocations: 1.296 MB / 0.8358 GB, free: 15.66 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 8.318e-05/1.178, allocations: 47.73 kB / 0.8358 GB, free: 15.62 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006788/1.178, allocations: 0.6263 MB / 0.8364 GB, free: 15.06 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004841/1.179, allocations: 391.2 kB / 0.8368 GB, free: 14.73 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000355/1.179, allocations: 199.3 kB / 0.837 GB, free: 14.61 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0002281/1.179, allocations: 352 kB / 0.8373 GB, free: 14.27 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006529/1.18, allocations: 298.1 kB / 0.8376 GB, free: 14.12 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008261/1.181, allocations: 449.4 kB / 0.838 GB, free: 13.82 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001427/1.182, allocations: 0.7674 MB / 0.8388 GB, free: 13.39 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.624e-06/1.182, allocations: 7.469 kB / 0.8388 GB, free: 13.39 MB / 0.6075 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.002724/1.185, allocations: 1.155 MB / 0.8399 GB, free: 12.8 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.515e-05/1.185, allocations: 9.469 kB / 0.8399 GB, free: 12.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.642e-05/1.185, allocations: 3.031 kB / 0.8399 GB, free: 12.8 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007783/1.186, allocations: 166.3 kB / 0.8401 GB, free: 12.7 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008917/1.187, allocations: 211.7 kB / 0.8403 GB, free: 12.65 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007841/1.195, allocations: 7.242 MB / 0.8474 GB, free: 5 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001516/1.196, allocations: 111.1 kB / 0.8475 GB, free: 4.891 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001526/1.196, allocations: 47.98 kB / 0.8475 GB, free: 4.844 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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.0008198/1.197, allocations: 315.9 kB / 0.8478 GB, free: 4.539 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003988/1.198, allocations: 174.9 kB / 0.848 GB, free: 4.367 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003529/1.201, allocations: 1.71 MB / 0.8497 GB, free: 2.609 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-05/1.201, allocations: 8 kB / 0.8497 GB, free: 2.602 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.497e-06/1.201, allocations: 4 kB / 0.8497 GB, free: 2.598 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.319e-05/1.201, allocations: 3.984 kB / 0.8497 GB, free: 2.594 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004371/1.205, allocations: 2.393 MB / 0.852 GB, free: 144 kB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.277e-06/1.205, allocations: 4 kB / 0.852 GB, free: 140 kB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000532/1.206, allocations: 131.6 kB / 0.8521 GB, free: 16 kB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005678/1.207, allocations: 163.6 kB / 0.8523 GB, free: 15.84 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.598e-05/1.207, allocations: 31.97 kB / 0.8523 GB, free: 15.81 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006745/1.213, allocations: 7.258 MB / 0.8594 GB, free: 7.883 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.652e-06/1.213, allocations: 6.719 kB / 0.8594 GB, free: 7.879 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002941/1.216, allocations: 1.583 MB / 0.861 GB, free: 6.242 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006685/1.217, allocations: 351.7 kB / 0.8613 GB, free: 5.879 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001999/1.217, allocations: 39.77 kB / 0.8613 GB, free: 5.84 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005787/1.218, allocations: 20.12 kB / 0.8614 GB, free: 5.82 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001514/1.218, allocations: 73.05 kB / 0.8614 GB, free: 5.754 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.672e-05/1.218, allocations: 43.92 kB / 0.8615 GB, free: 5.711 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001559/1.22, allocations: 0.9931 MB / 0.8624 GB, free: 4.727 MB / 0.6231 GB Notification: Performance of sort global known variables: time 2e-07/1.22, allocations: 4 kB / 0.8624 GB, free: 4.723 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0017/1.221, allocations: 463.3 kB / 0.8629 GB, free: 4.27 MB / 0.6231 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 (74): * Single equations (assignments): 69 * 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.005066/1.226, allocations: 2.792 MB / 0.8656 GB, free: 1.602 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.002722/1.229, allocations: 1.289 MB / 0.8669 GB, free: 272 kB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/1.229, allocations: 0 / 0.8669 GB, free: 272 kB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.001485/1.231, allocations: 0.9168 MB / 0.8678 GB, free: 15.3 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002535/1.233, allocations: 488.4 kB / 0.8682 GB, free: 14.85 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01957/1.253, allocations: 10.99 MB / 0.879 GB, free: 3.59 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001052/1.254, allocations: 1.221 MB / 0.8802 GB, free: 2.336 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001194/1.255, allocations: 302.4 kB / 0.8804 GB, free: 2.086 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009531/1.256, allocations: 0.6125 MB / 0.881 GB, free: 1.473 MB / 0.6387 GB Notification: Performance of SimCode: time 1.152e-06/1.256, allocations: 10.34 kB / 0.8811 GB, free: 1.465 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1127/1.369, allocations: 39.8 MB / 0.9199 GB, free: 9.957 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.6/18.97, allocations: 19.48 kB / 0.9199 GB, free: 9.941 MB / 0.6856 GB " [Timeout remaining time 641] (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/jenkins1/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: 23.658208302003914]