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.001975/0.001975, allocations: 109.4 kB / 18.94 MB, free: 2.949 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.00273/0.00273, allocations: 219 kB / 22.26 MB, free: 5.125 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.589/1.589, allocations: 230.6 MB / 256 MB, free: 7.996 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.504/3.504, allocations: 0.5049 GB / 0.81 GB, free: 22.02 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.002088/0.002088, allocations: 75.31 kB / 1.177 GB, free: 16.95 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.461/0.4631, allocations: 180.2 MB / 1.353 GB, free: 7.941 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.00299/0.4661, allocations: 1.061 MB / 1.354 GB, free: 6.883 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.002417/0.4685, allocations: 1.358 MB / 1.356 GB, free: 5.512 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002331/0.4687, allocations: 4 kB / 1.356 GB, free: 5.508 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001969/0.4689, allocations: 23.73 kB / 1.356 GB, free: 5.484 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001452/0.469, allocations: 35.72 kB / 1.356 GB, free: 5.449 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009547/0.47, allocations: 264.5 kB / 1.356 GB, free: 5.195 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0005331/0.4705, allocations: 295.5 kB / 1.356 GB, free: 4.906 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002366/0.4708, allocations: 74.72 kB / 1.356 GB, free: 4.832 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002263/0.471, allocations: 111.7 kB / 1.356 GB, free: 4.723 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002383/0.4712, allocations: 115.5 kB / 1.357 GB, free: 4.609 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 7.349e-05/0.4713, allocations: 39.98 kB / 1.357 GB, free: 4.57 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001342/0.4714, allocations: 44 kB / 1.357 GB, free: 4.527 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 5.049e-05/0.4715, allocations: 39.91 kB / 1.357 GB, free: 4.488 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001568/0.4717, allocations: 115.5 kB / 1.357 GB, free: 4.375 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0005599/0.4722, allocations: 342.8 kB / 1.357 GB, free: 4.039 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.4722, allocations: 0 / 1.357 GB, free: 4.039 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.743e-06/0.4722, allocations: 0 / 1.357 GB, free: 4.039 MB / 1.045 GB Notification: Performance of Transformations before backend: time 2.216e-05/0.4722, allocations: 0 / 1.357 GB, free: 4.039 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.0009944/0.4732, allocations: 476.9 kB / 1.358 GB, free: 3.527 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/0.4733, allocations: 8.031 kB / 1.358 GB, free: 3.52 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001056/0.4734, allocations: 28.8 kB / 1.358 GB, free: 3.492 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004554/0.4738, allocations: 196.3 kB / 1.358 GB, free: 3.273 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.871e-05/0.4739, allocations: 16.36 kB / 1.358 GB, free: 3.258 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.173e-05/0.4739, allocations: 24.31 kB / 1.358 GB, free: 3.234 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002765/0.4742, allocations: 122.2 kB / 1.358 GB, free: 3.109 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.447e-05/0.4742, allocations: 7.875 kB / 1.358 GB, free: 3.102 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.4742, allocations: 4 kB / 1.358 GB, free: 3.098 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.4742, allocations: 7.938 kB / 1.358 GB, free: 3.09 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001527/0.4744, allocations: 67.97 kB / 1.358 GB, free: 3.023 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001026/0.4754, allocations: 0.5461 MB / 1.359 GB, free: 2.434 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002231/0.4756, allocations: 94.47 kB / 1.359 GB, free: 2.332 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.692e-05/0.4757, allocations: 32.98 kB / 1.359 GB, free: 2.297 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.926e-05/0.4757, allocations: 8 kB / 1.359 GB, free: 2.289 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002069/0.4759, allocations: 113.4 kB / 1.359 GB, free: 2.168 MB / 1.045 GB Notification: Performance of pre-optimization done (n=15): time 1.492e-06/0.4759, allocations: 0 / 1.359 GB, free: 2.168 MB / 1.045 GB Notification: Performance of matching and sorting (n=15): time 0.0004084/0.4764, allocations: 181.5 kB / 1.359 GB, free: 1.984 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.925e-05/0.4764, allocations: 55.41 kB / 1.359 GB, free: 1.918 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002133/0.4766, allocations: 186.7 kB / 1.359 GB, free: 1.723 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 4.471e-05/0.4767, allocations: 37.7 kB / 1.359 GB, free: 1.68 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001147/0.4768, allocations: 136.4 kB / 1.359 GB, free: 1.543 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.869e-05/0.4768, allocations: 23.81 kB / 1.359 GB, free: 1.52 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001292/0.4769, allocations: 69.67 kB / 1.359 GB, free: 1.445 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001635/0.4771, allocations: 326.8 kB / 1.36 GB, free: 1.117 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001928/0.4773, allocations: 83.95 kB / 1.36 GB, free: 1.035 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002189/0.4775, allocations: 133 kB / 1.36 GB, free: 0.8867 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000286/0.4778, allocations: 200.5 kB / 1.36 GB, free: 0.6602 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.4778, allocations: 3.938 kB / 1.36 GB, free: 0.6562 MB / 1.045 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006107/0.4784, allocations: 354.5 kB / 1.361 GB, free: 300 kB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 6.858e-05/0.4785, allocations: 75.39 kB / 1.361 GB, free: 212 kB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.4785, allocations: 0 / 1.361 GB, free: 212 kB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.07e-05/0.4785, allocations: 4 kB / 1.361 GB, free: 208 kB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.669e-05/0.4786, allocations: 15.92 kB / 1.361 GB, free: 192 kB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.644e-06/0.4786, allocations: 0 / 1.361 GB, free: 192 kB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003539/0.479, allocations: 67.98 kB / 1.361 GB, free: 124 kB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.792e-05/0.479, allocations: 15.98 kB / 1.361 GB, free: 108 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.0001791/0.4792, allocations: 149.6 kB / 1.361 GB, free: 15.95 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.939e-05/0.4792, allocations: 19.89 kB / 1.361 GB, free: 15.93 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.423e-05/0.4792, allocations: 17.45 kB / 1.361 GB, free: 15.91 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.225e-05/0.4793, allocations: 4 kB / 1.361 GB, free: 15.91 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.4793, allocations: 3.938 kB / 1.361 GB, free: 15.9 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.4793, allocations: 4 kB / 1.361 GB, free: 15.9 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005673/0.4798, allocations: 447.8 kB / 1.361 GB, free: 15.41 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.4798, allocations: 0 / 1.361 GB, free: 15.41 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.694e-05/0.4799, allocations: 7.938 kB / 1.361 GB, free: 15.41 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.953e-06/0.4799, allocations: 0 / 1.361 GB, free: 15.41 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.685e-05/0.4799, allocations: 15.92 kB / 1.361 GB, free: 15.39 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.4799, allocations: 0 / 1.361 GB, free: 15.39 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.4799, allocations: 0 / 1.361 GB, free: 15.39 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002843/0.4802, allocations: 239.8 kB / 1.362 GB, free: 15.14 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.115e-05/0.4802, allocations: 23.8 kB / 1.362 GB, free: 15.12 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.702e-05/0.4802, allocations: 4 kB / 1.362 GB, free: 15.11 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.178e-05/0.4803, allocations: 11.98 kB / 1.362 GB, free: 15.1 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.877e-05/0.4804, allocations: 15.92 kB / 1.362 GB, free: 15.09 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.088e-05/0.4804, allocations: 4 kB / 1.362 GB, free: 15.08 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001306/0.4805, allocations: 144.7 kB / 1.362 GB, free: 14.94 MB / 1.061 GB Notification: Performance of sort global known variables: time 6e-08/0.4805, allocations: 0 / 1.362 GB, free: 14.94 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003152/0.4808, allocations: 52 kB / 1.362 GB, free: 14.89 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.0001937/0.481, allocations: 112.2 kB / 1.362 GB, free: 14.77 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004895/0.4815, allocations: 280.9 kB / 1.362 GB, free: 14.48 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.4815, allocations: 0 / 1.362 GB, free: 14.48 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 9.934e-05/0.4816, allocations: 49.75 kB / 1.362 GB, free: 14.43 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003805/0.482, allocations: 32.3 kB / 1.362 GB, free: 14.4 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006597/0.4827, allocations: 295.8 kB / 1.363 GB, free: 14.08 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004037/0.4831, allocations: 0.728 MB / 1.363 GB, free: 13.33 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 6.194e-05/0.4831, allocations: 17.48 kB / 1.363 GB, free: 13.31 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.171e-05/0.4832, allocations: 15.44 kB / 1.363 GB, free: 13.3 MB / 1.061 GB Notification: Performance of SimCode: time 3.11e-07/0.4832, allocations: 0 / 1.363 GB, free: 13.3 MB / 1.061 GB Notification: Performance of Templates: time 0.007242/0.4904, allocations: 2.795 MB / 1.366 GB, free: 10.57 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.999977568630129]