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.001552/0.001552, allocations: 103 kB / 16.45 MB, free: 6.449 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.001494/0.001494, allocations: 212.9 kB / 19.43 MB, free: 3.637 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.63/1.63, allocations: 230.5 MB / 252.8 MB, free: 9.121 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.47/3.47, allocations: 0.5049 GB / 0.8065 GB, free: 23.1 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.002101/0.002101, allocations: 71.16 kB / 1.172 GB, free: 17.5 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4053/0.4074, allocations: 180.2 MB / 1.348 GB, free: 9.613 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.002747/0.4101, allocations: 1.057 MB / 1.349 GB, free: 8.555 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.002049/0.4122, allocations: 1.354 MB / 1.351 GB, free: 7.188 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001302/0.4123, allocations: 7.938 kB / 1.351 GB, free: 7.18 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001476/0.4125, allocations: 15.8 kB / 1.351 GB, free: 7.164 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 8.974e-05/0.4125, allocations: 35.72 kB / 1.351 GB, free: 7.129 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007742/0.4133, allocations: 266.9 kB / 1.351 GB, free: 6.875 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0003974/0.4137, allocations: 295.5 kB / 1.351 GB, free: 6.586 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001834/0.4139, allocations: 68.33 kB / 1.351 GB, free: 6.52 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001575/0.4141, allocations: 119.6 kB / 1.351 GB, free: 6.402 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001868/0.4142, allocations: 107.6 kB / 1.351 GB, free: 6.297 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 5.563e-05/0.4143, allocations: 32 kB / 1.351 GB, free: 6.266 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001095/0.4144, allocations: 51.92 kB / 1.352 GB, free: 6.215 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 4.577e-05/0.4145, allocations: 35.92 kB / 1.352 GB, free: 6.18 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001418/0.4146, allocations: 119.5 kB / 1.352 GB, free: 6.062 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0004776/0.4151, allocations: 342.8 kB / 1.352 GB, free: 5.727 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.4151, allocations: 0 / 1.352 GB, free: 5.727 MB / 1.045 GB Notification: Performance of FrontEnd: time 3.376e-06/0.4151, allocations: 8 kB / 1.352 GB, free: 5.719 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.903e-06/0.4151, allocations: 3.938 kB / 1.352 GB, free: 5.715 MB / 1.045 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.0009171/0.416, allocations: 0.5332 MB / 1.353 GB, free: 5.117 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.416, allocations: 8.031 kB / 1.353 GB, free: 5.109 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.231e-05/0.4161, allocations: 32.8 kB / 1.353 GB, free: 5.078 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004417/0.4166, allocations: 248.9 kB / 1.353 GB, free: 4.793 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.598e-05/0.4166, allocations: 12.38 kB / 1.353 GB, free: 4.781 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.224e-05/0.4167, allocations: 20.38 kB / 1.353 GB, free: 4.762 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000262/0.4169, allocations: 134.1 kB / 1.353 GB, free: 4.625 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.028e-05/0.4169, allocations: 3.938 kB / 1.353 GB, free: 4.621 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.867e-05/0.417, allocations: 4 kB / 1.353 GB, free: 4.617 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.417, allocations: 7.938 kB / 1.353 GB, free: 4.609 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001616/0.4171, allocations: 71.97 kB / 1.353 GB, free: 4.539 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009562/0.4181, allocations: 0.5704 MB / 1.354 GB, free: 3.918 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002125/0.4183, allocations: 94.52 kB / 1.354 GB, free: 3.816 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.299e-05/0.4184, allocations: 36.98 kB / 1.354 GB, free: 3.777 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.399e-05/0.4184, allocations: 0 / 1.354 GB, free: 3.777 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002101/0.4186, allocations: 115.4 kB / 1.354 GB, free: 3.652 MB / 1.045 GB Notification: Performance of pre-optimization done (n=15): time 1.362e-06/0.4186, allocations: 0 / 1.354 GB, free: 3.652 MB / 1.045 GB Notification: Performance of matching and sorting (n=15): time 0.0004278/0.419, allocations: 188.2 kB / 1.354 GB, free: 3.465 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.189e-05/0.4191, allocations: 55.41 kB / 1.354 GB, free: 3.398 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002085/0.4193, allocations: 190.6 kB / 1.354 GB, free: 3.195 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 4.746e-05/0.4193, allocations: 37.7 kB / 1.354 GB, free: 3.152 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001064/0.4195, allocations: 120.5 kB / 1.354 GB, free: 3.031 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 4.964e-05/0.4195, allocations: 35.73 kB / 1.354 GB, free: 2.996 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001393/0.4196, allocations: 69.61 kB / 1.355 GB, free: 2.922 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001892/0.4198, allocations: 326.8 kB / 1.355 GB, free: 2.594 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000213/0.42, allocations: 91.95 kB / 1.355 GB, free: 2.504 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002252/0.4203, allocations: 122.5 kB / 1.355 GB, free: 2.367 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003237/0.4206, allocations: 210.8 kB / 1.355 GB, free: 2.133 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.399e-06/0.4206, allocations: 3.938 kB / 1.355 GB, free: 2.129 MB / 1.045 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006311/0.4212, allocations: 352.6 kB / 1.356 GB, free: 1.766 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 7.147e-05/0.4213, allocations: 67.39 kB / 1.356 GB, free: 1.688 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.4213, allocations: 4 kB / 1.356 GB, free: 1.684 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.4213, allocations: 0 / 1.356 GB, free: 1.684 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.601e-05/0.4214, allocations: 16.09 kB / 1.356 GB, free: 1.668 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.021e-05/0.4214, allocations: 4 kB / 1.356 GB, free: 1.664 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000369/0.4218, allocations: 63.81 kB / 1.356 GB, free: 1.602 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.374e-05/0.4218, allocations: 12 kB / 1.356 GB, free: 1.59 MB / 1.045 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.0001667/0.422, allocations: 153.7 kB / 1.356 GB, free: 1.43 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.712e-05/0.422, allocations: 15.91 kB / 1.356 GB, free: 1.414 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.611e-05/0.4221, allocations: 17.47 kB / 1.356 GB, free: 1.391 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.474e-06/0.4221, allocations: 0 / 1.356 GB, free: 1.391 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.4221, allocations: 0 / 1.356 GB, free: 1.391 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.4221, allocations: 3.984 kB / 1.356 GB, free: 1.387 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006046/0.4227, allocations: 474.5 kB / 1.356 GB, free: 0.8672 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.4227, allocations: 0 / 1.356 GB, free: 0.8672 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.641e-05/0.4227, allocations: 11.94 kB / 1.356 GB, free: 0.8555 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/0.4227, allocations: 11.98 kB / 1.356 GB, free: 0.8438 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.581e-05/0.4227, allocations: 4 kB / 1.356 GB, free: 0.8398 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.4227, allocations: 0 / 1.356 GB, free: 0.8398 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.4227, allocations: 0 / 1.356 GB, free: 0.8398 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003034/0.423, allocations: 247.7 kB / 1.357 GB, free: 0.582 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 6.746e-05/0.4231, allocations: 96.95 kB / 1.357 GB, free: 480 kB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.988e-05/0.4231, allocations: 4 kB / 1.357 GB, free: 476 kB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.03e-05/0.4232, allocations: 4 kB / 1.357 GB, free: 472 kB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.351e-05/0.4233, allocations: 15.98 kB / 1.357 GB, free: 456 kB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.305e-05/0.4233, allocations: 7.984 kB / 1.357 GB, free: 448 kB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0001278/0.4234, allocations: 135.2 kB / 1.357 GB, free: 312 kB / 1.045 GB Notification: Performance of sort global known variables: time 7e-08/0.4234, allocations: 0 / 1.357 GB, free: 312 kB / 1.045 GB Notification: Performance of remove unused functions: time 0.0003171/0.4237, allocations: 47.94 kB / 1.357 GB, free: 264 kB / 1.045 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.0002296/0.424, allocations: 115.2 kB / 1.357 GB, free: 140 kB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0005382/0.4245, allocations: 292.8 kB / 1.357 GB, free: 15.83 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.4245, allocations: 0 / 1.357 GB, free: 15.83 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.000101/0.4246, allocations: 43.98 kB / 1.357 GB, free: 15.79 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003796/0.425, allocations: 33.19 kB / 1.357 GB, free: 15.75 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006451/0.4256, allocations: 305.3 kB / 1.358 GB, free: 15.43 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004345/0.4261, allocations: 0.7241 MB / 1.358 GB, free: 14.68 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 5.198e-05/0.4261, allocations: 13.55 kB / 1.358 GB, free: 14.67 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.678e-05/0.4262, allocations: 19.44 kB / 1.358 GB, free: 14.65 MB / 1.061 GB Notification: Performance of SimCode: time 3.11e-07/0.4262, allocations: 0 / 1.358 GB, free: 14.65 MB / 1.061 GB Notification: Performance of Templates: time 0.006998/0.4332, allocations: 2.752 MB / 1.361 GB, free: 11.97 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.802551453001797]