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.001528/0.001528, allocations: 111.7 kB / 17.13 MB, free: 5.926 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.00162/0.00162, allocations: 204 kB / 20.09 MB, free: 2.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.468/1.468, allocations: 230.6 MB / 253.5 MB, free: 15.08 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.004/3.004, allocations: 0.49 GB / 0.7923 GB, free: 1.414 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.002059/0.002059, allocations: 63.89 kB / 1.15 GB, free: 14.85 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9743/0.9764, allocations: 176.1 MB / 1.322 GB, free: 25.05 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.002127/0.9785, allocations: 1.051 MB / 1.323 GB, free: 24.36 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001485/0.98, allocations: 1.358 MB / 1.324 GB, free: 23.37 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001197/0.9801, allocations: 2.969 kB / 1.324 GB, free: 23.37 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001047/0.9802, allocations: 19.03 kB / 1.324 GB, free: 23.35 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 6.171e-05/0.9803, allocations: 26 kB / 1.324 GB, free: 23.33 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005899/0.9809, allocations: 272.5 kB / 1.325 GB, free: 23.18 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002644/0.9811, allocations: 306.2 kB / 1.325 GB, free: 23.04 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001121/0.9813, allocations: 66.39 kB / 1.325 GB, free: 23 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 9.071e-05/0.9814, allocations: 115.6 kB / 1.325 GB, free: 22.95 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001153/0.9815, allocations: 105.6 kB / 1.325 GB, free: 22.9 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 3.999e-05/0.9815, allocations: 31.62 kB / 1.325 GB, free: 22.9 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 7.019e-05/0.9816, allocations: 47.08 kB / 1.325 GB, free: 22.89 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 3.302e-05/0.9816, allocations: 42.84 kB / 1.325 GB, free: 22.86 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 9.46e-05/0.9817, allocations: 116.8 kB / 1.325 GB, free: 22.79 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0003238/0.982, allocations: 343.1 kB / 1.326 GB, free: 22.67 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.982, allocations: 0 / 1.326 GB, free: 22.67 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.653e-06/0.982, allocations: 6.656 kB / 1.326 GB, free: 22.67 MB / 1.061 GB Notification: Performance of Transformations before backend: time 8.306e-06/0.982, allocations: 3.938 kB / 1.326 GB, free: 22.66 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.0006725/0.9827, allocations: 0.5385 MB / 1.326 GB, free: 22.15 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 5.311e-05/0.9828, allocations: 11.47 kB / 1.326 GB, free: 22.15 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.941e-05/0.9828, allocations: 22 kB / 1.326 GB, free: 22.14 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003448/0.9832, allocations: 252.6 kB / 1.327 GB, free: 21.9 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.106e-05/0.9832, allocations: 19.31 kB / 1.327 GB, free: 21.89 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.59e-05/0.9833, allocations: 17.81 kB / 1.327 GB, free: 21.89 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002097/0.9835, allocations: 119.8 kB / 1.327 GB, free: 21.82 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.9835, allocations: 3.938 kB / 1.327 GB, free: 21.82 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.909e-05/0.9835, allocations: 10.16 kB / 1.327 GB, free: 21.82 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.9835, allocations: 2.781 kB / 1.327 GB, free: 21.82 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001278/0.9836, allocations: 67.59 kB / 1.327 GB, free: 21.79 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007749/0.9844, allocations: 0.5835 MB / 1.327 GB, free: 21.38 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002047/0.9846, allocations: 92.28 kB / 1.327 GB, free: 21.32 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.1e-05/0.9847, allocations: 39.66 kB / 1.327 GB, free: 21.3 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.377e-05/0.9847, allocations: 1.656 kB / 1.327 GB, free: 21.3 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001862/0.9849, allocations: 122 kB / 1.328 GB, free: 21.22 MB / 1.061 GB Notification: Performance of pre-optimization done (n=15): time 1.373e-06/0.9849, allocations: 0 / 1.328 GB, free: 21.22 MB / 1.061 GB Notification: Performance of matching and sorting (n=15): time 0.000416/0.9853, allocations: 182.4 kB / 1.328 GB, free: 21.14 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.38e-05/0.9853, allocations: 54.19 kB / 1.328 GB, free: 21.07 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001836/0.9855, allocations: 182.9 kB / 1.328 GB, free: 20.94 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.789e-05/0.9856, allocations: 35.45 kB / 1.328 GB, free: 20.91 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 8.065e-05/0.9857, allocations: 137.9 kB / 1.328 GB, free: 20.79 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.212e-05/0.9857, allocations: 28.47 kB / 1.328 GB, free: 20.77 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001338/0.9858, allocations: 69.31 kB / 1.328 GB, free: 20.73 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 6.885e-05/0.9859, allocations: 329.8 kB / 1.329 GB, free: 20.41 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001924/0.9861, allocations: 80.67 kB / 1.329 GB, free: 20.38 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002153/0.9863, allocations: 130.3 kB / 1.329 GB, free: 20.3 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002643/0.9866, allocations: 211.6 kB / 1.329 GB, free: 20.13 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.9866, allocations: 5 kB / 1.329 GB, free: 20.13 MB / 1.061 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006226/0.9872, allocations: 340.3 kB / 1.329 GB, free: 19.95 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 4.843e-05/0.9872, allocations: 75.17 kB / 1.329 GB, free: 19.88 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.024e-06/0.9872, allocations: 6.312 kB / 1.329 GB, free: 19.87 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.751e-05/0.9873, allocations: 1.812 kB / 1.329 GB, free: 19.87 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.62e-05/0.9873, allocations: 11.03 kB / 1.329 GB, free: 19.87 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.937e-06/0.9873, allocations: 2.219 kB / 1.329 GB, free: 19.87 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003693/0.9877, allocations: 69.64 kB / 1.329 GB, free: 19.85 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.187e-05/0.9877, allocations: 18.22 kB / 1.329 GB, free: 19.85 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.0001248/0.9879, allocations: 147.5 kB / 1.33 GB, free: 19.71 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.727e-05/0.9879, allocations: 14.78 kB / 1.33 GB, free: 19.7 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.477e-05/0.9879, allocations: 23.78 kB / 1.33 GB, free: 19.68 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.9879, allocations: 1.906 kB / 1.33 GB, free: 19.68 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.9879, allocations: 0 / 1.33 GB, free: 19.68 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.9879, allocations: 0.5 kB / 1.33 GB, free: 19.68 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005309/0.9885, allocations: 477.5 kB / 1.33 GB, free: 19.3 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.9885, allocations: 4.688 kB / 1.33 GB, free: 19.3 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.68e-05/0.9885, allocations: 6 kB / 1.33 GB, free: 19.3 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/0.9885, allocations: 1.547 kB / 1.33 GB, free: 19.3 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.578e-05/0.9885, allocations: 6.125 kB / 1.33 GB, free: 19.29 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.9885, allocations: 1.188 kB / 1.33 GB, free: 19.29 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.9885, allocations: 0.5625 kB / 1.33 GB, free: 19.29 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002546/0.9888, allocations: 244.6 kB / 1.33 GB, free: 19.12 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.962e-05/0.9888, allocations: 94.98 kB / 1.33 GB, free: 19.01 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.54e-05/0.9889, allocations: 6 kB / 1.33 GB, free: 19.01 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.99e-05/0.9889, allocations: 8.125 kB / 1.33 GB, free: 19 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.998e-05/0.989, allocations: 9.75 kB / 1.33 GB, free: 19 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.682e-05/0.989, allocations: 9 kB / 1.33 GB, free: 19 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001164/0.9891, allocations: 139 kB / 1.331 GB, free: 18.9 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.9891, allocations: 0 / 1.331 GB, free: 18.9 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.000328/0.9895, allocations: 52.41 kB / 1.331 GB, free: 18.89 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.0001748/0.9896, allocations: 125.3 kB / 1.331 GB, free: 18.79 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004507/0.9901, allocations: 281.2 kB / 1.331 GB, free: 18.6 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.9901, allocations: 1.344 kB / 1.331 GB, free: 18.6 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001052/0.9902, allocations: 49.28 kB / 1.331 GB, free: 18.59 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000375/0.9906, allocations: 35.86 kB / 1.331 GB, free: 18.57 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000574/0.9912, allocations: 329.6 kB / 1.331 GB, free: 18.33 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001796/0.9913, allocations: 0.7183 MB / 1.332 GB, free: 17.63 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.274e-05/0.9914, allocations: 18.97 kB / 1.332 GB, free: 17.62 MB / 1.061 GB Notification: Performance of SimCode: time 2.8e-07/0.9914, allocations: 0 / 1.332 GB, free: 17.62 MB / 1.061 GB Notification: Performance of Templates: time 0.006025/0.9974, allocations: 2.496 MB / 1.335 GB, free: 17.38 MB / 1.061 GB " [Timeout remaining time 299] 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.553228656994179]