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.001403/0.001403, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001588/0.001588, allocations: 213.6 kB / 22.24 MB, free: 5.258 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.611/1.611, allocations: 230.6 MB / 256 MB, free: 7.812 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.51/3.51, allocations: 0.5107 GB / 0.8158 GB, free: 17.87 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.001959/0.001959, allocations: 62.41 kB / 1.186 GB, free: 13.55 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4079/0.4099, allocations: 181.9 MB / 1.364 GB, free: 13.6 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.002469/0.4124, allocations: 0.9881 MB / 1.365 GB, free: 12.61 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002037/0.4144, allocations: 1.343 MB / 1.366 GB, free: 11.25 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001051/0.4145, allocations: 0 / 1.366 GB, free: 11.25 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 7.885e-05/0.4146, allocations: 19.73 kB / 1.366 GB, free: 11.23 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 7.111e-05/0.4147, allocations: 31.72 kB / 1.366 GB, free: 11.2 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005939/0.4153, allocations: 266.8 kB / 1.366 GB, free: 10.95 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.000345/0.4156, allocations: 311.4 kB / 1.367 GB, free: 10.64 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001818/0.4158, allocations: 60.67 kB / 1.367 GB, free: 10.59 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001319/0.4159, allocations: 119.7 kB / 1.367 GB, free: 10.47 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001778/0.4161, allocations: 99.5 kB / 1.367 GB, free: 10.37 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 5.746e-05/0.4161, allocations: 32 kB / 1.367 GB, free: 10.34 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001022/0.4162, allocations: 47.98 kB / 1.367 GB, free: 10.29 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 4.551e-05/0.4163, allocations: 35.86 kB / 1.367 GB, free: 10.26 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001251/0.4164, allocations: 99.67 kB / 1.367 GB, free: 10.16 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0004296/0.4168, allocations: 342.8 kB / 1.368 GB, free: 9.824 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.4169, allocations: 4 kB / 1.368 GB, free: 9.82 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.853e-06/0.4169, allocations: 0 / 1.368 GB, free: 9.82 MB / 1.061 GB Notification: Performance of Transformations before backend: time 7.274e-06/0.4169, allocations: 4 kB / 1.368 GB, free: 9.816 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.0007874/0.4177, allocations: 468.9 kB / 1.368 GB, free: 9.312 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.4177, allocations: 8.031 kB / 1.368 GB, free: 9.305 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.385e-05/0.4178, allocations: 28.8 kB / 1.368 GB, free: 9.277 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000364/0.4181, allocations: 191.1 kB / 1.368 GB, free: 9.062 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.863e-05/0.4182, allocations: 12.38 kB / 1.368 GB, free: 9.051 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.948e-05/0.4182, allocations: 20.38 kB / 1.368 GB, free: 9.031 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002388/0.4184, allocations: 122.7 kB / 1.368 GB, free: 8.906 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.122e-05/0.4185, allocations: 11.91 kB / 1.368 GB, free: 8.895 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.942e-05/0.4185, allocations: 12 kB / 1.368 GB, free: 8.883 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.4185, allocations: 0 / 1.368 GB, free: 8.883 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001585/0.4186, allocations: 83.84 kB / 1.368 GB, free: 8.801 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008051/0.4195, allocations: 455.9 kB / 1.369 GB, free: 8.324 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002055/0.4197, allocations: 90.66 kB / 1.369 GB, free: 8.227 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.604e-05/0.4197, allocations: 36.84 kB / 1.369 GB, free: 8.188 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.374e-05/0.4197, allocations: 3.938 kB / 1.369 GB, free: 8.184 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001924/0.4199, allocations: 115.5 kB / 1.369 GB, free: 8.059 MB / 1.061 GB Notification: Performance of pre-optimization done (n=15): time 1.383e-06/0.4199, allocations: 0 / 1.369 GB, free: 8.059 MB / 1.061 GB Notification: Performance of matching and sorting (n=15): time 0.0003789/0.4203, allocations: 180.2 kB / 1.369 GB, free: 7.879 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.649e-05/0.4204, allocations: 59.41 kB / 1.369 GB, free: 7.809 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001687/0.4205, allocations: 171.2 kB / 1.37 GB, free: 7.629 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 4.392e-05/0.4206, allocations: 37.7 kB / 1.37 GB, free: 7.586 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001041/0.4207, allocations: 132.4 kB / 1.37 GB, free: 7.453 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.582e-05/0.4207, allocations: 31.81 kB / 1.37 GB, free: 7.422 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001268/0.4208, allocations: 65.67 kB / 1.37 GB, free: 7.352 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001379/0.421, allocations: 322.8 kB / 1.37 GB, free: 7.027 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002178/0.4212, allocations: 151.4 kB / 1.37 GB, free: 6.867 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002529/0.4215, allocations: 202.8 kB / 1.37 GB, free: 6.641 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002712/0.4217, allocations: 206.3 kB / 1.371 GB, free: 6.41 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.4217, allocations: 0 / 1.371 GB, free: 6.41 MB / 1.061 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006018/0.4223, allocations: 418.6 kB / 1.371 GB, free: 5.973 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 5.847e-05/0.4224, allocations: 75.36 kB / 1.371 GB, free: 5.887 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.4224, allocations: 0 / 1.371 GB, free: 5.887 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.198e-05/0.4224, allocations: 4 kB / 1.371 GB, free: 5.883 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.723e-05/0.4225, allocations: 11.94 kB / 1.371 GB, free: 5.871 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.594e-06/0.4225, allocations: 3.984 kB / 1.371 GB, free: 5.867 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000326/0.4228, allocations: 67.83 kB / 1.371 GB, free: 5.801 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.366e-05/0.4228, allocations: 15.98 kB / 1.371 GB, free: 5.785 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.0001415/0.423, allocations: 145.8 kB / 1.371 GB, free: 5.633 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.365e-05/0.423, allocations: 19.81 kB / 1.371 GB, free: 5.613 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.575e-05/0.4231, allocations: 13.47 kB / 1.371 GB, free: 5.594 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.4231, allocations: 4 kB / 1.371 GB, free: 5.59 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.4231, allocations: 0 / 1.371 GB, free: 5.59 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.4231, allocations: 0 / 1.371 GB, free: 5.59 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004725/0.4235, allocations: 398.2 kB / 1.372 GB, free: 5.164 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.4235, allocations: 4 kB / 1.372 GB, free: 5.16 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.499e-05/0.4236, allocations: 19.86 kB / 1.372 GB, free: 5.141 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.4236, allocations: 0 / 1.372 GB, free: 5.141 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.085e-05/0.4236, allocations: 0 / 1.372 GB, free: 5.141 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.4236, allocations: 0 / 1.372 GB, free: 5.141 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.4236, allocations: 4 kB / 1.372 GB, free: 5.137 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002702/0.4239, allocations: 239.8 kB / 1.372 GB, free: 4.887 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.559e-05/0.4239, allocations: 15.84 kB / 1.372 GB, free: 4.871 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.647e-05/0.4239, allocations: 7.984 kB / 1.372 GB, free: 4.863 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.395e-05/0.424, allocations: 4 kB / 1.372 GB, free: 4.859 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.359e-05/0.424, allocations: 7.984 kB / 1.372 GB, free: 4.852 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.471e-05/0.4241, allocations: 19.98 kB / 1.372 GB, free: 4.832 MB / 1.061 GB Notification: Performance of sorting global known variables: time 9.791e-05/0.4242, allocations: 120.9 kB / 1.372 GB, free: 4.715 MB / 1.061 GB Notification: Performance of sort global known variables: time 9e-08/0.4242, allocations: 0 / 1.372 GB, free: 4.715 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002962/0.4244, allocations: 55.83 kB / 1.372 GB, free: 4.66 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.0001715/0.4246, allocations: 111.2 kB / 1.372 GB, free: 4.543 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004961/0.4251, allocations: 334.1 kB / 1.373 GB, free: 4.18 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.4251, allocations: 320 / 1.373 GB, free: 4.18 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 9.768e-05/0.4252, allocations: 54.03 kB / 1.373 GB, free: 4.129 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003461/0.4256, allocations: 35.84 kB / 1.373 GB, free: 4.094 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005598/0.4261, allocations: 295.8 kB / 1.373 GB, free: 3.777 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001121/0.4262, allocations: 112 kB / 1.373 GB, free: 3.652 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 5.448e-05/0.4263, allocations: 21.41 kB / 1.373 GB, free: 3.633 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.774e-05/0.4263, allocations: 15.44 kB / 1.373 GB, free: 3.617 MB / 1.061 GB Notification: Performance of SimCode: time 2.91e-07/0.4263, allocations: 0 / 1.373 GB, free: 3.617 MB / 1.061 GB Notification: Performance of Templates: time 0.006861/0.4332, allocations: 2.991 MB / 1.376 GB, free: 0.7305 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 -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/jenkins/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.826546780765057]