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.00129/0.00129, allocations: 104.3 kB / 19.7 MB, free: 2.008 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.001386/0.001386, allocations: 206.6 kB / 22.99 MB, free: 4.414 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.449/1.449, allocations: 230.6 MB / 256.8 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.202/3.202, allocations: 0.49 GB / 0.7959 GB, free: 35.42 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.002087/0.002087, allocations: 72.64 kB / 1.155 GB, free: 25.23 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3234/0.3254, allocations: 176.1 MB / 1.327 GB, free: 0.9922 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.002493/0.3279, allocations: 1.007 MB / 1.328 GB, free: 15.99 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001864/0.3298, allocations: 1.338 MB / 1.329 GB, free: 14.64 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001192/0.3299, allocations: 0 / 1.329 GB, free: 14.64 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001302/0.3301, allocations: 27.73 kB / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.614e-05/0.3301, allocations: 31.72 kB / 1.329 GB, free: 14.58 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007162/0.3308, allocations: 270.6 kB / 1.33 GB, free: 14.32 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003657/0.3312, allocations: 299.5 kB / 1.33 GB, free: 14.03 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001739/0.3314, allocations: 72.61 kB / 1.33 GB, free: 13.96 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000141/0.3315, allocations: 115.7 kB / 1.33 GB, free: 13.84 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001769/0.3317, allocations: 103.6 kB / 1.33 GB, free: 13.74 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.44e-05/0.3318, allocations: 32 kB / 1.33 GB, free: 13.71 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 9.132e-05/0.3319, allocations: 43.98 kB / 1.33 GB, free: 13.67 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 5.126e-05/0.3319, allocations: 47.78 kB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001269/0.332, allocations: 103.6 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004107/0.3324, allocations: 346.8 kB / 1.331 GB, free: 13.18 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.3324, allocations: 0 / 1.331 GB, free: 13.18 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.443e-06/0.3324, allocations: 0 / 1.331 GB, free: 13.18 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.744e-06/0.3325, allocations: 0 / 1.331 GB, free: 13.18 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.0007745/0.3332, allocations: 468.8 kB / 1.331 GB, free: 12.68 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.454e-05/0.3333, allocations: 8.031 kB / 1.331 GB, free: 12.67 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.003e-05/0.3333, allocations: 24.84 kB / 1.331 GB, free: 12.64 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000368/0.3337, allocations: 191.8 kB / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.601e-05/0.3337, allocations: 16.36 kB / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.685e-05/0.3338, allocations: 24.38 kB / 1.331 GB, free: 12.39 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002331/0.334, allocations: 118.2 kB / 1.332 GB, free: 12.27 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.334, allocations: 3.938 kB / 1.332 GB, free: 12.27 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.832e-05/0.334, allocations: 8 kB / 1.332 GB, free: 12.26 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.3341, allocations: 0 / 1.332 GB, free: 12.26 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001536/0.3342, allocations: 71.97 kB / 1.332 GB, free: 12.19 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008187/0.335, allocations: 471.8 kB / 1.332 GB, free: 11.7 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001962/0.3352, allocations: 86.59 kB / 1.332 GB, free: 11.6 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.834e-05/0.3353, allocations: 45.05 kB / 1.332 GB, free: 11.55 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.42e-05/0.3353, allocations: 3.938 kB / 1.332 GB, free: 11.55 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002014/0.3355, allocations: 111.3 kB / 1.332 GB, free: 11.43 MB / 1.029 GB Notification: Performance of pre-optimization done (n=15): time 1.513e-06/0.3355, allocations: 0 / 1.332 GB, free: 11.43 MB / 1.029 GB Notification: Performance of matching and sorting (n=15): time 0.0003908/0.3359, allocations: 187.1 kB / 1.333 GB, free: 11.24 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.575e-05/0.336, allocations: 55.41 kB / 1.333 GB, free: 11.18 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001723/0.3361, allocations: 171.9 kB / 1.333 GB, free: 11 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 5.286e-05/0.3362, allocations: 41.69 kB / 1.333 GB, free: 10.95 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001119/0.3363, allocations: 128.5 kB / 1.333 GB, free: 10.82 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.794e-05/0.3363, allocations: 35.75 kB / 1.333 GB, free: 10.79 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001248/0.3365, allocations: 61.69 kB / 1.333 GB, free: 10.72 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001501/0.3366, allocations: 330.8 kB / 1.333 GB, free: 10.39 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002279/0.3368, allocations: 147.4 kB / 1.333 GB, free: 10.23 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002568/0.3371, allocations: 195.1 kB / 1.334 GB, free: 10.01 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002866/0.3374, allocations: 210.1 kB / 1.334 GB, free: 9.777 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.3374, allocations: 7.938 kB / 1.334 GB, free: 9.77 MB / 1.029 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006419/0.338, allocations: 408.1 kB / 1.334 GB, free: 9.34 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 6.284e-05/0.3381, allocations: 69.11 kB / 1.334 GB, free: 9.262 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.3381, allocations: 0 / 1.334 GB, free: 9.262 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.452e-05/0.3381, allocations: 4 kB / 1.334 GB, free: 9.258 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.412e-05/0.3382, allocations: 15.98 kB / 1.334 GB, free: 9.242 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.3382, allocations: 3.938 kB / 1.334 GB, free: 9.238 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003595/0.3385, allocations: 63.98 kB / 1.334 GB, free: 9.176 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.964e-05/0.3386, allocations: 19.98 kB / 1.334 GB, free: 9.156 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.0001627/0.3388, allocations: 142.2 kB / 1.335 GB, free: 9.008 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.711e-05/0.3388, allocations: 15.84 kB / 1.335 GB, free: 8.992 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.594e-05/0.3388, allocations: 21.45 kB / 1.335 GB, free: 8.965 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.304e-05/0.3388, allocations: 4 kB / 1.335 GB, free: 8.961 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.3389, allocations: 4 kB / 1.335 GB, free: 8.957 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.3389, allocations: 0 / 1.335 GB, free: 8.957 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000559/0.3394, allocations: 398.2 kB / 1.335 GB, free: 8.531 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.3394, allocations: 4 kB / 1.335 GB, free: 8.527 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.36e-05/0.3395, allocations: 4 kB / 1.335 GB, free: 8.523 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.973e-06/0.3395, allocations: 0 / 1.335 GB, free: 8.523 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.72e-05/0.3395, allocations: 7.984 kB / 1.335 GB, free: 8.516 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.3395, allocations: 4 kB / 1.335 GB, free: 8.512 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3395, allocations: 0 / 1.335 GB, free: 8.512 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003044/0.3398, allocations: 241.9 kB / 1.335 GB, free: 8.262 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.642e-05/0.3398, allocations: 15.84 kB / 1.335 GB, free: 8.246 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.084e-05/0.3398, allocations: 12 kB / 1.335 GB, free: 8.234 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.772e-05/0.3399, allocations: 0 / 1.335 GB, free: 8.234 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.588e-05/0.34, allocations: 23.91 kB / 1.335 GB, free: 8.211 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.19e-05/0.34, allocations: 4 kB / 1.335 GB, free: 8.207 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001143/0.3401, allocations: 120 kB / 1.335 GB, free: 8.09 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3401, allocations: 0 / 1.335 GB, free: 8.09 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003194/0.3404, allocations: 55.89 kB / 1.335 GB, free: 8.035 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.0002016/0.3406, allocations: 111.2 kB / 1.336 GB, free: 7.918 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005402/0.3412, allocations: 346 kB / 1.336 GB, free: 7.543 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3412, allocations: 0 / 1.336 GB, free: 7.543 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001063/0.3413, allocations: 55.92 kB / 1.336 GB, free: 7.488 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003725/0.3416, allocations: 27.91 kB / 1.336 GB, free: 7.461 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006387/0.3423, allocations: 317.8 kB / 1.336 GB, free: 7.117 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001193/0.3424, allocations: 108 kB / 1.336 GB, free: 6.996 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.906e-05/0.3425, allocations: 27.42 kB / 1.336 GB, free: 6.969 MB / 1.029 GB Notification: Performance of SimCode: time 3.41e-07/0.3425, allocations: 0 / 1.336 GB, free: 6.969 MB / 1.029 GB Notification: Performance of Templates: time 0.004869/0.3473, allocations: 2.486 MB / 1.339 GB, free: 4.508 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.295712677994743]