Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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.0008609/0.0008609, 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.000888/0.000888, allocations: 165.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 0.8863/0.8863, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.6398/0.6398, allocations: 116 MB / 375.2 MB, free: 4.188 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/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_dev_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_dev_ThermofluidStream_Undirected_Interfaces_Tests_Test_p_out_clipping",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.864e-06/1.864e-06, allocations: 0 / 0.5532 GB, free: 13.36 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.78e-05/2.967e-05, allocations: 9.594 kB / 0.5533 GB, free: 13.35 MB / 490.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping): time 0.4081/0.4081, allocations: 151 MB / 0.7007 GB, free: 4.602 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.01179/0.4199, allocations: 10.65 MB / 0.7111 GB, free: 14.23 MB / 0.573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002078/0.422, allocations: 99.72 kB / 0.7112 GB, free: 14.17 MB / 0.573 GB Notification: Performance of NFTyping.typeComponents: time 0.00213/0.4241, allocations: 0.8677 MB / 0.712 GB, free: 13.51 MB / 0.573 GB Notification: Performance of NFTyping.typeBindings: time 0.004925/0.429, allocations: 1.891 MB / 0.7139 GB, free: 11.98 MB / 0.573 GB Notification: Performance of NFTyping.typeClassSections: time 0.003395/0.4324, allocations: 1.384 MB / 0.7152 GB, free: 10.92 MB / 0.573 GB Notification: Performance of NFFlatten.flatten: time 0.003632/0.4361, allocations: 2.87 MB / 0.718 GB, free: 9.184 MB / 0.573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005213/0.4366, allocations: 233.1 kB / 0.7183 GB, free: 9.031 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003654/0.4402, allocations: 1.925 MB / 0.7201 GB, free: 7.875 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001428/0.4417, allocations: 1.048 MB / 0.7212 GB, free: 7.363 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 0.0002109/0.4419, allocations: 113.6 kB / 0.7213 GB, free: 7.359 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002842/0.4447, allocations: 1.575 MB / 0.7228 GB, free: 6.668 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.0003252/0.445, allocations: 343.9 kB / 0.7231 GB, free: 6.398 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.0007672/0.4458, allocations: 0.5485 MB / 0.7237 GB, free: 6.152 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.004714/0.4505, allocations: 2.534 MB / 0.7262 GB, free: 4.578 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 8.396e-06/0.4505, allocations: 5.875 kB / 0.7262 GB, free: 4.574 MB / 0.573 GB Notification: Performance of FrontEnd: time 2.835e-06/0.4505, allocations: 0 / 0.7262 GB, free: 4.574 MB / 0.573 GB Notification: Performance of Transformations before backend: time 9.003e-05/0.4506, allocations: 0 / 0.7262 GB, free: 4.574 MB / 0.573 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.003276/0.4539, allocations: 2.095 MB / 0.7282 GB, free: 3.02 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.444e-05/0.4539, allocations: 10.69 kB / 0.7282 GB, free: 3.02 MB / 0.573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001327/0.4541, allocations: 161 kB / 0.7284 GB, free: 2.883 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004596/0.4545, allocations: 232.6 kB / 0.7286 GB, free: 2.77 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001687/0.4562, allocations: 1.137 MB / 0.7297 GB, free: 1.922 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.462e-05/0.4563, allocations: 79.72 kB / 0.7298 GB, free: 1.887 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001034/0.4564, allocations: 105.5 kB / 0.7299 GB, free: 1.852 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001386/0.4578, allocations: 1.242 MB / 0.7311 GB, free: 1.016 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.916e-05/0.4578, allocations: 6.562 kB / 0.7311 GB, free: 1.016 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.532e-05/0.4578, allocations: 40 kB / 0.7311 GB, free: 0.9844 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.513e-05/0.4578, allocations: 30.78 kB / 0.7312 GB, free: 0.9805 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001138/0.459, allocations: 1.089 MB / 0.7322 GB, free: 468 kB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004697/0.4637, allocations: 3.92 MB / 0.7361 GB, free: 13.4 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001/0.4647, allocations: 0.7051 MB / 0.7367 GB, free: 12.99 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004087/0.4651, allocations: 391.9 kB / 0.7371 GB, free: 12.79 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002559/0.4676, allocations: 1.516 MB / 0.7386 GB, free: 11.62 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.135e-05/0.4677, allocations: 49.81 kB / 0.7386 GB, free: 11.57 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=108): time 3.076e-06/0.4677, allocations: 1.219 kB / 0.7386 GB, free: 11.57 MB / 0.5886 GB Notification: Performance of matching and sorting (n=108): time 0.002256/0.4699, allocations: 1.456 MB / 0.7401 GB, free: 10.82 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.616e-05/0.47, allocations: 116.8 kB / 0.7402 GB, free: 10.7 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001192/0.4712, allocations: 1.299 MB / 0.7414 GB, free: 10.01 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 4.707e-05/0.4712, allocations: 47.14 kB / 0.7415 GB, free: 9.961 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003797/0.4716, allocations: 0.6302 MB / 0.7421 GB, free: 9.398 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002164/0.4718, allocations: 391.4 kB / 0.7425 GB, free: 9.055 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001866/0.472, allocations: 193.5 kB / 0.7427 GB, free: 8.941 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001016/0.4721, allocations: 342.3 kB / 0.743 GB, free: 8.609 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003775/0.4725, allocations: 297.5 kB / 0.7433 GB, free: 8.465 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000476/0.473, allocations: 0.5063 MB / 0.7438 GB, free: 8.07 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008859/0.4739, allocations: 0.7977 MB / 0.7445 GB, free: 7.59 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.4739, allocations: 0 / 0.7445 GB, free: 7.59 MB / 0.5886 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.001451/0.4753, allocations: 1.173 MB / 0.7457 GB, free: 6.969 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.084e-05/0.4753, allocations: 8.344 kB / 0.7457 GB, free: 6.969 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.4753, allocations: 2.312 kB / 0.7457 GB, free: 6.969 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003487/0.4757, allocations: 173.5 kB / 0.7459 GB, free: 6.859 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004029/0.4761, allocations: 201.7 kB / 0.7461 GB, free: 6.812 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003559/0.4797, allocations: 6.704 MB / 0.7526 GB, free: 76 kB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008149/0.4805, allocations: 122.1 kB / 0.7527 GB, free: 15.98 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.368e-05/0.4806, allocations: 47.8 kB / 0.7528 GB, free: 15.96 MB / 0.6042 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.0004854/0.481, allocations: 306.7 kB / 0.7531 GB, free: 15.73 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002391/0.4813, allocations: 185.3 kB / 0.7532 GB, free: 15.64 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001927/0.4832, allocations: 1.672 MB / 0.7549 GB, free: 14.11 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.067e-06/0.4832, allocations: 11.94 kB / 0.7549 GB, free: 14.1 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.4832, allocations: 8 kB / 0.7549 GB, free: 14.09 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.175e-05/0.4832, allocations: 7.984 kB / 0.7549 GB, free: 14.09 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002425/0.4857, allocations: 2.08 MB / 0.7569 GB, free: 11.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.712e-06/0.4857, allocations: 8 kB / 0.7569 GB, free: 11.89 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002685/0.4859, allocations: 123.8 kB / 0.7571 GB, free: 11.77 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002756/0.4862, allocations: 156.4 kB / 0.7572 GB, free: 11.61 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.093e-05/0.4862, allocations: 31.98 kB / 0.7572 GB, free: 11.57 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003371/0.4896, allocations: 6.709 MB / 0.7638 GB, free: 4.289 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.02e-06/0.4896, allocations: 7.984 kB / 0.7638 GB, free: 4.281 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002059/0.4917, allocations: 1.536 MB / 0.7653 GB, free: 2.668 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005414/0.4922, allocations: 270.6 kB / 0.7656 GB, free: 2.402 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001455/0.4924, allocations: 39.83 kB / 0.7656 GB, free: 2.363 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003554/0.4927, allocations: 16 kB / 0.7656 GB, free: 2.348 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001189/0.4928, allocations: 79.75 kB / 0.7657 GB, free: 2.27 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.099e-05/0.4929, allocations: 31.97 kB / 0.7657 GB, free: 2.238 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0009756/0.4939, allocations: 1.001 MB / 0.7667 GB, free: 1.246 MB / 0.6042 GB Notification: Performance of sort global known variables: time 2.21e-07/0.4939, allocations: 4 kB / 0.7667 GB, free: 1.242 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.001256/0.4951, allocations: 471.4 kB / 0.7671 GB, free: 0.7812 MB / 0.6042 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.002935/0.4981, allocations: 2.751 MB / 0.7698 GB, free: 14.12 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.001584/0.4996, allocations: 1.278 MB / 0.7711 GB, free: 12.79 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/0.4996, allocations: 4 kB / 0.7711 GB, free: 12.78 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0007492/0.5004, allocations: 0.9086 MB / 0.772 GB, free: 11.81 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002311/0.5027, allocations: 0.7427 MB / 0.7727 GB, free: 11.09 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01303/0.5157, allocations: 10.9 MB / 0.7833 GB, free: 15.79 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005606/0.5163, allocations: 0.6291 MB / 0.784 GB, free: 15.13 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.0009754/0.5173, allocations: 300.9 kB / 0.7842 GB, free: 14.88 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005594/0.5178, allocations: 0.6214 MB / 0.7848 GB, free: 14.25 MB / 0.6355 GB Notification: Performance of SimCode: time 1.793e-06/0.5178, allocations: 3.938 kB / 0.7849 GB, free: 14.25 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07623/0.5941, allocations: 47.38 MB / 0.8311 GB, free: 15.5 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.17/9.764, allocations: 3.938 kB / 0.8311 GB, free: 15.49 MB / 0.6823 GB " [Timeout remaining time 650] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_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_dev_ThermofluidStream_Undirected_Interfaces_Tests_Test_p_out_clipping.fmu > ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_dev_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_dev_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_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping_res.csv. Warning: Get data of variable Time from file ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.436843474395573]