Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001765/0.001765, allocations: 96.42 kB / 19.7 MB, free: 2.133 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.002122/0.002122, allocations: 212.7 kB / 22.99 MB, free: 4.957 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.591/1.591, allocations: 230.6 MB / 256.8 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.401/3.401, allocations: 0.49 GB / 0.7959 GB, free: 35.49 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_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_12_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.002176/0.002176, allocations: 65.52 kB / 1.155 GB, free: 25.26 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3969/0.3991, allocations: 176.1 MB / 1.327 GB, free: 1.004 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.002988/0.4021, allocations: 0.9984 MB / 1.328 GB, free: 12 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002176/0.4043, allocations: 1.338 MB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001738/0.4045, allocations: 3.938 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001831/0.4046, allocations: 23.8 kB / 1.329 GB, free: 14.63 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 9.644e-05/0.4047, allocations: 31.72 kB / 1.329 GB, free: 14.6 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009081/0.4056, allocations: 269.5 kB / 1.33 GB, free: 14.34 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0004387/0.4061, allocations: 295.5 kB / 1.33 GB, free: 14.05 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000219/0.4063, allocations: 68.69 kB / 1.33 GB, free: 13.98 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001479/0.4065, allocations: 119.6 kB / 1.33 GB, free: 13.87 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001967/0.4067, allocations: 107.6 kB / 1.33 GB, free: 13.76 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 6.618e-05/0.4067, allocations: 35.94 kB / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001095/0.4068, allocations: 43.98 kB / 1.33 GB, free: 13.68 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 5.12e-05/0.4069, allocations: 35.92 kB / 1.33 GB, free: 13.65 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001539/0.407, allocations: 107.5 kB / 1.33 GB, free: 13.54 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.000508/0.4075, allocations: 346.8 kB / 1.331 GB, free: 13.2 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 6.201e-06/0.4075, allocations: 0 / 1.331 GB, free: 13.2 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.304e-06/0.4075, allocations: 0 / 1.331 GB, free: 13.2 MB / 1.029 GB Notification: Performance of Transformations before backend: time 8.255e-06/0.4076, allocations: 0 / 1.331 GB, free: 13.2 MB / 1.029 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.0009802/0.4085, allocations: 468.9 kB / 1.331 GB, free: 12.7 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.906e-05/0.4086, allocations: 8.031 kB / 1.331 GB, free: 12.69 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.531e-05/0.4087, allocations: 24.84 kB / 1.331 GB, free: 12.67 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004523/0.4091, allocations: 195.8 kB / 1.331 GB, free: 12.45 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.694e-05/0.4092, allocations: 12.38 kB / 1.331 GB, free: 12.44 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.084e-05/0.4092, allocations: 20.38 kB / 1.331 GB, free: 12.42 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000278/0.4095, allocations: 126.1 kB / 1.332 GB, free: 12.29 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/0.4095, allocations: 3.938 kB / 1.332 GB, free: 12.29 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.271e-05/0.4095, allocations: 8 kB / 1.332 GB, free: 12.28 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.4095, allocations: 7.938 kB / 1.332 GB, free: 12.27 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001559/0.4097, allocations: 71.97 kB / 1.332 GB, free: 12.2 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008916/0.4106, allocations: 467.8 kB / 1.332 GB, free: 11.71 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002088/0.4108, allocations: 86.72 kB / 1.332 GB, free: 11.62 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.574e-05/0.4109, allocations: 40.83 kB / 1.332 GB, free: 11.57 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.063e-05/0.4109, allocations: 3.938 kB / 1.332 GB, free: 11.57 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002152/0.4111, allocations: 115.5 kB / 1.332 GB, free: 11.45 MB / 1.029 GB Notification: Performance of pre-optimization done (n=15): time 1.923e-06/0.4111, allocations: 4 kB / 1.332 GB, free: 11.44 MB / 1.029 GB Notification: Performance of matching and sorting (n=15): time 0.0004508/0.4116, allocations: 179.3 kB / 1.333 GB, free: 11.26 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.049e-05/0.4116, allocations: 55.41 kB / 1.333 GB, free: 11.2 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002111/0.4119, allocations: 175.9 kB / 1.333 GB, free: 11.01 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 5.046e-05/0.4119, allocations: 37.7 kB / 1.333 GB, free: 10.97 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001132/0.412, allocations: 128.5 kB / 1.333 GB, free: 10.84 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.902e-05/0.4121, allocations: 31.75 kB / 1.333 GB, free: 10.81 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000132/0.4122, allocations: 65.67 kB / 1.333 GB, free: 10.74 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001721/0.4124, allocations: 330.8 kB / 1.333 GB, free: 10.41 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002336/0.4126, allocations: 147.4 kB / 1.333 GB, free: 10.25 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002648/0.4129, allocations: 198.3 kB / 1.334 GB, free: 10.03 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002991/0.4132, allocations: 210.2 kB / 1.334 GB, free: 9.793 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.561e-06/0.4132, allocations: 7.938 kB / 1.334 GB, free: 9.785 MB / 1.029 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006459/0.4138, allocations: 404.1 kB / 1.334 GB, free: 9.359 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 7.132e-05/0.4139, allocations: 67.55 kB / 1.334 GB, free: 9.281 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.4139, allocations: 4 kB / 1.334 GB, free: 9.277 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.225e-05/0.4139, allocations: 4 kB / 1.334 GB, free: 9.273 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.323e-05/0.414, allocations: 11.94 kB / 1.334 GB, free: 9.262 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.686e-06/0.414, allocations: 0 / 1.334 GB, free: 9.262 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003535/0.4144, allocations: 63.83 kB / 1.334 GB, free: 9.199 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.492e-05/0.4144, allocations: 19.98 kB / 1.334 GB, free: 9.18 MB / 1.029 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.0001666/0.4146, allocations: 146.2 kB / 1.335 GB, free: 9.027 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.065e-05/0.4146, allocations: 19.83 kB / 1.335 GB, free: 9.008 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.144e-05/0.4147, allocations: 17.47 kB / 1.335 GB, free: 8.984 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.019e-06/0.4147, allocations: 4 kB / 1.335 GB, free: 8.98 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.4147, allocations: 0 / 1.335 GB, free: 8.98 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.4147, allocations: 0 / 1.335 GB, free: 8.98 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005168/0.4152, allocations: 402.2 kB / 1.335 GB, free: 8.551 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/0.4152, allocations: 4 kB / 1.335 GB, free: 8.547 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.521e-05/0.4152, allocations: 11.98 kB / 1.335 GB, free: 8.535 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.4152, allocations: 0 / 1.335 GB, free: 8.535 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.574e-05/0.4152, allocations: 4 kB / 1.335 GB, free: 8.531 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.4153, allocations: 4 kB / 1.335 GB, free: 8.527 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.4153, allocations: 3.938 kB / 1.335 GB, free: 8.523 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002945/0.4155, allocations: 238.2 kB / 1.335 GB, free: 8.277 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.671e-05/0.4156, allocations: 15.84 kB / 1.335 GB, free: 8.262 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.661e-05/0.4156, allocations: 11.98 kB / 1.335 GB, free: 8.25 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.384e-05/0.4157, allocations: 0 / 1.335 GB, free: 8.25 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.497e-05/0.4157, allocations: 15.98 kB / 1.335 GB, free: 8.234 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.409e-05/0.4158, allocations: 7.984 kB / 1.335 GB, free: 8.227 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001064/0.4159, allocations: 124 kB / 1.335 GB, free: 8.105 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.4159, allocations: 0 / 1.335 GB, free: 8.105 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003156/0.4162, allocations: 55.89 kB / 1.335 GB, free: 8.051 MB / 1.029 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.000187/0.4164, allocations: 107.2 kB / 1.336 GB, free: 7.938 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000522/0.4169, allocations: 338 kB / 1.336 GB, free: 7.57 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.4169, allocations: 0 / 1.336 GB, free: 7.57 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001024/0.417, allocations: 48.28 kB / 1.336 GB, free: 7.523 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003652/0.4174, allocations: 43.84 kB / 1.336 GB, free: 7.48 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006026/0.418, allocations: 291.7 kB / 1.336 GB, free: 7.168 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000129/0.4181, allocations: 116 kB / 1.336 GB, free: 7.039 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 5.546e-05/0.4182, allocations: 13.42 kB / 1.336 GB, free: 7.023 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.907e-05/0.4182, allocations: 15.44 kB / 1.336 GB, free: 7.012 MB / 1.029 GB Notification: Performance of SimCode: time 2.81e-07/0.4182, allocations: 0 / 1.336 GB, free: 7.012 MB / 1.029 GB Notification: Performance of Templates: time 0.007267/0.4255, allocations: 3.03 MB / 1.339 GB, free: 4.086 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.sim & ./Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold -abortSlowSimulation -alarm=400 -s gbode -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_SamplerWithResetThreshold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.681754338991595]