Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007694/0.0007694, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009772/0.001747, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001271/0.002279, allocations: 463.6 kB / 11.68 MB, free: 2.484 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.028/1.028, allocations: 177.2 MB / 189.6 MB, free: 5.32 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1158/1.143, allocations: 53.65 MB / 243.2 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.1/package.mo): time 0.676/0.676, allocations: 118.6 MB / 362.6 MB, free: 1.184 MB / 346.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.06548/0.7415, allocations: 35.84 MB / 398.4 MB, free: 13.25 MB / 394.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.1/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="pulse.T_start|pulse.count|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve") translateModel(ThermofluidStream.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="pulse.T_start|pulse.count|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.763e-06/1.763e-06, allocations: 0 / 399.7 MB, free: 11.98 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.205e-05/1.382e-05, allocations: 2.312 kB / 399.7 MB, free: 11.98 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.3612/0.3612, allocations: 129.8 MB / 0.5172 GB, free: 2.266 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.00204/0.3633, allocations: 1.584 MB / 0.5187 GB, free: 0.6875 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000234/0.3635, allocations: 27.75 kB / 0.5187 GB, free: 0.6602 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002844/0.3638, allocations: 91.2 kB / 0.5188 GB, free: 0.5703 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000557/0.3643, allocations: 330.9 kB / 0.5191 GB, free: 256 kB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004683/0.3648, allocations: 211.2 kB / 0.5193 GB, free: 44 kB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005654/0.3654, allocations: 0.6102 MB / 0.5199 GB, free: 15.43 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001363/0.3655, allocations: 63.28 kB / 0.52 GB, free: 15.36 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000609/0.3661, allocations: 419.3 kB / 0.5204 GB, free: 14.96 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002395/0.3664, allocations: 199.4 kB / 0.5206 GB, free: 14.76 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 3.51e-05/0.3664, allocations: 24 kB / 0.5206 GB, free: 14.74 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003613/0.3668, allocations: 243.5 kB / 0.5208 GB, free: 14.5 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 6.874e-05/0.3668, allocations: 51.69 kB / 0.5209 GB, free: 14.45 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0001029/0.3669, allocations: 107.8 kB / 0.521 GB, free: 14.34 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0004998/0.3674, allocations: 414.6 kB / 0.5214 GB, free: 13.94 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 1.652e-05/0.3675, allocations: 0 / 0.5214 GB, free: 13.94 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.322e-06/0.3675, allocations: 3.938 kB / 0.5214 GB, free: 13.93 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 1.494e-05/0.3675, allocations: 0 / 0.5214 GB, free: 13.93 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.001021/0.3685, allocations: 0.8549 MB / 0.5222 GB, free: 13.03 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.514e-05/0.3685, allocations: 12.03 kB / 0.5222 GB, free: 13.02 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001188/0.3686, allocations: 52.83 kB / 0.5223 GB, free: 12.97 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003992/0.369, allocations: 348.6 kB / 0.5226 GB, free: 12.6 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.003e-05/0.3691, allocations: 24.8 kB / 0.5226 GB, free: 12.58 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.481e-05/0.3691, allocations: 28.36 kB / 0.5227 GB, free: 12.55 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002577/0.3694, allocations: 196.2 kB / 0.5228 GB, free: 12.34 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.719e-06/0.3694, allocations: 384 / 0.5228 GB, free: 12.34 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.936e-05/0.3694, allocations: 23.92 kB / 0.5229 GB, free: 12.32 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.713e-06/0.3694, allocations: 4 kB / 0.5229 GB, free: 12.32 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001022/0.3695, allocations: 74.22 kB / 0.5229 GB, free: 12.24 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007106/0.3702, allocations: 0.6055 MB / 0.5235 GB, free: 11.61 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004664/0.3707, allocations: 126.5 kB / 0.5237 GB, free: 11.48 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.891e-05/0.3707, allocations: 48.81 kB / 0.5237 GB, free: 11.43 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004089/0.3711, allocations: 366.4 kB / 0.5241 GB, free: 11.05 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001458/0.3713, allocations: 109.1 kB / 0.5242 GB, free: 10.94 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=23): time 1.763e-06/0.3713, allocations: 0 / 0.5242 GB, free: 10.94 MB / 0.4948 GB Notification: Performance of matching and sorting (n=23): time 0.0004037/0.3717, allocations: 215.9 kB / 0.5244 GB, free: 10.72 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.087e-05/0.3717, allocations: 55.41 kB / 0.5244 GB, free: 10.65 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001894/0.3719, allocations: 335.3 kB / 0.5247 GB, free: 10.31 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 1.972e-05/0.3719, allocations: 25.7 kB / 0.5248 GB, free: 10.28 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 7.783e-05/0.372, allocations: 177.3 kB / 0.5249 GB, free: 10.1 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 4.084e-05/0.372, allocations: 83.22 kB / 0.525 GB, free: 10.02 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.38e-05/0.3721, allocations: 53.64 kB / 0.5251 GB, free: 9.961 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 9.203e-05/0.3722, allocations: 354.7 kB / 0.5254 GB, free: 9.605 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.301e-05/0.3722, allocations: 49.69 kB / 0.5254 GB, free: 9.551 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.477e-05/0.3723, allocations: 96.09 kB / 0.5255 GB, free: 9.441 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001231/0.3724, allocations: 140.3 kB / 0.5257 GB, free: 9.289 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.509e-06/0.3724, allocations: 4.438 kB / 0.5257 GB, free: 9.285 MB / 0.4948 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0002421/0.3727, allocations: 235.8 kB / 0.5259 GB, free: 9.035 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 3.215e-05/0.3727, allocations: 33.7 kB / 0.5259 GB, free: 8.996 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.3727, allocations: 0 / 0.5259 GB, free: 8.996 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001727/0.3729, allocations: 48.83 kB / 0.526 GB, free: 8.945 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001267/0.373, allocations: 54.16 kB / 0.526 GB, free: 8.895 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006867/0.3737, allocations: 1.229 MB / 0.5272 GB, free: 7.578 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001044/0.3738, allocations: 23.84 kB / 0.5273 GB, free: 7.555 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.334e-05/0.3738, allocations: 4 kB / 0.5273 GB, free: 7.551 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * 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 {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 9.427e-05/0.3739, allocations: 136.6 kB / 0.5274 GB, free: 7.406 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.119e-05/0.374, allocations: 39.84 kB / 0.5274 GB, free: 7.367 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002628/0.3742, allocations: 206.4 kB / 0.5276 GB, free: 7.156 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-06/0.3742, allocations: 4 kB / 0.5276 GB, free: 7.152 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.254e-06/0.3742, allocations: 0 / 0.5276 GB, free: 7.152 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/0.3742, allocations: 0 / 0.5276 GB, free: 7.152 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004337/0.3747, allocations: 443.2 kB / 0.5281 GB, free: 6.691 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.3747, allocations: 4.125 kB / 0.5281 GB, free: 6.688 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.788e-05/0.3748, allocations: 39.92 kB / 0.5281 GB, free: 6.648 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 6.243e-05/0.3748, allocations: 55.66 kB / 0.5281 GB, free: 6.594 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00012/0.3749, allocations: 44.8 kB / 0.5282 GB, free: 6.547 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.357e-05/0.375, allocations: 8 kB / 0.5282 GB, free: 6.539 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005796/0.3755, allocations: 1.23 MB / 0.5294 GB, free: 5.227 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.3755, allocations: 0 / 0.5294 GB, free: 5.227 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000287/0.3758, allocations: 315.2 kB / 0.5297 GB, free: 4.898 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.734e-05/0.3759, allocations: 4 kB / 0.5297 GB, free: 4.895 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.479e-05/0.3759, allocations: 20.67 kB / 0.5297 GB, free: 4.875 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.34e-05/0.376, allocations: 31.95 kB / 0.5298 GB, free: 4.844 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.245e-05/0.376, allocations: 11.98 kB / 0.5298 GB, free: 4.832 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0001051/0.3761, allocations: 140.6 kB / 0.5299 GB, free: 4.691 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4e-08/0.3761, allocations: 0 / 0.5299 GB, free: 4.691 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0002662/0.3764, allocations: 119.8 kB / 0.53 GB, free: 4.574 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (flowResistance.inlet.m_flow) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001895/0.3766, allocations: 148.3 kB / 0.5302 GB, free: 4.418 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0006207/0.3772, allocations: 328.1 kB / 0.5305 GB, free: 4.066 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.107e-05/0.3772, allocations: 4 kB / 0.5305 GB, free: 4.062 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0001531/0.3774, allocations: 199.7 kB / 0.5307 GB, free: 3.855 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004234/0.3778, allocations: 179.7 kB / 0.5308 GB, free: 3.691 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004681/0.3825, allocations: 0.7217 MB / 0.5315 GB, free: 2.941 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.733e-05/0.3825, allocations: 101.3 kB / 0.5316 GB, free: 2.82 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0001579/0.3827, allocations: 55.14 kB / 0.5317 GB, free: 2.766 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002012/0.3829, allocations: 153.3 kB / 0.5318 GB, free: 2.621 MB / 0.4948 GB Notification: Performance of SimCode: time 8.92e-07/0.3829, allocations: 3.938 kB / 0.5318 GB, free: 2.617 MB / 0.4948 GB Notification: Performance of Templates: time 0.009594/0.3925, allocations: 7.569 MB / 0.5392 GB, free: 11.25 MB / 0.5105 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.sim & ./ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.CheckValve_ref.mat","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.8270795084536076]