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: translateModel(ThermofluidStream.Interfaces.Tests.Test_p_out_clipping,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|basicControlValve.m_flow|fan.m_flow|fan.omega|fan.phi|flowResistance.m_flow|nozzle.m_flow|specificValveType.m_flow|tanValve.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping") translateModel(ThermofluidStream.Interfaces.Tests.Test_p_out_clipping,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|basicControlValve.m_flow|fan.m_flow|fan.omega|fan.phi|flowResistance.m_flow|nozzle.m_flow|specificValveType.m_flow|tanValve.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001501/0.001501, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001843/0.001843, allocations: 197.4 kB / 16.14 MB, free: 6.715 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.419/1.419, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.76/0.76, allocations: 93.72 MB / 383.7 MB, free: 7.176 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001483, allocations: 77.88 kB / 462.7 MB, free: 22.25 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.143/0.1445, allocations: 68.27 MB / 0.5185 GB, free: 7.492 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Interfaces.Tests.Test_p_out_clipping): time 0.4636/0.6081, allocations: 160.3 MB / 0.675 GB, free: 5.844 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01456/0.6227, allocations: 12.8 MB / 0.6875 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001433/0.6241, allocations: 44.94 kB / 0.6876 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001671/0.6258, allocations: 0.6003 MB / 0.6882 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.00313/0.629, allocations: 1.078 MB / 0.6892 GB, free: 10.24 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002641/0.6317, allocations: 0.8013 MB / 0.69 GB, free: 9.637 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002509/0.6342, allocations: 2.259 MB / 0.6922 GB, free: 8.375 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006226/0.6348, allocations: 337.2 kB / 0.6925 GB, free: 8.199 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001536/0.6364, allocations: 0.7488 MB / 0.6933 GB, free: 7.828 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00182/0.6382, allocations: 1.068 MB / 0.6943 GB, free: 7.211 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0005014/0.6387, allocations: 84.31 kB / 0.6944 GB, free: 7.211 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003949/0.6427, allocations: 1.494 MB / 0.6958 GB, free: 5.918 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0006231/0.6433, allocations: 338.8 kB / 0.6962 GB, free: 5.586 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.001382/0.6447, allocations: 0.6838 MB / 0.6968 GB, free: 4.898 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.00403/0.6487, allocations: 2.06 MB / 0.6988 GB, free: 2.832 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.6488, allocations: 3.938 kB / 0.6988 GB, free: 2.828 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.012e-06/0.6488, allocations: 4 kB / 0.6988 GB, free: 2.824 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.953e-05/0.6489, allocations: 0 / 0.6988 GB, free: 2.824 MB / 0.4981 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.005519/0.6544, allocations: 2.017 MB / 0.7008 GB, free: 0.75 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.383e-05/0.6544, allocations: 12.03 kB / 0.7008 GB, free: 0.7383 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004963/0.6549, allocations: 154.6 kB / 0.701 GB, free: 0.5859 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001746/0.6567, allocations: 0.917 MB / 0.7019 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001102/0.6568, allocations: 95.7 kB / 0.702 GB, free: 15.53 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002825/0.6571, allocations: 99.91 kB / 0.7021 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00274/0.6599, allocations: 1.473 MB / 0.7035 GB, free: 13.94 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.359e-05/0.6599, allocations: 0 / 0.7035 GB, free: 13.94 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001023/0.66, allocations: 36 kB / 0.7035 GB, free: 13.91 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.527e-05/0.6601, allocations: 51.42 kB / 0.7036 GB, free: 13.86 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003152/0.6632, allocations: 2.057 MB / 0.7056 GB, free: 11.8 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008044/0.6713, allocations: 5.233 MB / 0.7107 GB, free: 6.312 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00188/0.6732, allocations: 1.314 MB / 0.712 GB, free: 4.984 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001166/0.6744, allocations: 0.8894 MB / 0.7129 GB, free: 4.094 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005667/0.6801, allocations: 4.699 MB / 0.7174 GB, free: 14.81 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.518e-05/0.6801, allocations: 48.38 kB / 0.7175 GB, free: 14.76 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=119): time 3.166e-06/0.6801, allocations: 0 / 0.7175 GB, free: 14.76 MB / 0.5294 GB Notification: Performance of matching and sorting (n=121): time 0.00997/0.6901, allocations: 5.283 MB / 0.7226 GB, free: 9.293 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.341e-05/0.6902, allocations: 64.41 kB / 0.7227 GB, free: 9.215 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001314/0.6915, allocations: 0.914 MB / 0.7236 GB, free: 8.281 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 8.91e-05/0.6916, allocations: 45.7 kB / 0.7236 GB, free: 8.23 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003236/0.6919, allocations: 465.1 kB / 0.7241 GB, free: 7.77 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.000364/0.6923, allocations: 417.9 kB / 0.7245 GB, free: 7.355 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003886/0.6927, allocations: 246.7 kB / 0.7247 GB, free: 7.109 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000123/0.6928, allocations: 353.9 kB / 0.7251 GB, free: 6.758 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001023/0.6939, allocations: 0.6311 MB / 0.7257 GB, free: 6.125 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001304/0.6952, allocations: 0.7564 MB / 0.7264 GB, free: 5.336 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002449/0.6977, allocations: 1.472 MB / 0.7278 GB, free: 3.84 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.6977, allocations: 0 / 0.7278 GB, free: 3.84 MB / 0.5294 GB Notification: Performance of matching and sorting (n=142) (initialization): time 0.00353/0.7012, allocations: 1.98 MB / 0.7298 GB, free: 1.844 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.373e-05/0.7012, allocations: 7.984 kB / 0.7298 GB, free: 1.836 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.165e-05/0.7013, allocations: 8 kB / 0.7298 GB, free: 1.828 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009512/0.7022, allocations: 361 kB / 0.7301 GB, free: 1.473 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001028/0.7033, allocations: 227.7 kB / 0.7304 GB, free: 1.25 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00496/0.7082, allocations: 3.577 MB / 0.7339 GB, free: 13.54 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009865/0.7092, allocations: 39.83 kB / 0.7339 GB, free: 13.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001849/0.7094, allocations: 59.94 kB / 0.7339 GB, free: 13.45 MB / 0.545 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.0007114/0.7102, allocations: 336.5 kB / 0.7343 GB, free: 13.11 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003794/0.7105, allocations: 118.5 kB / 0.7344 GB, free: 12.99 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004417/0.715, allocations: 2.779 MB / 0.7371 GB, free: 10.16 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-05/0.715, allocations: 12 kB / 0.7371 GB, free: 10.14 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.764e-05/0.715, allocations: 8 kB / 0.7371 GB, free: 10.14 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.408e-05/0.7151, allocations: 7.969 kB / 0.7371 GB, free: 10.13 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005872/0.7209, allocations: 3.412 MB / 0.7405 GB, free: 6.645 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-05/0.721, allocations: 3.984 kB / 0.7405 GB, free: 6.641 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008859/0.7219, allocations: 175.7 kB / 0.7406 GB, free: 6.469 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009892/0.7229, allocations: 400.1 kB / 0.741 GB, free: 6.074 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001197/0.723, allocations: 43.94 kB / 0.741 GB, free: 6.031 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004894/0.7279, allocations: 3.576 MB / 0.7445 GB, free: 2.32 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.7279, allocations: 8 kB / 0.7445 GB, free: 2.312 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004793/0.7327, allocations: 2.806 MB / 0.7473 GB, free: 15.47 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006894/0.7334, allocations: 347.4 kB / 0.7476 GB, free: 15.11 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003205/0.7338, allocations: 27.94 kB / 0.7476 GB, free: 15.09 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009039/0.7347, allocations: 39.83 kB / 0.7477 GB, free: 15.05 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002451/0.7349, allocations: 96.83 kB / 0.7478 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001159/0.7351, allocations: 47.94 kB / 0.7478 GB, free: 14.9 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001133/0.7362, allocations: 0.7001 MB / 0.7485 GB, free: 14.2 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.1e-07/0.7362, allocations: 0 / 0.7485 GB, free: 14.2 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001627/0.7378, allocations: 479.8 kB / 0.749 GB, free: 13.73 MB / 0.5606 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.001716/0.7396, allocations: 0.7197 MB / 0.7497 GB, free: 13.14 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0036/0.7432, allocations: 1.923 MB / 0.7515 GB, free: 11.2 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.7432, allocations: 0 / 0.7515 GB, free: 11.2 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002153/0.7454, allocations: 1.188 MB / 0.7527 GB, free: 9.992 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002405/0.7478, allocations: 406.4 kB / 0.7531 GB, free: 9.605 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006468/0.7543, allocations: 3.473 MB / 0.7565 GB, free: 6.09 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001058/0.7553, allocations: 1.172 MB / 0.7576 GB, free: 4.891 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001517/0.7569, allocations: 336.1 kB / 0.7579 GB, free: 4.566 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004634/0.7573, allocations: 143.2 kB / 0.7581 GB, free: 4.426 MB / 0.5606 GB Notification: Performance of SimCode: time 9.12e-07/0.7574, allocations: 3.938 kB / 0.7581 GB, free: 4.422 MB / 0.5606 GB Notification: Performance of Templates: time 0.04461/0.802, allocations: 25.25 MB / 0.7827 GB, free: 11.31 MB / 0.5919 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping.makefile (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 & ./ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Interfaces.Tests.Test_p_out_clipping_ref.mat","/var/lib/jenkins/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