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.00132/0.00132, allocations: 107.8 kB / 19.71 MB, free: 2.145 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.001484/0.001484, allocations: 209.3 kB / 23 MB, free: 4.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.502/1.502, allocations: 230.6 MB / 256.8 MB, free: 7.809 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.288/3.288, allocations: 0.49 GB / 0.7959 GB, free: 35.55 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.002055/0.002055, allocations: 71.88 kB / 1.155 GB, free: 25.24 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3874/0.3895, allocations: 176.1 MB / 1.327 GB, free: 1.004 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.00245/0.3919, allocations: 1.002 MB / 1.328 GB, free: 8 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002039/0.394, allocations: 1.334 MB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001543/0.3941, allocations: 4 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001418/0.3943, allocations: 23.73 kB / 1.329 GB, free: 14.63 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 8.077e-05/0.3943, allocations: 27.73 kB / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007109/0.3951, allocations: 269.9 kB / 1.33 GB, free: 14.35 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003658/0.3954, allocations: 303.4 kB / 1.33 GB, free: 14.05 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001961/0.3956, allocations: 70.39 kB / 1.33 GB, free: 13.98 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001352/0.3957, allocations: 115.7 kB / 1.33 GB, free: 13.87 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001675/0.3959, allocations: 103.6 kB / 1.33 GB, free: 13.77 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.402e-05/0.396, allocations: 28 kB / 1.33 GB, free: 13.74 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 9.901e-05/0.3961, allocations: 55.91 kB / 1.33 GB, free: 13.68 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 4.919e-05/0.3961, allocations: 39.86 kB / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001361/0.3963, allocations: 103.6 kB / 1.33 GB, free: 13.54 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003959/0.3966, allocations: 342.8 kB / 1.331 GB, free: 13.21 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.3967, allocations: 0 / 1.331 GB, free: 13.21 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.273e-06/0.3967, allocations: 0 / 1.331 GB, free: 13.21 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.05e-06/0.3967, allocations: 0 / 1.331 GB, free: 13.21 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.0007264/0.3974, allocations: 472.8 kB / 1.331 GB, free: 12.7 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.3974, allocations: 8.031 kB / 1.331 GB, free: 12.69 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.765e-05/0.3975, allocations: 24.84 kB / 1.331 GB, free: 12.67 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003568/0.3979, allocations: 200.7 kB / 1.331 GB, free: 12.45 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.458e-05/0.3979, allocations: 16.38 kB / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.516e-05/0.3979, allocations: 20.38 kB / 1.332 GB, free: 12.41 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002338/0.3982, allocations: 122.2 kB / 1.332 GB, free: 12.29 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.3982, allocations: 3.938 kB / 1.332 GB, free: 12.28 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.822e-05/0.3982, allocations: 7.984 kB / 1.332 GB, free: 12.27 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.3982, allocations: 4 kB / 1.332 GB, free: 12.27 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001474/0.3983, allocations: 67.97 kB / 1.332 GB, free: 12.2 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007796/0.3991, allocations: 471.8 kB / 1.332 GB, free: 11.71 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001884/0.3993, allocations: 94.66 kB / 1.332 GB, free: 11.61 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.334e-05/0.3994, allocations: 32.8 kB / 1.332 GB, free: 11.57 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.56e-05/0.3994, allocations: 11.92 kB / 1.332 GB, free: 11.56 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001944/0.3996, allocations: 107.3 kB / 1.332 GB, free: 11.45 MB / 1.029 GB Notification: Performance of pre-optimization done (n=15): time 1.593e-06/0.3996, allocations: 0 / 1.332 GB, free: 11.45 MB / 1.029 GB Notification: Performance of matching and sorting (n=15): time 0.0003869/0.4, allocations: 187.5 kB / 1.333 GB, free: 11.26 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.588e-05/0.4, allocations: 51.41 kB / 1.333 GB, free: 11.2 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001904/0.4002, allocations: 179.2 kB / 1.333 GB, free: 11.01 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.38e-05/0.4003, allocations: 33.7 kB / 1.333 GB, free: 10.97 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001167/0.4004, allocations: 132.5 kB / 1.333 GB, free: 10.84 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.542e-05/0.4004, allocations: 31.75 kB / 1.333 GB, free: 10.8 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001229/0.4006, allocations: 69.67 kB / 1.333 GB, free: 10.73 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001524/0.4007, allocations: 326.8 kB / 1.333 GB, free: 10.4 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002318/0.4009, allocations: 147.4 kB / 1.333 GB, free: 10.25 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002636/0.4012, allocations: 190.5 kB / 1.334 GB, free: 10.03 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002886/0.4015, allocations: 218.2 kB / 1.334 GB, free: 9.789 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.4015, allocations: 4 kB / 1.334 GB, free: 9.785 MB / 1.029 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006224/0.4021, allocations: 400.1 kB / 1.334 GB, free: 9.363 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 7.029e-05/0.4022, allocations: 68.8 kB / 1.334 GB, free: 9.285 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.4022, allocations: 4 kB / 1.334 GB, free: 9.281 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.465e-05/0.4022, allocations: 0 / 1.334 GB, free: 9.281 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.963e-05/0.4023, allocations: 15.98 kB / 1.334 GB, free: 9.266 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.334e-05/0.4023, allocations: 11.88 kB / 1.334 GB, free: 9.254 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003491/0.4026, allocations: 59.98 kB / 1.334 GB, free: 9.195 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.742e-05/0.4027, allocations: 19.98 kB / 1.334 GB, free: 9.176 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.0001415/0.4028, allocations: 138.3 kB / 1.335 GB, free: 9.031 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.696e-05/0.4028, allocations: 19.84 kB / 1.335 GB, free: 9.012 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.717e-05/0.4029, allocations: 21.45 kB / 1.335 GB, free: 8.984 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.4029, allocations: 0 / 1.335 GB, free: 8.984 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.4029, allocations: 4 kB / 1.335 GB, free: 8.98 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.046e-05/0.4029, allocations: 11.91 kB / 1.335 GB, free: 8.969 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.889e-05/0.403, allocations: 7.984 kB / 1.335 GB, free: 8.961 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.472e-05/0.403, allocations: 4 kB / 1.335 GB, free: 8.957 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.681e-05/0.4031, allocations: 15.92 kB / 1.335 GB, free: 8.941 MB / 1.029 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002957/0.4034, allocations: 220.8 kB / 1.335 GB, free: 8.719 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002968/0.4037, allocations: 312.9 kB / 1.335 GB, free: 8.398 MB / 1.029 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 8.329e-05/0.4037, allocations: 43.92 kB / 1.335 GB, free: 8.355 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001057/0.4038, allocations: 124 kB / 1.335 GB, free: 8.234 MB / 1.029 GB Notification: Performance of Backend: time 3.2e-07/0.4038, allocations: 4 kB / 1.335 GB, free: 8.23 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0007519/0.4046, allocations: 396.3 kB / 1.336 GB, free: 7.801 MB / 1.029 GB Notification: Performance of SimCode: time 0.000826/0.4054, allocations: 0.7277 MB / 1.336 GB, free: 7.023 MB / 1.029 GB Notification: Performance of Templates: time 0.007026/0.4124, allocations: 3.203 MB / 1.34 GB, free: 3.918 MB / 1.029 GB " [Timeout remaining time 300] 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/jenkins1/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.277304659997753]