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.001612/0.001612, allocations: 102.3 kB / 19.7 MB, free: 2.254 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.002007/0.002007, allocations: 217.1 kB / 23.01 MB, free: 4.609 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.466/1.466, allocations: 230.6 MB / 256.8 MB, free: 8.066 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.258/3.258, allocations: 0.505 GB / 0.8108 GB, free: 22.07 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.002861/0.002861, allocations: 72.2 kB / 1.178 GB, free: 16.91 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.335/0.3378, allocations: 180.2 MB / 1.354 GB, free: 8.016 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.003381/0.3412, allocations: 1.051 MB / 1.355 GB, free: 6.965 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.002623/0.3438, allocations: 1.362 MB / 1.356 GB, free: 5.59 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002239/0.344, allocations: 4 kB / 1.356 GB, free: 5.586 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001763/0.3442, allocations: 19.69 kB / 1.356 GB, free: 5.566 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001382/0.3444, allocations: 31.73 kB / 1.357 GB, free: 5.535 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.001052/0.3454, allocations: 259.9 kB / 1.357 GB, free: 5.285 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0006382/0.346, allocations: 307.5 kB / 1.357 GB, free: 4.984 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002254/0.3463, allocations: 64.67 kB / 1.357 GB, free: 4.918 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002039/0.3465, allocations: 115.7 kB / 1.357 GB, free: 4.805 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002545/0.3467, allocations: 119.4 kB / 1.357 GB, free: 4.688 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 7.105e-05/0.3468, allocations: 32 kB / 1.357 GB, free: 4.656 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000131/0.3469, allocations: 55.98 kB / 1.357 GB, free: 4.602 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 5.142e-05/0.347, allocations: 31.91 kB / 1.357 GB, free: 4.57 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001795/0.3472, allocations: 115.5 kB / 1.358 GB, free: 4.457 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0005535/0.3477, allocations: 350.8 kB / 1.358 GB, free: 4.113 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.3477, allocations: 0 / 1.358 GB, free: 4.113 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.543e-06/0.3477, allocations: 0 / 1.358 GB, free: 4.113 MB / 1.045 GB Notification: Performance of Transformations before backend: time 9.799e-06/0.3477, allocations: 0 / 1.358 GB, free: 4.113 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.0009657/0.3487, allocations: 464.9 kB / 1.358 GB, free: 3.613 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.907e-05/0.3487, allocations: 12.03 kB / 1.358 GB, free: 3.602 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001101/0.3489, allocations: 24.8 kB / 1.358 GB, free: 3.578 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004828/0.3493, allocations: 204.2 kB / 1.359 GB, free: 3.352 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.015e-05/0.3494, allocations: 12.38 kB / 1.359 GB, free: 3.34 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00013/0.3495, allocations: 20.38 kB / 1.359 GB, free: 3.32 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003142/0.3498, allocations: 126.1 kB / 1.359 GB, free: 3.191 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.3498, allocations: 3.938 kB / 1.359 GB, free: 3.188 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.611e-05/0.3499, allocations: 11.98 kB / 1.359 GB, free: 3.176 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.3499, allocations: 0 / 1.359 GB, free: 3.176 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002072/0.3501, allocations: 79.91 kB / 1.359 GB, free: 3.098 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001333/0.3514, allocations: 0.5383 MB / 1.359 GB, free: 2.516 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002674/0.3517, allocations: 94.59 kB / 1.359 GB, free: 2.414 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.758e-05/0.3518, allocations: 40.78 kB / 1.359 GB, free: 2.371 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.398e-05/0.3518, allocations: 0 / 1.359 GB, free: 2.371 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000278/0.3521, allocations: 121.6 kB / 1.36 GB, free: 2.242 MB / 1.045 GB Notification: Performance of pre-optimization done (n=15): time 1.894e-06/0.3521, allocations: 3.938 kB / 1.36 GB, free: 2.238 MB / 1.045 GB Notification: Performance of matching and sorting (n=15): time 0.0004293/0.3525, allocations: 173.5 kB / 1.36 GB, free: 2.062 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.56e-05/0.3526, allocations: 59.41 kB / 1.36 GB, free: 1.992 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002035/0.3528, allocations: 186.7 kB / 1.36 GB, free: 1.797 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 4.82e-05/0.3528, allocations: 37.7 kB / 1.36 GB, free: 1.754 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001118/0.3529, allocations: 128.4 kB / 1.36 GB, free: 1.625 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 4.296e-05/0.353, allocations: 35.8 kB / 1.36 GB, free: 1.59 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001261/0.3531, allocations: 61.69 kB / 1.36 GB, free: 1.523 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0002562/0.3533, allocations: 326.8 kB / 1.361 GB, free: 1.195 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001805/0.3535, allocations: 83.97 kB / 1.361 GB, free: 1.113 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002181/0.3537, allocations: 134.2 kB / 1.361 GB, free: 0.9648 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002771/0.354, allocations: 210.5 kB / 1.361 GB, free: 0.7305 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.354, allocations: 3.938 kB / 1.361 GB, free: 0.7266 MB / 1.045 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005868/0.3546, allocations: 353.4 kB / 1.361 GB, free: 376 kB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 6.449e-05/0.3547, allocations: 63.41 kB / 1.361 GB, free: 300 kB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.3547, allocations: 4 kB / 1.361 GB, free: 296 kB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.735e-05/0.3547, allocations: 3.984 kB / 1.361 GB, free: 292 kB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.584e-05/0.3548, allocations: 11.94 kB / 1.361 GB, free: 280 kB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.087e-06/0.3548, allocations: 4 kB / 1.361 GB, free: 276 kB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003565/0.3551, allocations: 59.95 kB / 1.361 GB, free: 216 kB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.791e-05/0.3552, allocations: 23.98 kB / 1.361 GB, free: 192 kB / 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.0001562/0.3553, allocations: 150.2 kB / 1.362 GB, free: 32 kB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.74e-05/0.3554, allocations: 19.89 kB / 1.362 GB, free: 12 kB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.37e-05/0.3554, allocations: 17.52 kB / 1.362 GB, free: 15.99 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.3554, allocations: 0 / 1.362 GB, free: 15.99 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.3554, allocations: 0 / 1.362 GB, free: 15.99 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.3554, allocations: 7.938 kB / 1.362 GB, free: 15.98 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005582/0.356, allocations: 447.6 kB / 1.362 GB, free: 15.5 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.356, allocations: 0 / 1.362 GB, free: 15.5 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.678e-05/0.356, allocations: 11.92 kB / 1.362 GB, free: 15.49 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.356, allocations: 4 kB / 1.362 GB, free: 15.48 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.007e-05/0.356, allocations: 0 / 1.362 GB, free: 15.48 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.356, allocations: 0 / 1.362 GB, free: 15.48 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.356, allocations: 0 / 1.362 GB, free: 15.48 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000275/0.3563, allocations: 251.8 kB / 1.362 GB, free: 15.22 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.375e-05/0.3564, allocations: 23.8 kB / 1.362 GB, free: 15.2 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.864e-05/0.3564, allocations: 7.984 kB / 1.362 GB, free: 15.19 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.816e-05/0.3565, allocations: 4 kB / 1.362 GB, free: 15.19 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.716e-05/0.3565, allocations: 7.984 kB / 1.362 GB, free: 15.18 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.969e-05/0.3565, allocations: 11.92 kB / 1.362 GB, free: 15.17 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001249/0.3567, allocations: 148.8 kB / 1.363 GB, free: 15.02 MB / 1.061 GB Notification: Performance of sort global known variables: time 1e-07/0.3567, allocations: 3.938 kB / 1.363 GB, free: 15.02 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003048/0.357, allocations: 44 kB / 1.363 GB, free: 14.98 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.0001779/0.3571, allocations: 119.2 kB / 1.363 GB, free: 14.85 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004429/0.3576, allocations: 272.6 kB / 1.363 GB, free: 14.56 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3576, allocations: 4 kB / 1.363 GB, free: 14.56 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001/0.3577, allocations: 51.91 kB / 1.363 GB, free: 14.51 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003596/0.358, allocations: 33.91 kB / 1.363 GB, free: 14.48 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005963/0.3586, allocations: 321.5 kB / 1.363 GB, free: 14.13 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004014/0.359, allocations: 0.7281 MB / 1.364 GB, free: 13.38 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.542e-05/0.3591, allocations: 23.44 kB / 1.364 GB, free: 13.35 MB / 1.061 GB Notification: Performance of SimCode: time 3.31e-07/0.3591, allocations: 0 / 1.364 GB, free: 13.35 MB / 1.061 GB Notification: Performance of Templates: time 0.004856/0.3639, allocations: 2.483 MB / 1.367 GB, free: 10.89 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/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: 11.369151069986401]