Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.002017/0.002017, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002742/0.002742, allocations: 213.1 kB / 22.25 MB, free: 4.859 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.551/1.551, allocations: 230.6 MB / 256 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.491/3.491, allocations: 0.4892 GB / 0.7943 GB, free: 35.47 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_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_12_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.002163/0.002163, allocations: 71.98 kB / 1.154 GB, free: 25.58 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.482/0.4842, allocations: 176.1 MB / 1.326 GB, free: 1.898 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.002922/0.4871, allocations: 1.009 MB / 1.327 GB, free: 0.8984 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002375/0.4895, allocations: 1.33 MB / 1.328 GB, free: 15.55 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002025/0.4897, allocations: 7.938 kB / 1.328 GB, free: 15.55 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.000159/0.4898, allocations: 11.81 kB / 1.328 GB, free: 15.54 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.000119/0.4899, allocations: 31.73 kB / 1.328 GB, free: 15.5 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008467/0.4908, allocations: 270.8 kB / 1.328 GB, free: 15.24 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0004634/0.4912, allocations: 299.5 kB / 1.328 GB, free: 14.95 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002019/0.4914, allocations: 60.67 kB / 1.328 GB, free: 14.89 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001911/0.4916, allocations: 123.6 kB / 1.329 GB, free: 14.77 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002028/0.4918, allocations: 87.64 kB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 6.714e-05/0.4919, allocations: 32 kB / 1.329 GB, free: 14.65 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001263/0.492, allocations: 47.97 kB / 1.329 GB, free: 14.6 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 5.336e-05/0.4921, allocations: 39.86 kB / 1.329 GB, free: 14.56 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001498/0.4922, allocations: 99.62 kB / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004992/0.4927, allocations: 347.5 kB / 1.329 GB, free: 14.12 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.4927, allocations: 0 / 1.329 GB, free: 14.12 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.503e-06/0.4927, allocations: 0 / 1.329 GB, free: 14.12 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.538e-05/0.4928, allocations: 3.938 kB / 1.329 GB, free: 14.12 MB / 1.029 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.0009733/0.4937, allocations: 464.9 kB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.535e-05/0.4938, allocations: 12.03 kB / 1.33 GB, free: 13.61 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001292/0.4939, allocations: 20.84 kB / 1.33 GB, free: 13.59 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000552/0.4945, allocations: 195.8 kB / 1.33 GB, free: 13.37 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.599e-05/0.4945, allocations: 20.36 kB / 1.33 GB, free: 13.35 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.828e-05/0.4946, allocations: 20.38 kB / 1.33 GB, free: 13.33 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002789/0.4948, allocations: 122.1 kB / 1.33 GB, free: 13.21 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/0.4949, allocations: 3.938 kB / 1.33 GB, free: 13.2 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.78e-05/0.4949, allocations: 4 kB / 1.33 GB, free: 13.2 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.646e-06/0.4949, allocations: 4 kB / 1.33 GB, free: 13.2 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001817/0.4951, allocations: 75.97 kB / 1.33 GB, free: 13.12 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00102/0.4961, allocations: 471.8 kB / 1.331 GB, free: 12.63 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002523/0.4963, allocations: 86.59 kB / 1.331 GB, free: 12.54 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.434e-05/0.4964, allocations: 36.98 kB / 1.331 GB, free: 12.5 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.561e-05/0.4964, allocations: 3.938 kB / 1.331 GB, free: 12.49 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002167/0.4967, allocations: 111.5 kB / 1.331 GB, free: 12.37 MB / 1.029 GB Notification: Performance of pre-optimization done (n=15): time 2.175e-06/0.4967, allocations: 0 / 1.331 GB, free: 12.37 MB / 1.029 GB Notification: Performance of matching and sorting (n=15): time 0.0004285/0.4971, allocations: 183.6 kB / 1.331 GB, free: 12.19 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.036e-05/0.4971, allocations: 59.34 kB / 1.331 GB, free: 12.12 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002234/0.4974, allocations: 179.2 kB / 1.331 GB, free: 11.93 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.682e-05/0.4974, allocations: 37.7 kB / 1.331 GB, free: 11.89 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001228/0.4975, allocations: 128.5 kB / 1.331 GB, free: 11.76 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 5.088e-05/0.4976, allocations: 31.75 kB / 1.331 GB, free: 11.73 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001261/0.4977, allocations: 65.69 kB / 1.331 GB, free: 11.66 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001719/0.4979, allocations: 330.8 kB / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002538/0.4981, allocations: 147.3 kB / 1.332 GB, free: 11.17 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002753/0.4984, allocations: 194.9 kB / 1.332 GB, free: 10.95 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003232/0.4987, allocations: 214.2 kB / 1.332 GB, free: 10.71 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.4987, allocations: 0 / 1.332 GB, free: 10.71 MB / 1.029 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0007124/0.4995, allocations: 405.6 kB / 1.333 GB, free: 10.29 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 8.547e-05/0.4995, allocations: 71.39 kB / 1.333 GB, free: 10.2 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.146e-05/0.4995, allocations: 4 kB / 1.333 GB, free: 10.2 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.211e-05/0.4996, allocations: 0 / 1.333 GB, free: 10.2 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.903e-05/0.4996, allocations: 19.86 kB / 1.333 GB, free: 10.18 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.309e-05/0.4997, allocations: 4 kB / 1.333 GB, free: 10.18 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003565/0.5, allocations: 63.98 kB / 1.333 GB, free: 10.11 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.029e-05/0.5001, allocations: 15.98 kB / 1.333 GB, free: 10.1 MB / 1.029 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.0001844/0.5002, allocations: 142.2 kB / 1.333 GB, free: 9.949 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.469e-05/0.5003, allocations: 19.84 kB / 1.333 GB, free: 9.93 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.515e-05/0.5003, allocations: 21.45 kB / 1.333 GB, free: 9.902 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.337e-06/0.5003, allocations: 7.984 kB / 1.333 GB, free: 9.895 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.5003, allocations: 0 / 1.333 GB, free: 9.895 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.5004, allocations: 0 / 1.333 GB, free: 9.895 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006112/0.501, allocations: 406.2 kB / 1.333 GB, free: 9.461 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.501, allocations: 0 / 1.333 GB, free: 9.461 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.818e-05/0.501, allocations: 4 kB / 1.333 GB, free: 9.457 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.501, allocations: 0 / 1.333 GB, free: 9.457 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.612e-05/0.501, allocations: 3.984 kB / 1.333 GB, free: 9.453 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.501, allocations: 4 kB / 1.333 GB, free: 9.449 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.501, allocations: 0 / 1.333 GB, free: 9.449 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004706/0.5015, allocations: 235.9 kB / 1.334 GB, free: 9.203 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.084e-05/0.5015, allocations: 19.78 kB / 1.334 GB, free: 9.184 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.378e-05/0.5016, allocations: 8 kB / 1.334 GB, free: 9.176 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.938e-05/0.5017, allocations: 11.98 kB / 1.334 GB, free: 9.164 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.628e-05/0.5017, allocations: 11.98 kB / 1.334 GB, free: 9.152 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.41e-05/0.5018, allocations: 4 kB / 1.334 GB, free: 9.148 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001298/0.5019, allocations: 124 kB / 1.334 GB, free: 9.027 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.5019, allocations: 0 / 1.334 GB, free: 9.027 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003464/0.5022, allocations: 55.88 kB / 1.334 GB, free: 8.973 MB / 1.029 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.0002521/0.5025, allocations: 113.5 kB / 1.334 GB, free: 8.855 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0006578/0.5031, allocations: 348 kB / 1.334 GB, free: 8.48 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.5031, allocations: 0 / 1.334 GB, free: 8.48 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001154/0.5033, allocations: 51.97 kB / 1.334 GB, free: 8.43 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003861/0.5036, allocations: 36.2 kB / 1.334 GB, free: 8.395 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007767/0.5044, allocations: 291.7 kB / 1.335 GB, free: 8.082 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001664/0.5046, allocations: 108 kB / 1.335 GB, free: 7.957 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 6.34e-05/0.5047, allocations: 13.42 kB / 1.335 GB, free: 7.945 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.173e-05/0.5047, allocations: 27.42 kB / 1.335 GB, free: 7.918 MB / 1.029 GB Notification: Performance of SimCode: time 8.21e-07/0.5047, allocations: 3.938 kB / 1.335 GB, free: 7.914 MB / 1.029 GB Notification: Performance of Templates: time 0.009105/0.5138, allocations: 3.009 MB / 1.338 GB, free: 5.012 MB / 1.029 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.sim & ./Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_SamplerWithResetThreshold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.975154371932149]