Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.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.Interfaces.Tests.Test_p_out_clipping,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Interfaces_Tests_Test_p_out_clipping",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Interfaces.Tests.Test_p_out_clipping,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_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.00927/0.00927, allocations: 95.31 kB / 15.73 MB, free: 6.051 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.002265/0.002265, allocations: 202.8 kB / 16.68 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.471/1.471, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7468/0.7468, allocations: 93.71 MB / 384.3 MB, free: 6.91 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002279/0.00228, allocations: 91.84 kB / 0.5199 GB, free: 6.328 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1409/0.1432, allocations: 68.27 MB / 0.5866 GB, free: 1.988 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Interfaces.Tests.Test_p_out_clipping): time 0.5577/0.7009, allocations: 161.8 MB / 0.7446 GB, free: 0.9102 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01691/0.7179, allocations: 12.65 MB / 0.757 GB, free: 4.223 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001086/0.719, allocations: 35.81 kB / 0.757 GB, free: 4.188 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001964/0.7211, allocations: 0.6645 MB / 0.7577 GB, free: 3.52 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.003626/0.7247, allocations: 1.173 MB / 0.7588 GB, free: 2.34 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002941/0.7277, allocations: 0.89 MB / 0.7597 GB, free: 1.453 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.002827/0.7305, allocations: 1.9 MB / 0.7615 GB, free: 15.54 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007343/0.7313, allocations: 364.7 kB / 0.7619 GB, free: 15.18 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001703/0.733, allocations: 0.8213 MB / 0.7627 GB, free: 14.35 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001959/0.735, allocations: 1.079 MB / 0.7637 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.000445/0.7354, allocations: 128 kB / 0.7639 GB, free: 13.14 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00432/0.7398, allocations: 1.528 MB / 0.7654 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0006411/0.7404, allocations: 386.7 kB / 0.7657 GB, free: 11.24 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.001073/0.7415, allocations: 0.719 MB / 0.7664 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.004505/0.746, allocations: 2.187 MB / 0.7686 GB, free: 8.324 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.7461, allocations: 0 / 0.7686 GB, free: 8.324 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.986e-06/0.7461, allocations: 0 / 0.7686 GB, free: 8.324 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 2.64e-05/0.7461, allocations: 0 / 0.7686 GB, free: 8.324 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 237 * Number of variables: 237 Notification: Performance of Generate backend data structure: time 0.004964/0.7511, allocations: 2.073 MB / 0.7706 GB, free: 6.195 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.696e-05/0.7511, allocations: 12.03 kB / 0.7706 GB, free: 6.184 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002022/0.7513, allocations: 143.2 kB / 0.7707 GB, free: 6.039 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003463/0.7517, allocations: 163.1 kB / 0.7709 GB, free: 5.879 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00168/0.7534, allocations: 0.9881 MB / 0.7719 GB, free: 4.848 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001183/0.7535, allocations: 99.62 kB / 0.772 GB, free: 4.742 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001781/0.7537, allocations: 99.95 kB / 0.7721 GB, free: 4.645 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002463/0.7562, allocations: 1.466 MB / 0.7735 GB, free: 3.164 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.038e-05/0.7562, allocations: 0 / 0.7735 GB, free: 3.164 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001089/0.7563, allocations: 43.88 kB / 0.7735 GB, free: 3.121 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.203e-05/0.7564, allocations: 53.97 kB / 0.7736 GB, free: 3.066 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00339/0.7598, allocations: 2.049 MB / 0.7756 GB, free: 1.02 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009153/0.769, allocations: 5.226 MB / 0.7807 GB, free: 11.53 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002128/0.7712, allocations: 1.309 MB / 0.782 GB, free: 10.21 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001311/0.7725, allocations: 0.8809 MB / 0.7828 GB, free: 9.324 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006428/0.7789, allocations: 4.711 MB / 0.7874 GB, free: 4.027 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.595e-05/0.779, allocations: 43.56 kB / 0.7875 GB, free: 3.977 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=119): time 5.37e-06/0.779, allocations: 0 / 0.7875 GB, free: 3.977 MB / 0.6231 GB Notification: Performance of matching and sorting (n=121): time 0.01021/0.7892, allocations: 5.293 MB / 0.7926 GB, free: 14.5 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.101e-05/0.7893, allocations: 90.11 kB / 0.7927 GB, free: 14.4 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001294/0.7906, allocations: 0.9139 MB / 0.7936 GB, free: 13.46 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 9.803e-05/0.7908, allocations: 49.7 kB / 0.7937 GB, free: 13.41 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004157/0.7912, allocations: 477.7 kB / 0.7941 GB, free: 12.94 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003897/0.7916, allocations: 436.2 kB / 0.7945 GB, free: 12.51 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004146/0.792, allocations: 246.7 kB / 0.7948 GB, free: 12.26 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001746/0.7922, allocations: 357.9 kB / 0.7951 GB, free: 11.91 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001098/0.7933, allocations: 0.6311 MB / 0.7957 GB, free: 11.27 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001243/0.7945, allocations: 0.7612 MB / 0.7965 GB, free: 10.48 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002489/0.797, allocations: 1.476 MB / 0.7979 GB, free: 8.98 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.978e-06/0.7971, allocations: 0 / 0.7979 GB, free: 8.98 MB / 0.6387 GB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003775/0.8008, allocations: 1.988 MB / 0.7998 GB, free: 6.98 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.403e-05/0.8009, allocations: 5.875 kB / 0.7999 GB, free: 6.977 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.823e-05/0.8009, allocations: 4 kB / 0.7999 GB, free: 6.973 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001001/0.8019, allocations: 349.6 kB / 0.8002 GB, free: 6.629 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001069/0.803, allocations: 235.5 kB / 0.8004 GB, free: 6.398 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005525/0.8085, allocations: 3.888 MB / 0.8042 GB, free: 2.375 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009594/0.8095, allocations: 39.98 kB / 0.8043 GB, free: 2.336 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000137/0.8097, allocations: 63.94 kB / 0.8043 GB, free: 2.273 MB / 0.6387 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (112): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(7,23,57.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006242/0.8103, allocations: 326.2 kB / 0.8046 GB, free: 1.945 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002834/0.8106, allocations: 131.2 kB / 0.8047 GB, free: 1.816 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004614/0.8152, allocations: 2.768 MB / 0.8075 GB, free: 15 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.688e-05/0.8152, allocations: 12 kB / 0.8075 GB, free: 14.98 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.8152, allocations: 7.938 kB / 0.8075 GB, free: 14.98 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.737e-05/0.8153, allocations: 7.969 kB / 0.8075 GB, free: 14.97 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005689/0.821, allocations: 3.428 MB / 0.8108 GB, free: 11.47 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.184e-05/0.821, allocations: 0 / 0.8108 GB, free: 11.47 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009123/0.8219, allocations: 179.6 kB / 0.811 GB, free: 11.29 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009926/0.8229, allocations: 400.9 kB / 0.8114 GB, free: 10.9 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001159/0.8231, allocations: 43.94 kB / 0.8114 GB, free: 10.86 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005697/0.8288, allocations: 3.881 MB / 0.8152 GB, free: 6.828 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.8288, allocations: 0 / 0.8152 GB, free: 6.828 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00521/0.834, allocations: 2.824 MB / 0.818 GB, free: 3.977 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007819/0.8348, allocations: 348.1 kB / 0.8183 GB, free: 3.617 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003163/0.8352, allocations: 24 kB / 0.8183 GB, free: 3.594 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008016/0.836, allocations: 27.98 kB / 0.8184 GB, free: 3.566 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002669/0.8362, allocations: 93.64 kB / 0.8184 GB, free: 3.473 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001223/0.8364, allocations: 51.92 kB / 0.8185 GB, free: 3.422 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.001196/0.8376, allocations: 0.7078 MB / 0.8192 GB, free: 2.707 MB / 0.6544 GB Notification: Performance of sort global known variables: time 4.11e-07/0.8376, allocations: 0 / 0.8192 GB, free: 2.707 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001984/0.8396, allocations: 483.4 kB / 0.8196 GB, free: 2.234 MB / 0.6544 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (flowResistance.m_flow,fan.m_flow,fan.phi,fan.omega,basicControlValve.m_flow,specificValveType.m_flow,tanValve.m_flow,nozzle.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 (79): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(7,23,57.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007538/0.8471, allocations: 3.979 MB / 0.8235 GB, free: 14.36 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.00389/0.8511, allocations: 1.934 MB / 0.8254 GB, free: 12.4 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 6.642e-06/0.8511, allocations: 448 / 0.8254 GB, free: 12.4 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.002304/0.8534, allocations: 1.188 MB / 0.8266 GB, free: 11.2 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002449/0.8559, allocations: 430.3 kB / 0.827 GB, free: 10.78 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02207/0.878, allocations: 12.1 MB / 0.8388 GB, free: 14.48 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001056/0.8791, allocations: 1.172 MB / 0.8399 GB, free: 13.28 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001158/0.8803, allocations: 336 kB / 0.8403 GB, free: 12.96 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008214/0.8811, allocations: 491.1 kB / 0.8407 GB, free: 12.48 MB / 0.6856 GB Notification: Performance of SimCode: time 1.102e-06/0.8811, allocations: 0 / 0.8407 GB, free: 12.48 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3947/1.276, allocations: 38.02 MB / 0.8779 GB, free: 230.5 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.45/17.73, allocations: 15.47 kB / 0.8779 GB, free: 230.4 MB / 0.6856 GB (rm -f ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_ThermofluidStream.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_Interfaces_Tests_Test_p_out_clipping.fmu > ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Interfaces.Tests.Test_p_out_clipping_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches