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) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) [Timeout 90] 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=1000,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=1000,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") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00153/0.00153, allocations: 110.6 kB / 16.62 MB, free: 5.586 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.001474/0.001474, allocations: 188.7 kB / 17.61 MB, free: 4.762 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.378/1.378, allocations: 225.6 MB / 244.1 MB, free: 13.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7413/0.7413, allocations: 94.57 MB / 391.5 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002355/0.002355, allocations: 83.88 kB / 0.5351 GB, free: 4.453 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3347/0.3371, allocations: 71.84 MB / 0.6053 GB, free: 14.91 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Interfaces.Tests.Test_p_out_clipping): time 0.4981/0.8352, allocations: 162.4 MB / 0.7639 GB, free: 1.41 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.0141/0.8493, allocations: 12.71 MB / 0.7763 GB, free: 1.332 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009959/0.8503, allocations: 40.31 kB / 0.7763 GB, free: 1.332 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001614/0.8519, allocations: 0.6642 MB / 0.777 GB, free: 1.312 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.003144/0.855, allocations: 1.185 MB / 0.7781 GB, free: 1.27 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002546/0.8576, allocations: 0.9052 MB / 0.779 GB, free: 1.238 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.002667/0.8603, allocations: 1.906 MB / 0.7809 GB, free: 1.238 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000541/0.8608, allocations: 253.6 kB / 0.7811 GB, free: 1.195 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001558/0.8624, allocations: 0.8737 MB / 0.782 GB, free: 1.195 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00136/0.8637, allocations: 1.104 MB / 0.7831 GB, free: 1.195 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001685/0.8639, allocations: 128.3 kB / 0.7832 GB, free: 1.195 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003006/0.8669, allocations: 1.551 MB / 0.7847 GB, free: 1.164 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.000278/0.8672, allocations: 391.6 kB / 0.7851 GB, free: 1.164 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0006893/0.8679, allocations: 0.7155 MB / 0.7858 GB, free: 1.164 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.002942/0.8708, allocations: 2.196 MB / 0.7879 GB, free: 0.8516 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.8708, allocations: 0.9375 kB / 0.7879 GB, free: 0.8516 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.462e-06/0.8708, allocations: 0 / 0.7879 GB, free: 0.8516 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.817e-05/0.8708, allocations: 0 / 0.7879 GB, free: 0.8516 MB / 0.5919 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.003878/0.8747, allocations: 2.068 MB / 0.7899 GB, free: 15.89 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.369e-05/0.8747, allocations: 12 kB / 0.7899 GB, free: 15.89 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002791/0.875, allocations: 159.4 kB / 0.7901 GB, free: 15.8 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001338/0.8763, allocations: 0.9794 MB / 0.7911 GB, free: 15.44 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.256e-05/0.8764, allocations: 93.95 kB / 0.7911 GB, free: 15.41 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001711/0.8766, allocations: 103.8 kB / 0.7912 GB, free: 15.4 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001945/0.8786, allocations: 1.473 MB / 0.7927 GB, free: 15.33 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.719e-05/0.8786, allocations: 5.016 kB / 0.7927 GB, free: 15.32 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.54e-05/0.8787, allocations: 35.72 kB / 0.7927 GB, free: 15.32 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.757e-05/0.8787, allocations: 50.53 kB / 0.7928 GB, free: 15.32 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002539/0.8813, allocations: 2.05 MB / 0.7948 GB, free: 15.31 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007449/0.8887, allocations: 5.221 MB / 0.7999 GB, free: 13.71 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001625/0.8903, allocations: 1.227 MB / 0.8011 GB, free: 13.66 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009879/0.8913, allocations: 0.8187 MB / 0.8019 GB, free: 13.64 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005651/0.897, allocations: 4.697 MB / 0.8065 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.933e-05/0.897, allocations: 50.12 kB / 0.8065 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=119): time 2.766e-06/0.897, allocations: 0 / 0.8065 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of matching and sorting (n=121): time 0.008638/0.9057, allocations: 5.273 MB / 0.8117 GB, free: 9.164 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.832e-05/0.9057, allocations: 67.81 kB / 0.8117 GB, free: 9.098 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001032/0.9067, allocations: 0.9232 MB / 0.8126 GB, free: 8.938 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 9.063e-05/0.9068, allocations: 45.58 kB / 0.8127 GB, free: 8.906 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003518/0.9072, allocations: 463.6 kB / 0.8131 GB, free: 8.738 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003812/0.9076, allocations: 447.8 kB / 0.8135 GB, free: 8.453 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003476/0.9079, allocations: 241.6 kB / 0.8138 GB, free: 8.426 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001634/0.9081, allocations: 352.5 kB / 0.8141 GB, free: 8.117 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008636/0.9089, allocations: 0.6292 MB / 0.8147 GB, free: 8.117 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001011/0.91, allocations: 0.7598 MB / 0.8155 GB, free: 8.023 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001993/0.912, allocations: 1.475 MB / 0.8169 GB, free: 7.938 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.912, allocations: 1.125 kB / 0.8169 GB, free: 7.938 MB / 0.6075 GB Notification: Performance of matching and sorting (n=142) (initialization): time 0.00333/0.9153, allocations: 1.963 MB / 0.8188 GB, free: 7.781 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.216e-05/0.9153, allocations: 7.344 kB / 0.8188 GB, free: 7.781 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.877e-05/0.9153, allocations: 3.438 kB / 0.8188 GB, free: 7.781 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008402/0.9162, allocations: 351 kB / 0.8192 GB, free: 7.762 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009573/0.9171, allocations: 233.3 kB / 0.8194 GB, free: 7.75 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005162/0.9223, allocations: 3.89 MB / 0.8232 GB, free: 5.156 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009427/0.9232, allocations: 35.05 kB / 0.8232 GB, free: 5.141 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001299/0.9234, allocations: 59.7 kB / 0.8233 GB, free: 5.129 MB / 0.6075 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.0006162/0.924, allocations: 329.8 kB / 0.8236 GB, free: 4.926 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002869/0.9243, allocations: 128.5 kB / 0.8237 GB, free: 4.855 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004316/0.9286, allocations: 2.758 MB / 0.8264 GB, free: 3.367 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.216e-05/0.9286, allocations: 13.33 kB / 0.8264 GB, free: 3.363 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.9286, allocations: 5.375 kB / 0.8264 GB, free: 3.363 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.036e-05/0.9286, allocations: 4.828 kB / 0.8264 GB, free: 3.359 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005368/0.934, allocations: 3.396 MB / 0.8297 GB, free: 1.219 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-05/0.934, allocations: 3.844 kB / 0.8297 GB, free: 1.219 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008711/0.9349, allocations: 174.7 kB / 0.8299 GB, free: 1.168 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008984/0.9358, allocations: 409.4 kB / 0.8303 GB, free: 0.9648 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001012/0.9359, allocations: 50.56 kB / 0.8303 GB, free: 0.9297 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005446/0.9413, allocations: 3.888 MB / 0.8341 GB, free: 12.98 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.9413, allocations: 4.141 kB / 0.8342 GB, free: 12.98 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00497/0.9463, allocations: 2.804 MB / 0.8369 GB, free: 10.18 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006987/0.947, allocations: 352 kB / 0.8372 GB, free: 9.816 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002061/0.9472, allocations: 24.94 kB / 0.8372 GB, free: 9.793 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006856/0.9479, allocations: 23.98 kB / 0.8373 GB, free: 9.77 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002132/0.9481, allocations: 97.77 kB / 0.8374 GB, free: 9.676 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001078/0.9482, allocations: 55.86 kB / 0.8374 GB, free: 9.621 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001/0.9492, allocations: 0.6969 MB / 0.8381 GB, free: 8.918 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9492, allocations: 0.7812 kB / 0.8381 GB, free: 8.918 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001465/0.9507, allocations: 491.4 kB / 0.8386 GB, free: 8.438 MB / 0.6231 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.001877/0.9525, allocations: 0.7173 MB / 0.8393 GB, free: 7.934 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.003539/0.9561, allocations: 1.817 MB / 0.841 GB, free: 6.121 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.9561, allocations: 0 / 0.841 GB, free: 6.121 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.002099/0.9582, allocations: 1.14 MB / 0.8422 GB, free: 4.977 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002/0.9602, allocations: 433.3 kB / 0.8426 GB, free: 4.566 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005406/0.9656, allocations: 3.047 MB / 0.8455 GB, free: 1.496 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000916/0.9665, allocations: 1.184 MB / 0.8467 GB, free: 292 kB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001152/0.9676, allocations: 339.9 kB / 0.847 GB, free: 15.95 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003719/0.968, allocations: 131.2 kB / 0.8471 GB, free: 15.83 MB / 0.6387 GB Notification: Performance of SimCode: time 7.52e-07/0.968, allocations: 8 kB / 0.8472 GB, free: 15.82 MB / 0.6387 GB Notification: Performance of Templates: time 0.04568/1.014, allocations: 26.8 MB / 0.8733 GB, free: 5.285 MB / 0.6544 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping.makefile [Timeout 660] (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) [Timeout 1200] 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) [Timeout 660] Reference file matches