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.001254/0.001254, allocations: 110.2 kB / 19.69 MB, free: 2.254 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.001415/0.001415, allocations: 210.6 kB / 23.01 MB, free: 4.57 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.433/1.433, allocations: 230.6 MB / 256.8 MB, free: 8.02 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.224/3.224, allocations: 0.49 GB / 0.7958 GB, free: 33.37 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.002159/0.002159, allocations: 66.06 kB / 1.155 GB, free: 25.47 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3089/0.3111, allocations: 176.1 MB / 1.327 GB, free: 1.48 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.00233/0.3134, allocations: 1.053 MB / 1.328 GB, free: 444 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001789/0.3152, allocations: 1.369 MB / 1.33 GB, free: 15.05 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001089/0.3153, allocations: 4 kB / 1.33 GB, free: 15.05 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001247/0.3154, allocations: 19.73 kB / 1.33 GB, free: 15.03 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.354e-05/0.3155, allocations: 27.73 kB / 1.33 GB, free: 15 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006889/0.3162, allocations: 266.7 kB / 1.33 GB, free: 14.75 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003642/0.3166, allocations: 319.4 kB / 1.33 GB, free: 14.43 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001545/0.3167, allocations: 64.67 kB / 1.33 GB, free: 14.37 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001305/0.3168, allocations: 115.7 kB / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001838/0.317, allocations: 115.5 kB / 1.33 GB, free: 14.14 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.681e-05/0.3171, allocations: 28 kB / 1.33 GB, free: 14.11 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 9.502e-05/0.3172, allocations: 51.92 kB / 1.33 GB, free: 14.06 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 4.17e-05/0.3172, allocations: 31.91 kB / 1.33 GB, free: 14.03 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001294/0.3173, allocations: 119.5 kB / 1.331 GB, free: 13.91 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003925/0.3177, allocations: 346.8 kB / 1.331 GB, free: 13.57 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.3177, allocations: 0 / 1.331 GB, free: 13.57 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.293e-06/0.3177, allocations: 0 / 1.331 GB, free: 13.57 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.431e-06/0.3177, allocations: 0 / 1.331 GB, free: 13.57 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.0007/0.3184, allocations: 468.9 kB / 1.331 GB, free: 13.07 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.385e-05/0.3185, allocations: 12.03 kB / 1.331 GB, free: 13.06 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.907e-05/0.3185, allocations: 24.78 kB / 1.331 GB, free: 13.04 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000311/0.3189, allocations: 195.8 kB / 1.332 GB, free: 12.82 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.854e-05/0.3189, allocations: 20.36 kB / 1.332 GB, free: 12.8 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.695e-05/0.3189, allocations: 20.38 kB / 1.332 GB, free: 12.78 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000219/0.3192, allocations: 114.2 kB / 1.332 GB, free: 12.66 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.3192, allocations: 3.938 kB / 1.332 GB, free: 12.66 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.042e-05/0.3192, allocations: 12 kB / 1.332 GB, free: 12.64 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.3192, allocations: 4 kB / 1.332 GB, free: 12.64 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000139/0.3193, allocations: 67.97 kB / 1.332 GB, free: 12.57 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000836/0.3202, allocations: 0.5576 MB / 1.332 GB, free: 11.97 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001954/0.3204, allocations: 98.59 kB / 1.332 GB, free: 11.87 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.228e-05/0.3204, allocations: 28.86 kB / 1.333 GB, free: 11.84 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.971e-05/0.3204, allocations: 0 / 1.333 GB, free: 11.84 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001868/0.3206, allocations: 115.3 kB / 1.333 GB, free: 11.71 MB / 1.029 GB Notification: Performance of pre-optimization done (n=15): time 1.263e-06/0.3206, allocations: 0 / 1.333 GB, free: 11.71 MB / 1.029 GB Notification: Performance of matching and sorting (n=15): time 0.0003745/0.321, allocations: 184.4 kB / 1.333 GB, free: 11.53 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.285e-05/0.3211, allocations: 59.41 kB / 1.333 GB, free: 11.46 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000187/0.3212, allocations: 187.2 kB / 1.333 GB, free: 11.26 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.566e-05/0.3213, allocations: 37.7 kB / 1.333 GB, free: 11.22 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.958e-05/0.3214, allocations: 128.4 kB / 1.333 GB, free: 11.09 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.827e-05/0.3214, allocations: 35.77 kB / 1.333 GB, free: 11.05 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001199/0.3215, allocations: 65.67 kB / 1.333 GB, free: 10.98 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001403/0.3217, allocations: 322.8 kB / 1.334 GB, free: 10.66 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001777/0.3219, allocations: 87.95 kB / 1.334 GB, free: 10.57 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002117/0.3221, allocations: 136.4 kB / 1.334 GB, free: 10.43 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002808/0.3224, allocations: 218.3 kB / 1.334 GB, free: 10.18 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.3224, allocations: 3.938 kB / 1.334 GB, free: 10.18 MB / 1.029 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005584/0.3229, allocations: 336.7 kB / 1.334 GB, free: 9.832 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 6.161e-05/0.323, allocations: 67.39 kB / 1.334 GB, free: 9.754 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.323, allocations: 4 kB / 1.334 GB, free: 9.75 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.323, allocations: 0 / 1.334 GB, free: 9.75 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.996e-05/0.3231, allocations: 15.98 kB / 1.334 GB, free: 9.734 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.3231, allocations: 7.938 kB / 1.334 GB, free: 9.727 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003339/0.3234, allocations: 59.98 kB / 1.334 GB, free: 9.668 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.465e-05/0.3235, allocations: 19.98 kB / 1.335 GB, free: 9.648 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.0001403/0.3236, allocations: 141.7 kB / 1.335 GB, free: 9.5 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.706e-05/0.3236, allocations: 23.8 kB / 1.335 GB, free: 9.477 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.854e-05/0.3237, allocations: 25.45 kB / 1.335 GB, free: 9.441 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.3237, allocations: 0 / 1.335 GB, free: 9.441 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.3237, allocations: 0 / 1.335 GB, free: 9.441 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.3237, allocations: 0 / 1.335 GB, free: 9.441 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005086/0.3242, allocations: 449.6 kB / 1.335 GB, free: 8.953 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.3242, allocations: 4 kB / 1.335 GB, free: 8.949 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.486e-05/0.3242, allocations: 11.94 kB / 1.335 GB, free: 8.938 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.3242, allocations: 0 / 1.335 GB, free: 8.938 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.557e-05/0.3242, allocations: 3.984 kB / 1.335 GB, free: 8.934 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.247e-06/0.3242, allocations: 8 kB / 1.335 GB, free: 8.926 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.3242, allocations: 0 / 1.335 GB, free: 8.926 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002565/0.3245, allocations: 235.8 kB / 1.335 GB, free: 8.68 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.744e-05/0.3245, allocations: 23.78 kB / 1.335 GB, free: 8.656 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.438e-05/0.3246, allocations: 4 kB / 1.335 GB, free: 8.652 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.056e-05/0.3246, allocations: 7.984 kB / 1.335 GB, free: 8.645 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.727e-05/0.3247, allocations: 15.97 kB / 1.335 GB, free: 8.629 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.385e-05/0.3247, allocations: 8 kB / 1.335 GB, free: 8.621 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001133/0.3248, allocations: 144.2 kB / 1.336 GB, free: 8.48 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3248, allocations: 0 / 1.336 GB, free: 8.48 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003038/0.3251, allocations: 47.95 kB / 1.336 GB, free: 8.434 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.0001534/0.3253, allocations: 119.1 kB / 1.336 GB, free: 8.309 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004336/0.3257, allocations: 274.7 kB / 1.336 GB, free: 8.016 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.3257, allocations: 4.312 kB / 1.336 GB, free: 8.012 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 9.876e-05/0.3258, allocations: 55.14 kB / 1.336 GB, free: 7.961 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000341/0.3262, allocations: 31.97 kB / 1.336 GB, free: 7.93 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005636/0.3267, allocations: 323.3 kB / 1.336 GB, free: 7.586 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000335/0.3271, allocations: 0.7242 MB / 1.337 GB, free: 6.836 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.855e-05/0.3271, allocations: 23.42 kB / 1.337 GB, free: 6.812 MB / 1.029 GB Notification: Performance of SimCode: time 3.3e-07/0.3271, allocations: 0 / 1.337 GB, free: 6.812 MB / 1.029 GB Notification: Performance of Templates: time 0.004463/0.3316, allocations: 2.499 MB / 1.34 GB, free: 4.336 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: 11.082634719990892]