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.009463/0.009463, allocations: 100.9 kB / 15.73 MB, free: 6.055 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.002114/0.002114, allocations: 195.2 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.088/2.088, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7366/0.7366, allocations: 93.7 MB / 384.2 MB, free: 5.285 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001497/0.001497, allocations: 95.83 kB / 0.5204 GB, free: 0.6523 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4209/0.4225, allocations: 68.24 MB / 0.5871 GB, free: 10.34 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Interfaces.Tests.Test_p_out_clipping): time 0.6388/1.061, allocations: 161.8 MB / 0.7451 GB, free: 1.387 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01547/1.077, allocations: 12.66 MB / 0.7574 GB, free: 1.254 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001308/1.078, allocations: 35.16 kB / 0.7575 GB, free: 1.254 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001945/1.08, allocations: 0.6636 MB / 0.7581 GB, free: 1.234 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.003564/1.084, allocations: 1.16 MB / 0.7593 GB, free: 1.199 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003084/1.087, allocations: 0.9005 MB / 0.7601 GB, free: 1.168 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002439/1.089, allocations: 1.904 MB / 0.762 GB, free: 1.164 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005563/1.09, allocations: 364.2 kB / 0.7623 GB, free: 1.094 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001361/1.091, allocations: 0.8178 MB / 0.7631 GB, free: 1.094 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001295/1.093, allocations: 1.082 MB / 0.7642 GB, free: 1.09 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001784/1.093, allocations: 127.8 kB / 0.7643 GB, free: 1.09 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003702/1.096, allocations: 1.531 MB / 0.7658 GB, free: 1.059 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003864/1.097, allocations: 384.7 kB / 0.7662 GB, free: 1.059 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0008192/1.098, allocations: 0.7209 MB / 0.7669 GB, free: 1.016 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.00382/1.102, allocations: 2.188 MB / 0.769 GB, free: 0.6797 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/1.102, allocations: 3.281 kB / 0.769 GB, free: 0.6797 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.643e-06/1.102, allocations: 1 kB / 0.769 GB, free: 0.6797 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.521e-05/1.102, allocations: 0 / 0.769 GB, free: 0.6797 MB / 0.5762 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.004476/1.106, allocations: 2.068 MB / 0.7711 GB, free: 15.71 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.509e-05/1.106, allocations: 11.09 kB / 0.7711 GB, free: 15.71 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003649/1.107, allocations: 163.1 kB / 0.7712 GB, free: 15.63 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001503/1.108, allocations: 0.9707 MB / 0.7722 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001232/1.108, allocations: 101 kB / 0.7723 GB, free: 15.23 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001879/1.108, allocations: 101 kB / 0.7724 GB, free: 15.23 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002143/1.111, allocations: 1.476 MB / 0.7738 GB, free: 15.14 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.591e-05/1.111, allocations: 3.5 kB / 0.7738 GB, free: 15.14 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.659e-05/1.111, allocations: 34.19 kB / 0.7738 GB, free: 15.14 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.534e-05/1.111, allocations: 55.16 kB / 0.7739 GB, free: 15.13 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002787/1.114, allocations: 2.052 MB / 0.7759 GB, free: 15.13 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008044/1.122, allocations: 5.215 MB / 0.781 GB, free: 13.52 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001815/1.123, allocations: 1.31 MB / 0.7823 GB, free: 13.46 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001141/1.125, allocations: 0.8913 MB / 0.7831 GB, free: 13.45 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005538/1.13, allocations: 4.703 MB / 0.7877 GB, free: 10.25 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.89e-05/1.13, allocations: 47.53 kB / 0.7878 GB, free: 10.21 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=119): time 4.829e-06/1.13, allocations: 0.9062 kB / 0.7878 GB, free: 10.21 MB / 0.5919 GB Notification: Performance of matching and sorting (n=121): time 0.009573/1.14, allocations: 5.302 MB / 0.793 GB, free: 8.949 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.807e-05/1.14, allocations: 91.22 kB / 0.793 GB, free: 8.855 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00121/1.141, allocations: 0.9129 MB / 0.7939 GB, free: 8.703 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 9.495e-05/1.141, allocations: 47.45 kB / 0.794 GB, free: 8.672 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003814/1.142, allocations: 468.9 kB / 0.7944 GB, free: 8.504 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003465/1.142, allocations: 446.6 kB / 0.7948 GB, free: 8.219 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003963/1.142, allocations: 244.8 kB / 0.7951 GB, free: 8.195 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001989/1.143, allocations: 351.3 kB / 0.7954 GB, free: 7.887 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001023/1.144, allocations: 0.6306 MB / 0.796 GB, free: 7.883 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001147/1.145, allocations: 0.7635 MB / 0.7968 GB, free: 7.625 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002292/1.147, allocations: 1.473 MB / 0.7982 GB, free: 6.949 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/1.147, allocations: 2.156 kB / 0.7982 GB, free: 6.949 MB / 0.5919 GB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003611/1.151, allocations: 1.981 MB / 0.8002 GB, free: 6.176 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.744e-05/1.151, allocations: 4.906 kB / 0.8002 GB, free: 6.176 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.05e-05/1.151, allocations: 4.469 kB / 0.8002 GB, free: 6.176 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009957/1.152, allocations: 354.5 kB / 0.8005 GB, free: 6.102 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001062/1.153, allocations: 231.8 kB / 0.8007 GB, free: 6.09 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00537/1.158, allocations: 3.881 MB / 0.8045 GB, free: 3.312 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001078/1.159, allocations: 34.89 kB / 0.8045 GB, free: 3.289 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001306/1.16, allocations: 57.94 kB / 0.8046 GB, free: 3.266 MB / 0.5919 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.0007514/1.16, allocations: 334.8 kB / 0.8049 GB, free: 3.035 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002837/1.161, allocations: 132.8 kB / 0.805 GB, free: 2.961 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004231/1.165, allocations: 2.775 MB / 0.8078 GB, free: 1.086 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.451e-05/1.165, allocations: 11.98 kB / 0.8078 GB, free: 1.074 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.691e-05/1.165, allocations: 12.91 kB / 0.8078 GB, free: 1.062 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.336e-05/1.165, allocations: 7.922 kB / 0.8078 GB, free: 1.055 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005677/1.171, allocations: 3.423 MB / 0.8111 GB, free: 13.62 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.31e-05/1.171, allocations: 4 kB / 0.8111 GB, free: 13.61 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009248/1.172, allocations: 174.1 kB / 0.8113 GB, free: 13.45 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001004/1.173, allocations: 400 kB / 0.8117 GB, free: 13.07 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001056/1.173, allocations: 47.94 kB / 0.8117 GB, free: 13.02 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005361/1.178, allocations: 3.886 MB / 0.8155 GB, free: 9.027 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.773e-06/1.178, allocations: 8.125 kB / 0.8155 GB, free: 9.023 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004947/1.183, allocations: 2.824 MB / 0.8183 GB, free: 6.195 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007366/1.184, allocations: 356.9 kB / 0.8186 GB, free: 5.828 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002267/1.184, allocations: 20 kB / 0.8186 GB, free: 5.809 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006945/1.185, allocations: 28.92 kB / 0.8187 GB, free: 5.781 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002463/1.185, allocations: 93.7 kB / 0.8188 GB, free: 5.691 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.951e-05/1.185, allocations: 55.86 kB / 0.8188 GB, free: 5.637 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001037/1.186, allocations: 0.701 MB / 0.8195 GB, free: 4.93 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/1.186, allocations: 0 / 0.8195 GB, free: 4.93 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001677/1.188, allocations: 483.4 kB / 0.82 GB, free: 4.457 MB / 0.6075 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.001579/1.189, allocations: 0.7272 MB / 0.8207 GB, free: 3.926 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003733/1.193, allocations: 1.926 MB / 0.8226 GB, free: 1.996 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.024e-05/1.193, allocations: 4 kB / 0.8226 GB, free: 1.992 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.002348/1.196, allocations: 1.194 MB / 0.8237 GB, free: 0.7969 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002275/1.198, allocations: 428.2 kB / 0.8241 GB, free: 396 kB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00586/1.204, allocations: 3.054 MB / 0.8271 GB, free: 13.31 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008491/1.205, allocations: 1.172 MB / 0.8283 GB, free: 12.1 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001215/1.206, allocations: 347.3 kB / 0.8286 GB, free: 11.77 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003711/1.206, allocations: 131.3 kB / 0.8287 GB, free: 11.64 MB / 0.6231 GB Notification: Performance of SimCode: time 4.91e-07/1.206, allocations: 0 / 0.8287 GB, free: 11.64 MB / 0.6231 GB Notification: Performance of Templates: time 0.04511/1.251, allocations: 26.37 MB / 0.8545 GB, free: 1.508 MB / 0.6387 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