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.001759/0.001759, allocations: 96.42 kB / 19.7 MB, free: 2.133 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.002269/0.002269, allocations: 210.7 kB / 22.99 MB, free: 4.957 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.425/1.425, allocations: 230.6 MB / 256.8 MB, free: 7.816 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.118/3.118, allocations: 0.505 GB / 0.8109 GB, free: 23.58 MB / 0.6231 GB " [Timeout remaining time 177] 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.001954/0.001954, allocations: 70.97 kB / 1.178 GB, free: 16.46 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3327/0.3347, allocations: 180.2 MB / 1.354 GB, free: 7.5 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.002337/0.337, allocations: 1.003 MB / 1.355 GB, free: 6.496 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001807/0.3388, allocations: 1.335 MB / 1.356 GB, free: 5.148 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001132/0.3389, allocations: 4 kB / 1.356 GB, free: 5.145 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001478/0.3391, allocations: 23.73 kB / 1.356 GB, free: 5.121 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 8.26e-05/0.3392, allocations: 31.72 kB / 1.356 GB, free: 5.09 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006582/0.3398, allocations: 265.7 kB / 1.357 GB, free: 4.836 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0003614/0.3402, allocations: 311.4 kB / 1.357 GB, free: 4.531 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001789/0.3404, allocations: 64.67 kB / 1.357 GB, free: 4.465 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001264/0.3405, allocations: 111.8 kB / 1.357 GB, free: 4.355 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001687/0.3407, allocations: 111.6 kB / 1.357 GB, free: 4.246 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 4.936e-05/0.3407, allocations: 28 kB / 1.357 GB, free: 4.219 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 9.595e-05/0.3408, allocations: 51.98 kB / 1.357 GB, free: 4.168 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 4.221e-05/0.3408, allocations: 39.84 kB / 1.357 GB, free: 4.129 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001156/0.341, allocations: 103.6 kB / 1.357 GB, free: 4.027 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0003989/0.3414, allocations: 346.7 kB / 1.358 GB, free: 3.688 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.3414, allocations: 0 / 1.358 GB, free: 3.688 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.252e-06/0.3414, allocations: 0 / 1.358 GB, free: 3.688 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.03e-05/0.3414, allocations: 4 kB / 1.358 GB, free: 3.684 MB / 1.045 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.0007679/0.3421, allocations: 468.9 kB / 1.358 GB, free: 3.18 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.552e-05/0.3422, allocations: 8.031 kB / 1.358 GB, free: 3.172 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.828e-05/0.3423, allocations: 24.8 kB / 1.358 GB, free: 3.148 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003894/0.3426, allocations: 200.2 kB / 1.358 GB, free: 2.926 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.162e-05/0.3427, allocations: 12.38 kB / 1.358 GB, free: 2.914 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.196e-05/0.3427, allocations: 20.38 kB / 1.358 GB, free: 2.895 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002628/0.343, allocations: 126.2 kB / 1.359 GB, free: 2.766 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.475e-05/0.343, allocations: 3.938 kB / 1.359 GB, free: 2.762 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.706e-05/0.343, allocations: 8 kB / 1.359 GB, free: 2.754 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.755e-06/0.343, allocations: 4 kB / 1.359 GB, free: 2.75 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001439/0.3432, allocations: 67.97 kB / 1.359 GB, free: 2.684 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000779/0.3439, allocations: 467.9 kB / 1.359 GB, free: 2.195 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002185/0.3442, allocations: 86.66 kB / 1.359 GB, free: 2.102 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.565e-05/0.3442, allocations: 36.78 kB / 1.359 GB, free: 2.062 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.431e-05/0.3443, allocations: 7.938 kB / 1.359 GB, free: 2.055 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000181/0.3444, allocations: 111.3 kB / 1.359 GB, free: 1.934 MB / 1.045 GB Notification: Performance of pre-optimization done (n=15): time 1.873e-06/0.3444, allocations: 7.938 kB / 1.359 GB, free: 1.926 MB / 1.045 GB Notification: Performance of matching and sorting (n=15): time 0.0003867/0.3448, allocations: 181.6 kB / 1.36 GB, free: 1.742 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.76e-05/0.3449, allocations: 51.41 kB / 1.36 GB, free: 1.68 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001771/0.345, allocations: 179.2 kB / 1.36 GB, free: 1.492 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 4.111e-05/0.3451, allocations: 33.7 kB / 1.36 GB, free: 1.453 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001078/0.3452, allocations: 132.4 kB / 1.36 GB, free: 1.32 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.489e-05/0.3452, allocations: 27.8 kB / 1.36 GB, free: 1.293 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001185/0.3453, allocations: 69.67 kB / 1.36 GB, free: 1.219 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001463/0.3455, allocations: 326.8 kB / 1.36 GB, free: 0.8906 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000216/0.3457, allocations: 151.4 kB / 1.36 GB, free: 0.7305 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002402/0.346, allocations: 191.1 kB / 1.361 GB, free: 0.5156 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002711/0.3462, allocations: 209.5 kB / 1.361 GB, free: 288 kB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3462, allocations: 0 / 1.361 GB, free: 288 kB / 1.045 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006231/0.3468, allocations: 414 kB / 1.361 GB, free: 15.85 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 6.355e-05/0.3469, allocations: 71.39 kB / 1.361 GB, free: 15.77 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.3469, allocations: 0 / 1.361 GB, free: 15.77 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.755e-05/0.3469, allocations: 4 kB / 1.361 GB, free: 15.76 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.582e-05/0.347, allocations: 8 kB / 1.361 GB, free: 15.75 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.347, allocations: 4 kB / 1.361 GB, free: 15.75 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003397/0.3473, allocations: 71.75 kB / 1.361 GB, free: 15.68 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.42e-05/0.3474, allocations: 12 kB / 1.361 GB, free: 15.67 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.0001442/0.3475, allocations: 149.7 kB / 1.362 GB, free: 15.51 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.763e-05/0.3476, allocations: 19.84 kB / 1.362 GB, free: 15.49 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.216e-05/0.3476, allocations: 17.47 kB / 1.362 GB, free: 15.47 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.3476, allocations: 0 / 1.362 GB, free: 15.47 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.3476, allocations: 0 / 1.362 GB, free: 15.47 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.616e-06/0.3476, allocations: 0 / 1.362 GB, free: 15.47 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000472/0.3481, allocations: 404.3 kB / 1.362 GB, free: 15.04 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.3481, allocations: 7.984 kB / 1.362 GB, free: 15.04 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.274e-05/0.3481, allocations: 7.984 kB / 1.362 GB, free: 15.03 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.3481, allocations: 0 / 1.362 GB, free: 15.03 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.34e-05/0.3481, allocations: 8 kB / 1.362 GB, free: 15.02 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.3481, allocations: 0 / 1.362 GB, free: 15.02 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.786e-06/0.3481, allocations: 3.938 kB / 1.362 GB, free: 15.02 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002628/0.3484, allocations: 239.8 kB / 1.362 GB, free: 14.77 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.102e-05/0.3484, allocations: 11.89 kB / 1.362 GB, free: 14.75 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.82e-05/0.3484, allocations: 11.92 kB / 1.362 GB, free: 14.74 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.661e-05/0.3485, allocations: 4 kB / 1.362 GB, free: 14.74 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.064e-05/0.3486, allocations: 15.97 kB / 1.362 GB, free: 14.72 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.122e-05/0.3486, allocations: 11.94 kB / 1.362 GB, free: 14.71 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001011/0.3487, allocations: 124 kB / 1.362 GB, free: 14.59 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.3487, allocations: 0 / 1.362 GB, free: 14.59 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002983/0.349, allocations: 51.89 kB / 1.362 GB, free: 14.54 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.0001657/0.3492, allocations: 116.4 kB / 1.363 GB, free: 14.42 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004882/0.3497, allocations: 342.5 kB / 1.363 GB, free: 14.05 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.3497, allocations: 4.312 kB / 1.363 GB, free: 14.05 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 9.075e-05/0.3497, allocations: 51.91 kB / 1.363 GB, free: 14 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003491/0.3501, allocations: 27.92 kB / 1.363 GB, free: 13.97 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006116/0.3507, allocations: 295.8 kB / 1.363 GB, free: 13.66 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001152/0.3508, allocations: 112 kB / 1.363 GB, free: 13.52 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 4.757e-05/0.3509, allocations: 13.42 kB / 1.363 GB, free: 13.51 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.238e-05/0.3509, allocations: 19.44 kB / 1.363 GB, free: 13.49 MB / 1.061 GB Notification: Performance of SimCode: time 3.01e-07/0.3509, allocations: 0 / 1.363 GB, free: 13.49 MB / 1.061 GB Notification: Performance of Templates: time 0.00658/0.3575, allocations: 3.027 MB / 1.366 GB, free: 10.56 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 -s gbode -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: 8.553681111996411]