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.001311/0.001311, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001482/0.001482, allocations: 215.3 kB / 22.99 MB, free: 4.945 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.444/1.444, allocations: 230.6 MB / 256.8 MB, free: 7.805 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.247/3.247, allocations: 0.5107 GB / 0.8166 GB, free: 17.85 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.002071/0.002071, allocations: 71.67 kB / 1.187 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3283/0.3303, allocations: 181.9 MB / 1.365 GB, free: 13.63 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.0024/0.3327, allocations: 1.002 MB / 1.366 GB, free: 12.63 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001825/0.3345, allocations: 1.331 MB / 1.367 GB, free: 11.29 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001058/0.3347, allocations: 7.938 kB / 1.367 GB, free: 11.28 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001174/0.3348, allocations: 19.73 kB / 1.367 GB, free: 11.26 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 7.568e-05/0.3348, allocations: 35.72 kB / 1.367 GB, free: 11.22 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006928/0.3355, allocations: 259.6 kB / 1.367 GB, free: 10.97 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0003712/0.3359, allocations: 303.5 kB / 1.368 GB, free: 10.68 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001579/0.3361, allocations: 60.67 kB / 1.368 GB, free: 10.62 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001286/0.3362, allocations: 115.7 kB / 1.368 GB, free: 10.5 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001627/0.3364, allocations: 99.61 kB / 1.368 GB, free: 10.41 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 5.017e-05/0.3364, allocations: 31.94 kB / 1.368 GB, free: 10.38 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 9.012e-05/0.3365, allocations: 48 kB / 1.368 GB, free: 10.33 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 4.58e-05/0.3365, allocations: 39.84 kB / 1.368 GB, free: 10.29 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001168/0.3367, allocations: 103.6 kB / 1.368 GB, free: 10.19 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0004005/0.3371, allocations: 346.7 kB / 1.368 GB, free: 9.848 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.3371, allocations: 0 / 1.368 GB, free: 9.848 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.653e-06/0.3371, allocations: 0 / 1.368 GB, free: 9.848 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.022e-05/0.3371, allocations: 0 / 1.368 GB, free: 9.848 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.0007196/0.3378, allocations: 464.9 kB / 1.369 GB, free: 9.348 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.451e-05/0.3378, allocations: 11.97 kB / 1.369 GB, free: 9.336 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.32e-05/0.3379, allocations: 28.78 kB / 1.369 GB, free: 9.309 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003484/0.3383, allocations: 199.1 kB / 1.369 GB, free: 9.086 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.45e-05/0.3383, allocations: 12.38 kB / 1.369 GB, free: 9.074 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.283e-05/0.3383, allocations: 28.36 kB / 1.369 GB, free: 9.047 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000226/0.3386, allocations: 118.7 kB / 1.369 GB, free: 8.926 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.3386, allocations: 3.938 kB / 1.369 GB, free: 8.922 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.501e-05/0.3386, allocations: 4 kB / 1.369 GB, free: 8.918 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.147e-05/0.3386, allocations: 4 kB / 1.369 GB, free: 8.914 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001487/0.3387, allocations: 75.97 kB / 1.369 GB, free: 8.84 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007674/0.3395, allocations: 467.9 kB / 1.37 GB, free: 8.352 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001906/0.3397, allocations: 86.52 kB / 1.37 GB, free: 8.258 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.483e-05/0.3398, allocations: 36.98 kB / 1.37 GB, free: 8.219 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.645e-05/0.3398, allocations: 7.938 kB / 1.37 GB, free: 8.211 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001855/0.34, allocations: 115.3 kB / 1.37 GB, free: 8.086 MB / 1.061 GB Notification: Performance of pre-optimization done (n=15): time 1.834e-06/0.34, allocations: 0 / 1.37 GB, free: 8.086 MB / 1.061 GB Notification: Performance of matching and sorting (n=15): time 0.0003659/0.3403, allocations: 177.7 kB / 1.37 GB, free: 7.906 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.389e-05/0.3404, allocations: 55.39 kB / 1.37 GB, free: 7.84 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000167/0.3406, allocations: 175.2 kB / 1.37 GB, free: 7.656 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 4.361e-05/0.3406, allocations: 33.7 kB / 1.37 GB, free: 7.617 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001056/0.3407, allocations: 132.4 kB / 1.37 GB, free: 7.484 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.815e-05/0.3407, allocations: 35.78 kB / 1.37 GB, free: 7.449 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001113/0.3409, allocations: 61.69 kB / 1.371 GB, free: 7.383 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001459/0.341, allocations: 326.8 kB / 1.371 GB, free: 7.055 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002308/0.3412, allocations: 151.3 kB / 1.371 GB, free: 6.895 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002555/0.3415, allocations: 194.7 kB / 1.371 GB, free: 6.676 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002841/0.3418, allocations: 213.8 kB / 1.371 GB, free: 6.438 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.3418, allocations: 0 / 1.371 GB, free: 6.438 MB / 1.061 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006081/0.3424, allocations: 404 kB / 1.372 GB, free: 6.012 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 6.522e-05/0.3424, allocations: 81.83 kB / 1.372 GB, free: 5.922 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.3425, allocations: 0 / 1.372 GB, free: 5.922 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.579e-05/0.3425, allocations: 4 kB / 1.372 GB, free: 5.918 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.128e-05/0.3425, allocations: 4 kB / 1.372 GB, free: 5.914 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.3425, allocations: 16.08 kB / 1.372 GB, free: 5.898 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003483/0.3429, allocations: 63.83 kB / 1.372 GB, free: 5.836 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.193e-05/0.3429, allocations: 8 kB / 1.372 GB, free: 5.828 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.0001474/0.3431, allocations: 142.9 kB / 1.372 GB, free: 5.68 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.692e-05/0.3431, allocations: 19.88 kB / 1.372 GB, free: 5.66 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.571e-05/0.3431, allocations: 21.47 kB / 1.372 GB, free: 5.633 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.3431, allocations: 0 / 1.372 GB, free: 5.633 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.3431, allocations: 7.938 kB / 1.372 GB, free: 5.625 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/0.3432, allocations: 3.984 kB / 1.372 GB, free: 5.621 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004912/0.3436, allocations: 404.6 kB / 1.373 GB, free: 5.191 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.3436, allocations: 0 / 1.373 GB, free: 5.191 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.916e-05/0.3437, allocations: 11.94 kB / 1.373 GB, free: 5.18 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.432e-06/0.3437, allocations: 4 kB / 1.373 GB, free: 5.176 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.087e-05/0.3437, allocations: 0 / 1.373 GB, free: 5.176 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.3437, allocations: 0 / 1.373 GB, free: 5.176 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.3437, allocations: 4 kB / 1.373 GB, free: 5.172 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000266/0.344, allocations: 239.8 kB / 1.373 GB, free: 4.922 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.528e-05/0.344, allocations: 19.83 kB / 1.373 GB, free: 4.902 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.473e-05/0.344, allocations: 4 kB / 1.373 GB, free: 4.898 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.256e-05/0.3441, allocations: 4 kB / 1.373 GB, free: 4.895 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.375e-05/0.3442, allocations: 15.97 kB / 1.373 GB, free: 4.879 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.063e-05/0.3442, allocations: 4 kB / 1.373 GB, free: 4.875 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001021/0.3443, allocations: 124.9 kB / 1.373 GB, free: 4.754 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.3443, allocations: 0 / 1.373 GB, free: 4.754 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003131/0.3446, allocations: 51.89 kB / 1.373 GB, free: 4.703 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.0001511/0.3447, allocations: 119.2 kB / 1.373 GB, free: 4.578 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004924/0.3452, allocations: 342.1 kB / 1.373 GB, free: 4.207 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.3452, allocations: 0 / 1.373 GB, free: 4.207 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 9.45e-05/0.3453, allocations: 50.59 kB / 1.373 GB, free: 4.16 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003483/0.3457, allocations: 36.22 kB / 1.373 GB, free: 4.125 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005499/0.3462, allocations: 321.5 kB / 1.374 GB, free: 3.777 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001034/0.3463, allocations: 111.9 kB / 1.374 GB, free: 3.652 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.363e-05/0.3464, allocations: 19.44 kB / 1.374 GB, free: 3.633 MB / 1.061 GB Notification: Performance of SimCode: time 3.61e-07/0.3464, allocations: 0 / 1.374 GB, free: 3.633 MB / 1.061 GB Notification: Performance of Templates: time 0.004652/0.351, allocations: 2.48 MB / 1.376 GB, free: 1.176 MB / 1.061 GB " [Timeout remaining time 300] 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/jenkins1/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: 11.280784377362579]