Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.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.002077/0.002077, allocations: 104.3 kB / 19.74 MB, free: 2.082 MB / 14.72 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.002431/0.002431, allocations: 215.9 kB / 23.04 MB, free: 4.867 MB / 14.72 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.606/1.606, allocations: 230.6 MB / 256.8 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.348/3.348, allocations: 0.5097 GB / 0.8156 GB, free: 18.41 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|u.y|resSig.y|sam.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold") translateModel(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|u.y|resSig.y|sam.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002141/0.002141, allocations: 62.06 kB / 1.185 GB, free: 14.42 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3953/0.3974, allocations: 181.4 MB / 1.362 GB, free: 15.64 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.002447/0.3999, allocations: 0.9852 MB / 1.363 GB, free: 14.64 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001952/0.4018, allocations: 1.339 MB / 1.365 GB, free: 13.29 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001303/0.402, allocations: 7.938 kB / 1.365 GB, free: 13.28 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001438/0.4021, allocations: 15.8 kB / 1.365 GB, free: 13.27 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 8.047e-05/0.4022, allocations: 31.72 kB / 1.365 GB, free: 13.23 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007267/0.4029, allocations: 270.6 kB / 1.365 GB, free: 12.98 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0003611/0.4033, allocations: 295.5 kB / 1.365 GB, free: 12.69 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001713/0.4034, allocations: 68.59 kB / 1.365 GB, free: 12.62 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001406/0.4036, allocations: 115.7 kB / 1.365 GB, free: 12.51 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001717/0.4038, allocations: 95.56 kB / 1.365 GB, free: 12.41 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 5.066e-05/0.4038, allocations: 32 kB / 1.365 GB, free: 12.38 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001144/0.4039, allocations: 47.98 kB / 1.365 GB, free: 12.34 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 4.818e-05/0.404, allocations: 35.91 kB / 1.366 GB, free: 12.3 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001482/0.4041, allocations: 99.62 kB / 1.366 GB, free: 12.2 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0004355/0.4046, allocations: 346.8 kB / 1.366 GB, free: 11.86 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.4046, allocations: 0 / 1.366 GB, free: 11.86 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.182e-06/0.4046, allocations: 0 / 1.366 GB, free: 11.86 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.072e-06/0.4046, allocations: 4 kB / 1.366 GB, free: 11.86 MB / 1.061 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0007562/0.4053, allocations: 468.9 kB / 1.366 GB, free: 11.36 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.634e-05/0.4054, allocations: 12.03 kB / 1.366 GB, free: 11.34 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.22e-05/0.4055, allocations: 28.78 kB / 1.366 GB, free: 11.32 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003795/0.4058, allocations: 195.1 kB / 1.367 GB, free: 11.1 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.628e-05/0.4059, allocations: 12.38 kB / 1.367 GB, free: 11.09 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.298e-05/0.4059, allocations: 24.36 kB / 1.367 GB, free: 11.06 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002399/0.4061, allocations: 130.1 kB / 1.367 GB, free: 10.93 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.252e-05/0.4062, allocations: 3.938 kB / 1.367 GB, free: 10.93 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.839e-05/0.4062, allocations: 12 kB / 1.367 GB, free: 10.91 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.273e-06/0.4062, allocations: 4 kB / 1.367 GB, free: 10.91 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000145/0.4063, allocations: 72.41 kB / 1.367 GB, free: 10.84 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007946/0.4071, allocations: 459.9 kB / 1.367 GB, free: 10.36 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002038/0.4073, allocations: 86.58 kB / 1.367 GB, free: 10.27 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.408e-05/0.4074, allocations: 40.98 kB / 1.367 GB, free: 10.22 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.929e-05/0.4074, allocations: 3.938 kB / 1.367 GB, free: 10.22 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001956/0.4076, allocations: 118.4 kB / 1.368 GB, free: 10.09 MB / 1.061 GB Notification: Performance of pre-optimization done (n=15): time 2.064e-06/0.4076, allocations: 0 / 1.368 GB, free: 10.09 MB / 1.061 GB Notification: Performance of matching and sorting (n=15): time 0.0004056/0.408, allocations: 181.5 kB / 1.368 GB, free: 9.91 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.106e-05/0.4081, allocations: 59.41 kB / 1.368 GB, free: 9.84 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001802/0.4082, allocations: 171.2 kB / 1.368 GB, free: 9.66 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 4.11e-05/0.4083, allocations: 37.64 kB / 1.368 GB, free: 9.617 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001202/0.4084, allocations: 132.4 kB / 1.368 GB, free: 9.484 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 4.152e-05/0.4085, allocations: 31.8 kB / 1.368 GB, free: 9.453 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001277/0.4086, allocations: 65.69 kB / 1.368 GB, free: 9.383 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001615/0.4087, allocations: 322.8 kB / 1.369 GB, free: 9.059 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002388/0.409, allocations: 155.3 kB / 1.369 GB, free: 8.895 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002692/0.4092, allocations: 194.2 kB / 1.369 GB, free: 8.676 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003092/0.4096, allocations: 211.1 kB / 1.369 GB, free: 8.441 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.4096, allocations: 0 / 1.369 GB, free: 8.441 MB / 1.061 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006384/0.4102, allocations: 404.2 kB / 1.369 GB, free: 8.016 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 7.488e-05/0.4103, allocations: 71.42 kB / 1.369 GB, free: 7.934 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.4103, allocations: 4 kB / 1.369 GB, free: 7.93 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/0.4103, allocations: 0 / 1.369 GB, free: 7.93 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.448e-05/0.4104, allocations: 11.94 kB / 1.37 GB, free: 7.918 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.221e-05/0.4104, allocations: 7.984 kB / 1.37 GB, free: 7.91 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003504/0.4107, allocations: 59.83 kB / 1.37 GB, free: 7.852 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.058e-05/0.4108, allocations: 15.98 kB / 1.37 GB, free: 7.836 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 18 (sam.yRec.y,$PRE.sam.yRec.y,$whenCondition4,$whenCondition5,$whenCondition2,$whenCondition3,u.booPul.y,$PRE.u.booPul.y,resSig.y,$PRE.resSig.y,sam.edgThr.y,sam.edgThr.u,$PRE.sam.edgThr.u,sam.edgRes.u,$PRE.sam.edgRes.u,sam.samTri.y,sam.samTri.u2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001665/0.411, allocations: 150.4 kB / 1.37 GB, free: 7.68 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.729e-05/0.411, allocations: 19.84 kB / 1.37 GB, free: 7.66 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.298e-05/0.411, allocations: 9.469 kB / 1.37 GB, free: 7.648 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.411, allocations: 4 kB / 1.37 GB, free: 7.645 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.411, allocations: 0 / 1.37 GB, free: 7.645 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/0.411, allocations: 3.984 kB / 1.37 GB, free: 7.641 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006282/0.4117, allocations: 406.2 kB / 1.37 GB, free: 7.207 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.4117, allocations: 4 kB / 1.37 GB, free: 7.203 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.338e-05/0.4117, allocations: 4 kB / 1.37 GB, free: 7.199 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.315e-06/0.4117, allocations: 0 / 1.37 GB, free: 7.199 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.632e-05/0.4117, allocations: 4 kB / 1.37 GB, free: 7.195 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.4117, allocations: 4 kB / 1.37 GB, free: 7.191 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.4117, allocations: 0 / 1.37 GB, free: 7.191 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002845/0.412, allocations: 241.9 kB / 1.37 GB, free: 6.941 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.573e-05/0.412, allocations: 19.81 kB / 1.37 GB, free: 6.922 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.26e-05/0.4121, allocations: 4 kB / 1.37 GB, free: 6.918 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.959e-05/0.4121, allocations: 8 kB / 1.37 GB, free: 6.91 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.156e-05/0.4122, allocations: 15.97 kB / 1.37 GB, free: 6.895 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.263e-05/0.4122, allocations: 12 kB / 1.37 GB, free: 6.883 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001079/0.4123, allocations: 124.8 kB / 1.371 GB, free: 6.762 MB / 1.061 GB Notification: Performance of sort global known variables: time 9e-08/0.4123, allocations: 0 / 1.371 GB, free: 6.762 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003171/0.4126, allocations: 51.89 kB / 1.371 GB, free: 6.711 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 13 (sam.samTri.y,$whenCondition4,$whenCondition5,$whenCondition2,$whenCondition3,$whenCondition1,sam.yRec.y,sam.samTri.u2,sam.edgRes.u,sam.edgThr.u,sam.edgThr.y,resSig.y,u.booPul.y) * Number of discrete states: 2 (sam.edgThr.u,sam.edgRes.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001799/0.4128, allocations: 120.8 kB / 1.371 GB, free: 6.586 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0005432/0.4133, allocations: 342 kB / 1.371 GB, free: 6.215 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.4134, allocations: 320 / 1.371 GB, free: 6.215 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 9.726e-05/0.4134, allocations: 47.98 kB / 1.371 GB, free: 6.168 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003775/0.4138, allocations: 41.92 kB / 1.371 GB, free: 6.129 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006182/0.4144, allocations: 299.7 kB / 1.371 GB, free: 5.809 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000114/0.4146, allocations: 108 kB / 1.372 GB, free: 5.688 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 5.181e-05/0.4146, allocations: 17.42 kB / 1.372 GB, free: 5.668 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.222e-05/0.4147, allocations: 15.44 kB / 1.372 GB, free: 5.652 MB / 1.061 GB Notification: Performance of SimCode: time 3.11e-07/0.4147, allocations: 0 / 1.372 GB, free: 5.652 MB / 1.061 GB Notification: Performance of Templates: time 0.007281/0.4219, allocations: 3.011 MB / 1.375 GB, free: 2.734 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.sim & ./Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold -abortSlowSimulation -alarm=800 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_SamplerWithResetThreshold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.586985046975315]