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.001845/0.001845, allocations: 113.5 kB / 17.13 MB, free: 5.926 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.002203/0.002203, allocations: 206.5 kB / 20.09 MB, free: 2.977 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.719/1.719, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.015/3.015, allocations: 0.505 GB / 0.8072 GB, free: 2.254 MB / 0.6387 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.002111/0.002111, allocations: 67.89 kB / 1.173 GB, free: 9.348 MB / 0.9512 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9966/0.9987, allocations: 180.2 MB / 1.349 GB, free: 5.371 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.002447/1.001, allocations: 1.064 MB / 1.35 GB, free: 4.672 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001569/1.003, allocations: 1.35 MB / 1.351 GB, free: 3.684 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000129/1.003, allocations: 2.625 kB / 1.351 GB, free: 3.684 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001409/1.003, allocations: 24.44 kB / 1.351 GB, free: 3.664 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 7.373e-05/1.003, allocations: 30.73 kB / 1.351 GB, free: 3.641 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007216/1.004, allocations: 262.3 kB / 1.352 GB, free: 3.504 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0003355/1.004, allocations: 304.4 kB / 1.352 GB, free: 3.359 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001567/1.004, allocations: 69.34 kB / 1.352 GB, free: 3.32 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001152/1.004, allocations: 111.1 kB / 1.352 GB, free: 3.27 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001598/1.005, allocations: 113.9 kB / 1.352 GB, free: 3.211 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 5.039e-05/1.005, allocations: 36 kB / 1.352 GB, free: 3.207 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 9.534e-05/1.005, allocations: 44.7 kB / 1.352 GB, free: 3.203 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 3.891e-05/1.005, allocations: 39.92 kB / 1.352 GB, free: 3.176 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001154/1.005, allocations: 114.2 kB / 1.352 GB, free: 3.105 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0004282/1.005, allocations: 348.6 kB / 1.353 GB, free: 2.984 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/1.005, allocations: 1.984 kB / 1.353 GB, free: 2.984 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.833e-06/1.005, allocations: 0 / 1.353 GB, free: 2.984 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.134e-05/1.005, allocations: 0 / 1.353 GB, free: 2.984 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.0006251/1.006, allocations: 0.5319 MB / 1.353 GB, free: 2.48 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/1.006, allocations: 13.94 kB / 1.353 GB, free: 2.477 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.73e-05/1.006, allocations: 31.09 kB / 1.353 GB, free: 2.461 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003147/1.006, allocations: 254 kB / 1.354 GB, free: 2.215 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.703e-05/1.006, allocations: 14.59 kB / 1.354 GB, free: 2.211 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.795e-05/1.006, allocations: 24.78 kB / 1.354 GB, free: 2.203 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002071/1.007, allocations: 126.8 kB / 1.354 GB, free: 2.133 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/1.007, allocations: 4.547 kB / 1.354 GB, free: 2.129 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.658e-05/1.007, allocations: 6.125 kB / 1.354 GB, free: 2.125 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/1.007, allocations: 2.812 kB / 1.354 GB, free: 2.125 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001445/1.007, allocations: 74.78 kB / 1.354 GB, free: 2.098 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007629/1.008, allocations: 0.5705 MB / 1.354 GB, free: 1.691 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001809/1.008, allocations: 97.16 kB / 1.354 GB, free: 1.633 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.07e-05/1.008, allocations: 35.92 kB / 1.354 GB, free: 1.613 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.177e-05/1.008, allocations: 5.25 kB / 1.354 GB, free: 1.609 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001708/1.008, allocations: 114.7 kB / 1.355 GB, free: 1.539 MB / 1.045 GB Notification: Performance of pre-optimization done (n=15): time 1.403e-06/1.008, allocations: 0 / 1.355 GB, free: 1.539 MB / 1.045 GB Notification: Performance of matching and sorting (n=15): time 0.0003564/1.008, allocations: 183 kB / 1.355 GB, free: 1.453 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.875e-05/1.008, allocations: 58.59 kB / 1.355 GB, free: 1.387 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000161/1.009, allocations: 190.6 kB / 1.355 GB, free: 1.246 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.508e-05/1.009, allocations: 39.36 kB / 1.355 GB, free: 1.207 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 7.598e-05/1.009, allocations: 128.2 kB / 1.355 GB, free: 1.094 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.12e-05/1.009, allocations: 32.33 kB / 1.355 GB, free: 1.07 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001221/1.009, allocations: 61.64 kB / 1.355 GB, free: 1.043 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 5.161e-05/1.009, allocations: 327.9 kB / 1.356 GB, free: 0.7227 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001784/1.009, allocations: 87.03 kB / 1.356 GB, free: 0.6914 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001869/1.009, allocations: 133.4 kB / 1.356 GB, free: 0.6055 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002222/1.009, allocations: 206.4 kB / 1.356 GB, free: 452 kB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/1.009, allocations: 3.938 kB / 1.356 GB, free: 448 kB / 1.045 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005293/1.01, allocations: 353.6 kB / 1.356 GB, free: 248 kB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.648e-05/1.01, allocations: 68.41 kB / 1.356 GB, free: 180 kB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/1.01, allocations: 2.812 kB / 1.356 GB, free: 180 kB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.703e-05/1.01, allocations: 1.375 kB / 1.356 GB, free: 180 kB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.808e-05/1.01, allocations: 9.141 kB / 1.356 GB, free: 180 kB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.538e-06/1.01, allocations: 6.953 kB / 1.356 GB, free: 176 kB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000365/1.011, allocations: 66.88 kB / 1.356 GB, free: 160 kB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.856e-05/1.011, allocations: 15.44 kB / 1.356 GB, free: 160 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.0001206/1.011, allocations: 147.6 kB / 1.357 GB, free: 20 kB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.545e-05/1.011, allocations: 19.27 kB / 1.357 GB, free: 8 kB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.679e-05/1.011, allocations: 19 kB / 1.357 GB, free: 15.99 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/1.011, allocations: 2.156 kB / 1.357 GB, free: 15.99 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/1.011, allocations: 4.75 kB / 1.357 GB, free: 15.98 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.9e-06/1.011, allocations: 1.984 kB / 1.357 GB, free: 15.98 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005676/1.011, allocations: 475.7 kB / 1.357 GB, free: 15.61 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/1.011, allocations: 1.656 kB / 1.357 GB, free: 15.61 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.209e-05/1.011, allocations: 6.078 kB / 1.357 GB, free: 15.61 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/1.011, allocations: 0 / 1.357 GB, free: 15.61 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.617e-05/1.011, allocations: 7.812 kB / 1.357 GB, free: 15.61 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.998e-06/1.011, allocations: 7.938 kB / 1.357 GB, free: 15.6 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/1.011, allocations: 1.188 kB / 1.357 GB, free: 15.6 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002801/1.012, allocations: 241.8 kB / 1.357 GB, free: 15.43 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 6.777e-05/1.012, allocations: 98.89 kB / 1.357 GB, free: 15.32 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.008e-05/1.012, allocations: 6.031 kB / 1.357 GB, free: 15.31 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.033e-05/1.012, allocations: 3.641 kB / 1.357 GB, free: 15.31 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.979e-05/1.012, allocations: 14.14 kB / 1.357 GB, free: 15.31 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.098e-05/1.012, allocations: 4.672 kB / 1.357 GB, free: 15.31 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.000132/1.012, allocations: 139.7 kB / 1.358 GB, free: 15.21 MB / 1.061 GB Notification: Performance of sort global known variables: time 1e-07/1.012, allocations: 7.938 kB / 1.358 GB, free: 15.2 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003172/1.012, allocations: 48.34 kB / 1.358 GB, free: 15.2 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.0001649/1.013, allocations: 111.8 kB / 1.358 GB, free: 15.11 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004685/1.013, allocations: 280.5 kB / 1.358 GB, free: 14.92 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/1.013, allocations: 0 / 1.358 GB, free: 14.92 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 9.895e-05/1.013, allocations: 50.83 kB / 1.358 GB, free: 14.91 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003601/1.013, allocations: 34.05 kB / 1.358 GB, free: 14.89 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005801/1.014, allocations: 332.4 kB / 1.358 GB, free: 14.65 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003849/1.014, allocations: 0.723 MB / 1.359 GB, free: 13.95 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.701e-05/1.014, allocations: 18.41 kB / 1.359 GB, free: 13.94 MB / 1.061 GB Notification: Performance of SimCode: time 3.2e-07/1.014, allocations: 0 / 1.359 GB, free: 13.94 MB / 1.061 GB Notification: Performance of Templates: time 0.005266/1.02, allocations: 2.487 MB / 1.362 GB, free: 13.7 MB / 1.061 GB " [Timeout remaining time 299] 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: 12.230602593001095]