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.001855/0.001855, allocations: 105.1 kB / 18.99 MB, free: 2.766 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.001991/0.001991, allocations: 221.5 kB / 22.29 MB, free: 5.148 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.624/1.624, allocations: 230.6 MB / 256.1 MB, free: 7.777 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.631/3.631, allocations: 0.5096 GB / 0.8148 GB, free: 18.38 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.002137/0.002137, allocations: 62.44 kB / 1.184 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4833/0.4854, allocations: 181.4 MB / 1.362 GB, free: 15.57 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.003131/0.4886, allocations: 0.9879 MB / 1.362 GB, free: 14.58 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002527/0.4911, allocations: 1.335 MB / 1.364 GB, free: 13.23 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002148/0.4913, allocations: 11.94 kB / 1.364 GB, free: 13.22 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001685/0.4915, allocations: 15.81 kB / 1.364 GB, free: 13.2 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001256/0.4916, allocations: 27.73 kB / 1.364 GB, free: 13.18 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009873/0.4926, allocations: 275.6 kB / 1.364 GB, free: 12.91 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0005009/0.4931, allocations: 303.5 kB / 1.364 GB, free: 12.62 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002072/0.4933, allocations: 64.67 kB / 1.364 GB, free: 12.55 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001463/0.4934, allocations: 119.6 kB / 1.365 GB, free: 12.44 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002394/0.4937, allocations: 95.56 kB / 1.365 GB, free: 12.34 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 5.877e-05/0.4937, allocations: 32 kB / 1.365 GB, free: 12.31 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00011/0.4939, allocations: 47.98 kB / 1.365 GB, free: 12.27 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 5.464e-05/0.4939, allocations: 39.91 kB / 1.365 GB, free: 12.23 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001698/0.4941, allocations: 99.62 kB / 1.365 GB, free: 12.13 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0004983/0.4946, allocations: 346.7 kB / 1.365 GB, free: 11.79 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.4946, allocations: 0 / 1.365 GB, free: 11.79 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.914e-06/0.4946, allocations: 4 kB / 1.365 GB, free: 11.79 MB / 1.061 GB Notification: Performance of Transformations before backend: time 7.374e-06/0.4946, allocations: 0 / 1.365 GB, free: 11.79 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.0008611/0.4955, allocations: 468.9 kB / 1.366 GB, free: 11.28 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.4955, allocations: 8.031 kB / 1.366 GB, free: 11.27 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.423e-05/0.4956, allocations: 28.8 kB / 1.366 GB, free: 11.25 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004234/0.496, allocations: 199 kB / 1.366 GB, free: 11.02 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.08e-05/0.496, allocations: 16.36 kB / 1.366 GB, free: 11.01 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.473e-05/0.4961, allocations: 20.38 kB / 1.366 GB, free: 10.99 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003068/0.4964, allocations: 122.2 kB / 1.366 GB, free: 10.86 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.49e-05/0.4964, allocations: 7.875 kB / 1.366 GB, free: 10.86 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.987e-05/0.4964, allocations: 4 kB / 1.366 GB, free: 10.85 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.586e-06/0.4964, allocations: 4 kB / 1.366 GB, free: 10.85 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001604/0.4966, allocations: 76.47 kB / 1.366 GB, free: 10.77 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009581/0.4976, allocations: 463.9 kB / 1.367 GB, free: 10.29 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002098/0.4978, allocations: 86.53 kB / 1.367 GB, free: 10.2 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.51e-05/0.4978, allocations: 28.98 kB / 1.367 GB, free: 10.16 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.919e-05/0.4979, allocations: 7.938 kB / 1.367 GB, free: 10.16 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002337/0.4981, allocations: 115.5 kB / 1.367 GB, free: 10.03 MB / 1.061 GB Notification: Performance of pre-optimization done (n=15): time 1.523e-06/0.4981, allocations: 0 / 1.367 GB, free: 10.03 MB / 1.061 GB Notification: Performance of matching and sorting (n=15): time 0.0004009/0.4985, allocations: 187.9 kB / 1.367 GB, free: 9.844 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.79e-05/0.4986, allocations: 55.41 kB / 1.367 GB, free: 9.777 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001699/0.4987, allocations: 167.2 kB / 1.367 GB, free: 9.602 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 5.754e-05/0.4988, allocations: 41.69 kB / 1.367 GB, free: 9.555 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001078/0.4989, allocations: 128.4 kB / 1.367 GB, free: 9.426 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.932e-05/0.4989, allocations: 31.8 kB / 1.367 GB, free: 9.395 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001265/0.4991, allocations: 61.69 kB / 1.367 GB, free: 9.328 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.00017/0.4992, allocations: 330.8 kB / 1.368 GB, free: 8.996 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002403/0.4995, allocations: 147.4 kB / 1.368 GB, free: 8.84 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003151/0.4998, allocations: 198.5 kB / 1.368 GB, free: 8.617 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000431/0.5002, allocations: 214.1 kB / 1.368 GB, free: 8.379 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.614e-06/0.5002, allocations: 3.938 kB / 1.368 GB, free: 8.375 MB / 1.061 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006497/0.5009, allocations: 410.1 kB / 1.369 GB, free: 7.945 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 7.369e-05/0.5009, allocations: 67.39 kB / 1.369 GB, free: 7.867 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.501, allocations: 160 / 1.369 GB, free: 7.867 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.974e-05/0.501, allocations: 8 kB / 1.369 GB, free: 7.859 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.009e-05/0.5011, allocations: 19.92 kB / 1.369 GB, free: 7.84 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.163e-06/0.5011, allocations: 0 / 1.369 GB, free: 7.84 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003522/0.5014, allocations: 59.83 kB / 1.369 GB, free: 7.781 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.832e-05/0.5015, allocations: 19.98 kB / 1.369 GB, free: 7.762 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.0001627/0.5016, allocations: 146.4 kB / 1.369 GB, free: 7.609 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.714e-05/0.5016, allocations: 15.84 kB / 1.369 GB, free: 7.594 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.749e-05/0.5017, allocations: 21.45 kB / 1.369 GB, free: 7.57 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.5017, allocations: 0 / 1.369 GB, free: 7.57 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/0.5017, allocations: 4 kB / 1.369 GB, free: 7.566 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.5017, allocations: 0 / 1.369 GB, free: 7.566 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006114/0.5023, allocations: 394.2 kB / 1.369 GB, free: 7.145 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.5023, allocations: 3.938 kB / 1.369 GB, free: 7.141 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.018e-05/0.5023, allocations: 4 kB / 1.369 GB, free: 7.137 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.679e-06/0.5024, allocations: 8 kB / 1.369 GB, free: 7.129 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.587e-05/0.5024, allocations: 7.984 kB / 1.369 GB, free: 7.121 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.5024, allocations: 0 / 1.369 GB, free: 7.121 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.5024, allocations: 0 / 1.369 GB, free: 7.121 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004128/0.5028, allocations: 239.8 kB / 1.37 GB, free: 6.871 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.773e-05/0.5028, allocations: 11.89 kB / 1.37 GB, free: 6.859 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.165e-05/0.5029, allocations: 8 kB / 1.37 GB, free: 6.852 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001243/0.503, allocations: 0 / 1.37 GB, free: 6.852 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.913e-05/0.5031, allocations: 19.91 kB / 1.37 GB, free: 6.832 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.855e-05/0.5031, allocations: 7.984 kB / 1.37 GB, free: 6.824 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001542/0.5032, allocations: 120.9 kB / 1.37 GB, free: 6.707 MB / 1.061 GB Notification: Performance of sort global known variables: time 2e-07/0.5032, allocations: 8 kB / 1.37 GB, free: 6.699 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0005673/0.5038, allocations: 55.89 kB / 1.37 GB, free: 6.645 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.0002778/0.5041, allocations: 107.2 kB / 1.37 GB, free: 6.531 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0007782/0.5049, allocations: 345 kB / 1.37 GB, free: 6.16 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.5049, allocations: 0 / 1.37 GB, free: 6.16 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001443/0.505, allocations: 55.84 kB / 1.37 GB, free: 6.105 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005636/0.5056, allocations: 48.14 kB / 1.37 GB, free: 6.059 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008797/0.5065, allocations: 299.7 kB / 1.371 GB, free: 5.738 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001775/0.5066, allocations: 108 kB / 1.371 GB, free: 5.617 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 8.156e-05/0.5067, allocations: 17.42 kB / 1.371 GB, free: 5.598 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.292e-05/0.5068, allocations: 19.42 kB / 1.371 GB, free: 5.578 MB / 1.061 GB Notification: Performance of SimCode: time 7.11e-07/0.5068, allocations: 0 / 1.371 GB, free: 5.578 MB / 1.061 GB Notification: Performance of Templates: time 0.008003/0.5148, allocations: 3.005 MB / 1.374 GB, free: 2.668 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/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: 10.063206263817847]