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.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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001827/0.001827, 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.002042/0.002042, allocations: 195.9 kB / 16.53 MB, free: 6.699 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.731/1.731, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.9264/0.9264, allocations: 93.73 MB / 384.1 MB, free: 6.949 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002384/0.002385, allocations: 78.34 kB / 463.5 MB, free: 21.98 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1846/0.1871, allocations: 68.26 MB / 0.5193 GB, free: 6.898 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping): time 0.6843/0.8714, allocations: 172.4 MB / 0.6877 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01886/0.8903, allocations: 11.36 MB / 0.6988 GB, free: 2.391 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002503/0.8929, allocations: 67.94 kB / 0.6988 GB, free: 2.363 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.003013/0.896, allocations: 0.8846 MB / 0.6997 GB, free: 1.68 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.006514/0.9025, allocations: 1.687 MB / 0.7013 GB, free: 312 kB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.005433/0.908, allocations: 1.313 MB / 0.7026 GB, free: 15.16 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.005347/0.9134, allocations: 2.558 MB / 0.7051 GB, free: 12.6 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009517/0.9143, allocations: 395.7 kB / 0.7055 GB, free: 12.2 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004073/0.9184, allocations: 1.365 MB / 0.7068 GB, free: 10.82 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002249/0.9207, allocations: 1.136 MB / 0.7079 GB, free: 9.684 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0002877/0.921, allocations: 108 kB / 0.708 GB, free: 9.578 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005553/0.9266, allocations: 1.836 MB / 0.7098 GB, free: 7.738 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0005183/0.9271, allocations: 338.5 kB / 0.7102 GB, free: 7.406 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.001396/0.9285, allocations: 0.8039 MB / 0.7109 GB, free: 6.598 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.006388/0.9349, allocations: 2.426 MB / 0.7133 GB, free: 4.164 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 9.197e-06/0.935, allocations: 0 / 0.7133 GB, free: 4.164 MB / 0.5137 GB Notification: Performance of FrontEnd: time 3.287e-06/0.935, allocations: 0 / 0.7133 GB, free: 4.164 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 3.857e-05/0.9351, allocations: 0 / 0.7133 GB, free: 4.164 MB / 0.5137 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.005217/0.9403, allocations: 2.104 MB / 0.7154 GB, free: 2.004 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 6.337e-05/0.9404, allocations: 12.03 kB / 0.7154 GB, free: 1.992 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004277/0.9408, allocations: 152.8 kB / 0.7155 GB, free: 1.832 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003485/0.9411, allocations: 198.5 kB / 0.7157 GB, free: 1.637 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002089/0.9432, allocations: 1.106 MB / 0.7168 GB, free: 488 kB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.025e-05/0.9433, allocations: 86.47 kB / 0.7169 GB, free: 400 kB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001831/0.9435, allocations: 111.8 kB / 0.717 GB, free: 288 kB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002458/0.946, allocations: 1.179 MB / 0.7181 GB, free: 15.03 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.385e-05/0.946, allocations: 0 / 0.7181 GB, free: 15.03 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.503e-05/0.9461, allocations: 40 kB / 0.7182 GB, free: 14.99 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.714e-05/0.9462, allocations: 28 kB / 0.7182 GB, free: 14.96 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001999/0.9482, allocations: 1.07 MB / 0.7192 GB, free: 13.89 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008689/0.9569, allocations: 5.291 MB / 0.7244 GB, free: 8.223 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001808/0.9587, allocations: 0.7417 MB / 0.7251 GB, free: 7.453 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007279/0.9595, allocations: 441.8 kB / 0.7256 GB, free: 7.016 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005883/0.9654, allocations: 3.904 MB / 0.7294 GB, free: 2.562 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.815e-05/0.9654, allocations: 55.06 kB / 0.7294 GB, free: 2.5 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=108): time 3.988e-06/0.9655, allocations: 0 / 0.7294 GB, free: 2.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=108): time 0.004272/0.9697, allocations: 1.839 MB / 0.7312 GB, free: 0.5469 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.636e-05/0.9698, allocations: 115.4 kB / 0.7313 GB, free: 420 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002026/0.9719, allocations: 1.282 MB / 0.7326 GB, free: 15.12 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 6.854e-05/0.972, allocations: 45.7 kB / 0.7326 GB, free: 15.07 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006425/0.9726, allocations: 0.6207 MB / 0.7332 GB, free: 14.44 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003717/0.973, allocations: 370.6 kB / 0.7336 GB, free: 14.07 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003389/0.9733, allocations: 206.7 kB / 0.7338 GB, free: 13.86 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0002502/0.9736, allocations: 345.9 kB / 0.7341 GB, free: 13.52 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007173/0.9743, allocations: 298.5 kB / 0.7344 GB, free: 13.23 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008311/0.9752, allocations: 445.2 kB / 0.7348 GB, free: 12.75 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001653/0.9768, allocations: 0.7709 MB / 0.7356 GB, free: 11.94 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.544e-06/0.9769, allocations: 3.938 kB / 0.7356 GB, free: 11.94 MB / 0.545 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.002918/0.9798, allocations: 1.153 MB / 0.7367 GB, free: 10.77 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.334e-05/0.9798, allocations: 4 kB / 0.7367 GB, free: 10.76 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.282e-05/0.9799, allocations: 4 kB / 0.7367 GB, free: 10.76 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000651/0.9805, allocations: 172.3 kB / 0.7369 GB, free: 10.57 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009458/0.9815, allocations: 207.7 kB / 0.7371 GB, free: 10.37 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008425/0.9899, allocations: 7.248 MB / 0.7442 GB, free: 2.43 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001347/0.9913, allocations: 102.8 kB / 0.7443 GB, free: 2.328 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001401/0.9915, allocations: 51.91 kB / 0.7443 GB, free: 2.277 MB / 0.545 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.0007958/0.9923, allocations: 319 kB / 0.7446 GB, free: 1.957 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006315/0.9929, allocations: 169.9 kB / 0.7448 GB, free: 1.789 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003695/0.9966, allocations: 1.705 MB / 0.7464 GB, free: 16 kB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.098e-05/0.9966, allocations: 12 kB / 0.7464 GB, free: 4 kB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.994e-06/0.9967, allocations: 0 / 0.7464 GB, free: 4 kB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.143e-05/0.9967, allocations: 8.047 kB / 0.7465 GB, free: 15.99 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004708/1.001, allocations: 2.399 MB / 0.7488 GB, free: 13.49 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.997e-06/1.001, allocations: 3.984 kB / 0.7488 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007097/1.002, allocations: 131.8 kB / 0.7489 GB, free: 13.36 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005417/1.003, allocations: 168 kB / 0.7491 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.446e-05/1.003, allocations: 27.98 kB / 0.7491 GB, free: 13.15 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00845/1.011, allocations: 7.265 MB / 0.7562 GB, free: 5.184 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.722e-06/1.011, allocations: 4 kB / 0.7562 GB, free: 5.18 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003638/1.015, allocations: 1.579 MB / 0.7578 GB, free: 3.527 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000923/1.016, allocations: 330.8 kB / 0.7581 GB, free: 3.184 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002473/1.016, allocations: 43.75 kB / 0.7581 GB, free: 3.141 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006308/1.017, allocations: 20 kB / 0.7581 GB, free: 3.121 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003847/1.017, allocations: 75.84 kB / 0.7582 GB, free: 3.047 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.246e-05/1.017, allocations: 35.92 kB / 0.7582 GB, free: 3.012 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001824/1.019, allocations: 0.9889 MB / 0.7592 GB, free: 2.031 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.6e-07/1.019, allocations: 0 / 0.7592 GB, free: 2.031 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001989/1.021, allocations: 463.4 kB / 0.7596 GB, free: 1.578 MB / 0.5606 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.00571/1.027, allocations: 2.785 MB / 0.7624 GB, free: 14.86 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.003306/1.03, allocations: 1.364 MB / 0.7637 GB, free: 13.43 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 8.205e-06/1.03, allocations: 0 / 0.7637 GB, free: 13.43 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001729/1.032, allocations: 0.9387 MB / 0.7646 GB, free: 12.43 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003183/1.035, allocations: 494.1 kB / 0.7651 GB, free: 11.97 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02403/1.059, allocations: 12.16 MB / 0.777 GB, free: 15.07 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001148/1.06, allocations: 1.206 MB / 0.7781 GB, free: 13.84 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.001431/1.062, allocations: 297.2 kB / 0.7784 GB, free: 13.59 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001082/1.063, allocations: 0.6125 MB / 0.779 GB, free: 12.98 MB / 0.5919 GB Notification: Performance of SimCode: time 2.886e-06/1.063, allocations: 0 / 0.779 GB, free: 12.98 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1305/1.194, allocations: 38.93 MB / 0.817 GB, free: 6.359 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.64/14.83, allocations: 19.64 kB / 0.817 GB, free: 6.34 MB / 0.6231 GB (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) 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches