Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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.0009983/0.0009983, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001196/0.002194, 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.0009196/0.0009196, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001169/0.002089, 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 0.9823/0.9823, allocations: 177.2 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09917/1.081, 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-main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.1-main/package.mo): time 0.7463/0.7463, allocations: 118.7 MB / 362.7 MB, free: 1.293 MB / 346.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.06229/0.8086, allocations: 35.84 MB / 398.5 MB, free: 13.36 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-main/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_dev_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_dev_ThermofluidStream.FlowControl.Tests.CheckValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.913e-06/1.913e-06, allocations: 0 / 399.8 MB, free: 12.09 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.089e-05/2.28e-05, allocations: 2.312 kB / 399.8 MB, free: 12.09 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.3598/0.3599, allocations: 129.8 MB / 0.5172 GB, free: 2.469 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.002118/0.362, allocations: 1.577 MB / 0.5187 GB, free: 0.8984 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002491/0.3622, allocations: 27.75 kB / 0.5188 GB, free: 0.8711 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003045/0.3625, allocations: 95.12 kB / 0.5189 GB, free: 0.7773 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005698/0.3631, allocations: 325.8 kB / 0.5192 GB, free: 472 kB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004542/0.3636, allocations: 219.1 kB / 0.5194 GB, free: 252 kB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006009/0.3642, allocations: 0.6106 MB / 0.52 GB, free: 15.64 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001486/0.3643, allocations: 59.3 kB / 0.52 GB, free: 15.57 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006132/0.3649, allocations: 422.1 kB / 0.5204 GB, free: 15.16 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002369/0.3652, allocations: 203.4 kB / 0.5206 GB, free: 14.96 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 3.41e-05/0.3652, allocations: 28 kB / 0.5207 GB, free: 14.94 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003422/0.3655, allocations: 235.5 kB / 0.5209 GB, free: 14.71 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 6.715e-05/0.3656, allocations: 51.69 kB / 0.5209 GB, free: 14.66 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 9.5e-05/0.3657, allocations: 107.8 kB / 0.521 GB, free: 14.55 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0004769/0.3662, allocations: 422.5 kB / 0.5214 GB, free: 14.14 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 1.616e-05/0.3662, allocations: 3.938 kB / 0.5214 GB, free: 14.13 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.874e-06/0.3662, allocations: 0 / 0.5214 GB, free: 14.13 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 1.381e-05/0.3662, allocations: 0 / 0.5214 GB, free: 14.13 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.0009603/0.3672, allocations: 0.855 MB / 0.5223 GB, free: 13.23 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.229e-05/0.3672, allocations: 8.031 kB / 0.5223 GB, free: 13.22 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001113/0.3673, allocations: 56.83 kB / 0.5223 GB, free: 13.17 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003893/0.3677, allocations: 344.6 kB / 0.5227 GB, free: 12.8 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.896e-05/0.3677, allocations: 16.88 kB / 0.5227 GB, free: 12.79 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.165e-05/0.3677, allocations: 28.31 kB / 0.5227 GB, free: 12.76 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002461/0.368, allocations: 200.2 kB / 0.5229 GB, free: 12.55 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.368, allocations: 4.375 kB / 0.5229 GB, free: 12.55 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.683e-05/0.368, allocations: 15.94 kB / 0.5229 GB, free: 12.53 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-06/0.368, allocations: 4 kB / 0.5229 GB, free: 12.53 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001012/0.3681, allocations: 74.22 kB / 0.523 GB, free: 12.45 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007053/0.3688, allocations: 0.6133 MB / 0.5236 GB, free: 11.81 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001799/0.369, allocations: 134.4 kB / 0.5237 GB, free: 11.67 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.608e-05/0.3691, allocations: 40.84 kB / 0.5238 GB, free: 11.63 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003974/0.3695, allocations: 366.4 kB / 0.5241 GB, free: 11.26 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001481/0.3696, allocations: 105.1 kB / 0.5242 GB, free: 11.14 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=23): time 1.984e-06/0.3696, allocations: 3.938 kB / 0.5242 GB, free: 11.14 MB / 0.4948 GB Notification: Performance of matching and sorting (n=23): time 0.000543/0.3701, allocations: 228.1 kB / 0.5244 GB, free: 10.91 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.098e-05/0.3702, allocations: 55.41 kB / 0.5245 GB, free: 10.84 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002684/0.3704, allocations: 323.4 kB / 0.5248 GB, free: 10.52 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 1.974e-05/0.3705, allocations: 29.7 kB / 0.5248 GB, free: 10.48 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 7.396e-05/0.3705, allocations: 177.2 kB / 0.525 GB, free: 10.3 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 3.733e-05/0.3706, allocations: 75.31 kB / 0.5251 GB, free: 10.23 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.589e-05/0.3706, allocations: 57.62 kB / 0.5251 GB, free: 10.16 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 8.492e-05/0.3707, allocations: 354.7 kB / 0.5255 GB, free: 9.809 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.015e-05/0.3708, allocations: 53.69 kB / 0.5255 GB, free: 9.75 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.309e-05/0.3708, allocations: 92.16 kB / 0.5256 GB, free: 9.645 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000112/0.3709, allocations: 133.9 kB / 0.5257 GB, free: 9.496 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.3709, allocations: 4.438 kB / 0.5257 GB, free: 9.492 MB / 0.4948 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0002383/0.3712, allocations: 237.2 kB / 0.526 GB, free: 9.242 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 3.187e-05/0.3712, allocations: 33.69 kB / 0.526 GB, free: 9.203 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.3712, allocations: 4 kB / 0.526 GB, free: 9.199 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001674/0.3714, allocations: 44.84 kB / 0.526 GB, free: 9.152 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000125/0.3715, allocations: 48.97 kB / 0.5261 GB, free: 9.105 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000654/0.3722, allocations: 1.231 MB / 0.5273 GB, free: 7.789 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.909e-05/0.3723, allocations: 27.83 kB / 0.5273 GB, free: 7.762 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.352e-05/0.3723, allocations: 12.03 kB / 0.5273 GB, free: 7.75 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 0.0001067/0.3724, allocations: 129.8 kB / 0.5274 GB, free: 7.613 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.955e-05/0.3725, allocations: 43.83 kB / 0.5275 GB, free: 7.57 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003029/0.3728, allocations: 196.8 kB / 0.5277 GB, free: 7.367 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.3728, allocations: 4 kB / 0.5277 GB, free: 7.363 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.3728, allocations: 0 / 0.5277 GB, free: 7.363 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.3728, allocations: 7.984 kB / 0.5277 GB, free: 7.355 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000428/0.3732, allocations: 443.4 kB / 0.5281 GB, free: 6.895 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.3732, allocations: 0 / 0.5281 GB, free: 6.895 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.972e-05/0.3733, allocations: 47.91 kB / 0.5282 GB, free: 6.848 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 5.654e-05/0.3734, allocations: 43.69 kB / 0.5282 GB, free: 6.805 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001173/0.3735, allocations: 44.83 kB / 0.5282 GB, free: 6.758 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.303e-05/0.3735, allocations: 8 kB / 0.5282 GB, free: 6.75 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005599/0.374, allocations: 1.234 MB / 0.5294 GB, free: 5.434 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.374, allocations: 0 / 0.5294 GB, free: 5.434 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000272/0.3743, allocations: 320.5 kB / 0.5298 GB, free: 5.098 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.811e-05/0.3743, allocations: 8 kB / 0.5298 GB, free: 5.09 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.265e-05/0.3744, allocations: 20.73 kB / 0.5298 GB, free: 5.07 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.173e-05/0.3745, allocations: 27.89 kB / 0.5298 GB, free: 5.043 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.165e-05/0.3745, allocations: 8 kB / 0.5298 GB, free: 5.035 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0001005/0.3746, allocations: 140.7 kB / 0.53 GB, free: 4.895 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6e-08/0.3746, allocations: 0 / 0.53 GB, free: 4.895 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0002573/0.3749, allocations: 115.8 kB / 0.5301 GB, free: 4.781 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.0001864/0.375, allocations: 144.2 kB / 0.5302 GB, free: 4.629 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0003152/0.3754, allocations: 330.5 kB / 0.5305 GB, free: 4.277 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.143e-05/0.3754, allocations: 8 kB / 0.5305 GB, free: 4.27 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0001473/0.3755, allocations: 187.4 kB / 0.5307 GB, free: 4.07 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004199/0.3759, allocations: 196 kB / 0.5309 GB, free: 3.891 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004625/0.3806, allocations: 0.7165 MB / 0.5316 GB, free: 3.148 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.001e-05/0.3806, allocations: 101.3 kB / 0.5317 GB, free: 3.027 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.000152/0.3808, allocations: 64.48 kB / 0.5317 GB, free: 2.969 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001995/0.381, allocations: 149.3 kB / 0.5319 GB, free: 2.828 MB / 0.4948 GB Notification: Performance of SimCode: time 1.032e-06/0.381, allocations: 0 / 0.5319 GB, free: 2.828 MB / 0.4948 GB Notification: Performance of Templates: time 0.009599/0.3906, allocations: 7.574 MB / 0.5393 GB, free: 11.46 MB / 0.5105 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.sim & ./ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_dev_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.773550419136882]