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.008903/0.008903, allocations: 96.7 kB / 15.73 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001519/0.001519, allocations: 194.8 kB / 16.67 MB, free: 5.973 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.563/1.563, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8034/0.8034, allocations: 93.72 MB / 384.3 MB, free: 6.906 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002469/0.002469, allocations: 79.88 kB / 0.52 GB, free: 6.297 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1494/0.1519, allocations: 68.27 MB / 0.5866 GB, free: 1.953 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping): time 0.5005/0.6524, allocations: 172.4 MB / 0.755 GB, free: 6.281 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.0171/0.6696, allocations: 11.36 MB / 0.7661 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002058/0.6718, allocations: 67.56 kB / 0.7661 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.002387/0.6742, allocations: 0.8972 MB / 0.767 GB, free: 9.914 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.00524/0.6795, allocations: 1.682 MB / 0.7687 GB, free: 8.223 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.004027/0.6835, allocations: 1.309 MB / 0.7699 GB, free: 6.91 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.003984/0.6875, allocations: 2.558 MB / 0.7724 GB, free: 4.344 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008322/0.6884, allocations: 394 kB / 0.7728 GB, free: 3.945 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003233/0.6916, allocations: 1.369 MB / 0.7742 GB, free: 2.57 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00226/0.6939, allocations: 1.136 MB / 0.7753 GB, free: 1.43 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0005027/0.6944, allocations: 108 kB / 0.7754 GB, free: 1.324 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004728/0.6991, allocations: 1.833 MB / 0.7772 GB, free: 15.49 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0004922/0.6996, allocations: 338.5 kB / 0.7775 GB, free: 15.16 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.001171/0.7009, allocations: 0.8078 MB / 0.7783 GB, free: 14.34 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.00508/0.7059, allocations: 2.501 MB / 0.7807 GB, free: 11.84 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.706, allocations: 0 / 0.7807 GB, free: 11.84 MB / 0.6231 GB Notification: Performance of FrontEnd: time 2.124e-06/0.706, allocations: 0 / 0.7807 GB, free: 11.84 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 2.124e-05/0.706, allocations: 0 / 0.7807 GB, free: 11.84 MB / 0.6231 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.004061/0.7101, allocations: 2.163 MB / 0.7828 GB, free: 9.613 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/0.7101, allocations: 12.03 kB / 0.7828 GB, free: 9.602 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001851/0.7103, allocations: 160.8 kB / 0.783 GB, free: 9.434 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003014/0.7106, allocations: 207.7 kB / 0.7832 GB, free: 9.23 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002243/0.7129, allocations: 1.24 MB / 0.7844 GB, free: 7.938 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.03e-05/0.713, allocations: 86.16 kB / 0.7845 GB, free: 7.852 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001569/0.7131, allocations: 108 kB / 0.7846 GB, free: 7.746 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002078/0.7152, allocations: 1.183 MB / 0.7857 GB, free: 6.496 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.846e-05/0.7153, allocations: 3.938 kB / 0.7857 GB, free: 6.492 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.807e-05/0.7153, allocations: 44 kB / 0.7858 GB, free: 6.449 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.693e-05/0.7154, allocations: 28 kB / 0.7858 GB, free: 6.422 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001798/0.7172, allocations: 1.07 MB / 0.7869 GB, free: 5.352 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007263/0.7245, allocations: 5.265 MB / 0.792 GB, free: 15.71 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001562/0.7261, allocations: 0.7416 MB / 0.7927 GB, free: 14.94 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006924/0.7268, allocations: 436.9 kB / 0.7931 GB, free: 14.5 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005117/0.7319, allocations: 3.901 MB / 0.797 GB, free: 10.05 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.517e-05/0.732, allocations: 47.12 kB / 0.797 GB, free: 10 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=108): time 7.344e-06/0.732, allocations: 0 / 0.797 GB, free: 10 MB / 0.6387 GB Notification: Performance of matching and sorting (n=108): time 0.00392/0.7359, allocations: 1.85 MB / 0.7988 GB, free: 8.039 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.597e-05/0.736, allocations: 119.3 kB / 0.7989 GB, free: 7.898 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001821/0.7379, allocations: 1.286 MB / 0.8002 GB, free: 6.602 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 6.39e-05/0.738, allocations: 45.7 kB / 0.8002 GB, free: 6.551 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005835/0.7385, allocations: 0.6213 MB / 0.8008 GB, free: 5.922 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.00034/0.7389, allocations: 392.6 kB / 0.8012 GB, free: 5.535 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003164/0.7392, allocations: 198.9 kB / 0.8014 GB, free: 5.336 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.000214/0.7394, allocations: 345.9 kB / 0.8017 GB, free: 4.992 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006074/0.7401, allocations: 302.4 kB / 0.802 GB, free: 4.695 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007182/0.7408, allocations: 449.3 kB / 0.8024 GB, free: 4.211 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00142/0.7422, allocations: 0.7765 MB / 0.8032 GB, free: 3.398 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.775e-06/0.7422, allocations: 3.984 kB / 0.8032 GB, free: 3.395 MB / 0.6387 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.002425/0.7447, allocations: 1.161 MB / 0.8043 GB, free: 2.215 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.705e-05/0.7447, allocations: 10.19 kB / 0.8043 GB, free: 2.207 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.7447, allocations: 3.984 kB / 0.8043 GB, free: 2.203 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005505/0.7453, allocations: 164.3 kB / 0.8045 GB, free: 2.027 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007369/0.746, allocations: 207.7 kB / 0.8047 GB, free: 1.824 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006622/0.7527, allocations: 7.237 MB / 0.8118 GB, free: 9.887 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000833/0.7535, allocations: 119.1 kB / 0.8119 GB, free: 9.77 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001135/0.7536, allocations: 54.55 kB / 0.8119 GB, free: 9.719 MB / 0.6544 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.0007098/0.7544, allocations: 313.5 kB / 0.8122 GB, free: 9.402 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003092/0.7547, allocations: 178.8 kB / 0.8124 GB, free: 9.227 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003104/0.7578, allocations: 1.716 MB / 0.8141 GB, free: 7.449 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.448e-06/0.7578, allocations: 8 kB / 0.8141 GB, free: 7.441 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.7578, allocations: 4 kB / 0.8141 GB, free: 7.438 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.069e-05/0.7578, allocations: 3.984 kB / 0.8141 GB, free: 7.434 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004226/0.7621, allocations: 2.403 MB / 0.8164 GB, free: 4.922 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/0.7621, allocations: 0 / 0.8164 GB, free: 4.922 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005142/0.7626, allocations: 127.8 kB / 0.8166 GB, free: 4.797 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005195/0.7631, allocations: 160.5 kB / 0.8167 GB, free: 4.625 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.752e-05/0.7632, allocations: 27.98 kB / 0.8167 GB, free: 4.598 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006699/0.7699, allocations: 7.268 MB / 0.8238 GB, free: 12.62 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.111e-06/0.77, allocations: 7.938 kB / 0.8238 GB, free: 12.62 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002776/0.7727, allocations: 1.588 MB / 0.8254 GB, free: 10.96 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000805/0.7736, allocations: 351.6 kB / 0.8257 GB, free: 10.6 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002941/0.7739, allocations: 35.89 kB / 0.8258 GB, free: 10.56 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007018/0.7746, allocations: 20 kB / 0.8258 GB, free: 10.54 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001423/0.7747, allocations: 75.78 kB / 0.8259 GB, free: 10.47 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.454e-05/0.7748, allocations: 39.97 kB / 0.8259 GB, free: 10.43 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.002055/0.7769, allocations: 0.9889 MB / 0.8269 GB, free: 9.449 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.91e-07/0.7769, allocations: 0 / 0.8269 GB, free: 9.449 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.002032/0.7789, allocations: 459.3 kB / 0.8273 GB, free: 9 MB / 0.67 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.006106/0.785, allocations: 2.789 MB / 0.83 GB, free: 6.281 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.002965/0.788, allocations: 1.344 MB / 0.8313 GB, free: 4.875 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/0.788, allocations: 0 / 0.8313 GB, free: 4.875 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.001541/0.7896, allocations: 0.9495 MB / 0.8323 GB, free: 3.863 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003201/0.7928, allocations: 487 kB / 0.8327 GB, free: 3.398 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02312/0.816, allocations: 10.96 MB / 0.8434 GB, free: 8.066 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001461/0.8175, allocations: 1.221 MB / 0.8446 GB, free: 6.816 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001256/0.8188, allocations: 301 kB / 0.8449 GB, free: 6.566 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001033/0.8199, allocations: 0.6086 MB / 0.8455 GB, free: 5.957 MB / 0.6856 GB Notification: Performance of SimCode: time 8.22e-07/0.8199, allocations: 3.938 kB / 0.8455 GB, free: 5.953 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.393/1.213, allocations: 39.47 MB / 0.8841 GB, free: 226.1 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.9/17.11, allocations: 12.08 kB / 0.8841 GB, free: 226.1 MB / 0.6856 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