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.001158/0.001158, allocations: 80.75 kB / 19.94 MB, free: 4.547 MB / 18.57 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.001292/0.001292, allocations: 181 kB / 23.36 MB, free: 1.133 MB / 18.57 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.084/1.084, allocations: 177.1 MB / 203.8 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo): time 0.7566/0.7566, allocations: 118.6 MB / 378.9 MB, free: 1.359 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/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="Time|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="Time|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.713e-06/1.713e-06, allocations: 0 / 430.8 MB, free: 13.34 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.691e-05/2.862e-05, allocations: 10.25 kB / 430.8 MB, free: 13.32 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.3863/0.3863, allocations: 129.5 MB / 0.5472 GB, free: 9.824 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.001988/0.3883, allocations: 1.582 MB / 0.5487 GB, free: 8.25 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002877/0.3886, allocations: 23.75 kB / 0.5488 GB, free: 8.227 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0004194/0.389, allocations: 99.12 kB / 0.5489 GB, free: 8.129 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.0007015/0.3897, allocations: 325.7 kB / 0.5492 GB, free: 7.809 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005649/0.3903, allocations: 215.2 kB / 0.5494 GB, free: 7.598 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.0006424/0.3909, allocations: 0.6102 MB / 0.55 GB, free: 6.984 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001667/0.3911, allocations: 63.86 kB / 0.55 GB, free: 6.918 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006056/0.3917, allocations: 370.9 kB / 0.5504 GB, free: 6.555 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002541/0.392, allocations: 195.4 kB / 0.5506 GB, free: 6.363 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 3.728e-05/0.392, allocations: 24 kB / 0.5506 GB, free: 6.34 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003922/0.3924, allocations: 247.5 kB / 0.5508 GB, free: 6.098 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 7.695e-05/0.3925, allocations: 75.62 kB / 0.5509 GB, free: 6.023 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0001025/0.3926, allocations: 131.6 kB / 0.551 GB, free: 5.895 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0006232/0.3932, allocations: 454.3 kB / 0.5515 GB, free: 5.449 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.3932, allocations: 0 / 0.5515 GB, free: 5.449 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.092e-06/0.3932, allocations: 0 / 0.5515 GB, free: 5.449 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 6.392e-06/0.3932, allocations: 0 / 0.5515 GB, free: 5.449 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.0008989/0.3941, allocations: 0.6834 MB / 0.5521 GB, free: 4.738 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.131e-05/0.3941, allocations: 8.031 kB / 0.5521 GB, free: 4.73 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001044/0.3942, allocations: 56.83 kB / 0.5522 GB, free: 4.676 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004186/0.3947, allocations: 357.8 kB / 0.5525 GB, free: 4.301 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.726e-05/0.3947, allocations: 12.88 kB / 0.5525 GB, free: 4.289 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.1e-05/0.3947, allocations: 24.38 kB / 0.5526 GB, free: 4.266 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002583/0.395, allocations: 199 kB / 0.5527 GB, free: 4.055 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.969e-06/0.395, allocations: 384 / 0.5527 GB, free: 4.055 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.781e-05/0.395, allocations: 11.94 kB / 0.5528 GB, free: 4.043 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.002e-06/0.395, allocations: 4 kB / 0.5528 GB, free: 4.039 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000108/0.3951, allocations: 86.2 kB / 0.5528 GB, free: 3.953 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007776/0.3959, allocations: 0.6169 MB / 0.5534 GB, free: 3.312 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001798/0.3961, allocations: 123 kB / 0.5536 GB, free: 3.184 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.735e-05/0.3961, allocations: 57.38 kB / 0.5536 GB, free: 3.125 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000713/0.3968, allocations: 355.1 kB / 0.554 GB, free: 2.766 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001454/0.397, allocations: 108.7 kB / 0.5541 GB, free: 2.648 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=23): time 1.754e-06/0.397, allocations: 0 / 0.5541 GB, free: 2.648 MB / 0.4948 GB Notification: Performance of matching and sorting (n=23): time 0.0004307/0.3974, allocations: 212 kB / 0.5543 GB, free: 2.434 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.339e-05/0.3974, allocations: 55.41 kB / 0.5543 GB, free: 2.367 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001975/0.3976, allocations: 339.3 kB / 0.5546 GB, free: 2.023 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 1.977e-05/0.3977, allocations: 29.7 kB / 0.5547 GB, free: 1.988 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 8.69e-05/0.3977, allocations: 173.3 kB / 0.5548 GB, free: 1.816 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 4.463e-05/0.3978, allocations: 87.23 kB / 0.5549 GB, free: 1.73 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.137e-05/0.3978, allocations: 49.69 kB / 0.555 GB, free: 1.676 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 9.849e-05/0.3979, allocations: 354.7 kB / 0.5553 GB, free: 1.32 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.907e-05/0.398, allocations: 49.69 kB / 0.5554 GB, free: 1.266 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.334e-05/0.3981, allocations: 89.11 kB / 0.5554 GB, free: 1.16 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001313/0.3982, allocations: 143.2 kB / 0.5556 GB, free: 1.008 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.479e-06/0.3982, allocations: 7.875 kB / 0.5556 GB, free: 1 MB / 0.4948 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0002819/0.3985, allocations: 232.8 kB / 0.5558 GB, free: 0.7539 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 3.437e-05/0.3985, allocations: 34.95 kB / 0.5558 GB, free: 0.7148 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/0.3985, allocations: 0.5469 kB / 0.5558 GB, free: 0.7148 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001867/0.3987, allocations: 40.81 kB / 0.5559 GB, free: 0.6719 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001278/0.3988, allocations: 56.56 kB / 0.5559 GB, free: 0.6172 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007891/0.3996, allocations: 1.239 MB / 0.5571 GB, free: 15.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001121/0.3997, allocations: 23.88 kB / 0.5572 GB, free: 15.27 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.618e-05/0.3998, allocations: 8 kB / 0.5572 GB, free: 15.26 MB / 0.5105 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.0001065/0.3999, allocations: 128.7 kB / 0.5573 GB, free: 15.12 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.674e-05/0.3999, allocations: 39.89 kB / 0.5573 GB, free: 15.08 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002718/0.4002, allocations: 205.5 kB / 0.5575 GB, free: 14.88 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.4002, allocations: 7.984 kB / 0.5575 GB, free: 14.87 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.818e-06/0.4002, allocations: 0 / 0.5575 GB, free: 14.87 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.4002, allocations: 0 / 0.5575 GB, free: 14.87 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000483/0.4007, allocations: 429.6 kB / 0.5579 GB, free: 14.42 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.978e-06/0.4007, allocations: 5.531 kB / 0.5579 GB, free: 14.41 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.921e-05/0.4008, allocations: 39.91 kB / 0.558 GB, free: 14.38 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001512/0.4009, allocations: 52.69 kB / 0.558 GB, free: 14.32 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.954e-05/0.401, allocations: 11.98 kB / 0.558 GB, free: 14.31 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000691/0.4016, allocations: 1.226 MB / 0.5592 GB, free: 13 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.4016, allocations: 3.984 kB / 0.5593 GB, free: 13 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003089/0.402, allocations: 316 kB / 0.5596 GB, free: 12.67 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 6.556e-05/0.402, allocations: 47.69 kB / 0.5596 GB, free: 12.62 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.634e-05/0.402, allocations: 5.188 kB / 0.5596 GB, free: 12.62 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.714e-05/0.4021, allocations: 15.92 kB / 0.5596 GB, free: 12.6 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.872e-05/0.4022, allocations: 23.95 kB / 0.5596 GB, free: 12.58 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.273e-05/0.4022, allocations: 8 kB / 0.5596 GB, free: 12.57 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0001054/0.4023, allocations: 147.2 kB / 0.5598 GB, free: 12.43 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5e-08/0.4023, allocations: 0 / 0.5598 GB, free: 12.43 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0003088/0.4026, allocations: 119.8 kB / 0.5599 GB, free: 12.31 MB / 0.5105 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.0002108/0.4028, allocations: 140.1 kB / 0.56 GB, free: 12.16 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0003573/0.4032, allocations: 332.1 kB / 0.5604 GB, free: 11.81 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.656e-06/0.4032, allocations: 4 kB / 0.5604 GB, free: 11.81 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0001698/0.4034, allocations: 192.2 kB / 0.5605 GB, free: 11.61 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007602/0.4041, allocations: 154.4 kB / 0.5607 GB, free: 11.47 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001281/0.4054, allocations: 0.7189 MB / 0.5614 GB, free: 10.72 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.3e-05/0.4055, allocations: 97.3 kB / 0.5615 GB, free: 10.61 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0001625/0.4056, allocations: 63.12 kB / 0.5615 GB, free: 10.54 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000212/0.4059, allocations: 145.3 kB / 0.5617 GB, free: 10.4 MB / 0.5105 GB Notification: Performance of SimCode: time 1.102e-06/0.4059, allocations: 0 / 0.5617 GB, free: 10.4 MB / 0.5105 GB Notification: Performance of Templates: time 0.01089/0.4167, allocations: 7.331 MB / 0.5688 GB, free: 3.273 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 -s gbode -gbm=radauIIA3 -emit_protected -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: 4.111888292245567]