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.001593/0.001593, allocations: 110.2 kB / 16.46 MB, free: 6.508 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.00187/0.00187, allocations: 213.7 kB / 19.43 MB, free: 3.648 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.649/1.649, allocations: 230.5 MB / 252.8 MB, free: 9.145 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.402/3.402, allocations: 0.4899 GB / 0.7915 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.002156/0.002156, allocations: 69.86 kB / 1.149 GB, free: 26.11 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4649/0.467, allocations: 176.1 MB / 1.321 GB, free: 2.812 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.002881/0.4699, allocations: 1.043 MB / 1.322 GB, free: 1.77 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002199/0.4721, allocations: 1.361 MB / 1.324 GB, free: 404 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001536/0.4722, allocations: 4 kB / 1.324 GB, free: 400 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001559/0.4724, allocations: 19.73 kB / 1.324 GB, free: 380 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 8.145e-05/0.4725, allocations: 31.72 kB / 1.324 GB, free: 348 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008107/0.4733, allocations: 268 kB / 1.324 GB, free: 88 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0004263/0.4737, allocations: 307.4 kB / 1.324 GB, free: 15.79 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002069/0.4739, allocations: 72.33 kB / 1.324 GB, free: 15.71 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001498/0.4741, allocations: 111.7 kB / 1.324 GB, free: 15.61 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002286/0.4743, allocations: 111.5 kB / 1.324 GB, free: 15.5 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.338e-05/0.4744, allocations: 32 kB / 1.325 GB, free: 15.46 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001062/0.4745, allocations: 51.92 kB / 1.325 GB, free: 15.41 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 4.513e-05/0.4745, allocations: 35.91 kB / 1.325 GB, free: 15.38 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.00015/0.4747, allocations: 115.5 kB / 1.325 GB, free: 15.27 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004518/0.4751, allocations: 342.8 kB / 1.325 GB, free: 14.93 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.4751, allocations: 0 / 1.325 GB, free: 14.93 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.295e-06/0.4751, allocations: 0 / 1.325 GB, free: 14.93 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.754e-06/0.4751, allocations: 0 / 1.325 GB, free: 14.93 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.0008821/0.476, allocations: 0.5371 MB / 1.326 GB, free: 14.33 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.251e-05/0.4761, allocations: 12.02 kB / 1.326 GB, free: 14.32 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.283e-05/0.4761, allocations: 32.78 kB / 1.326 GB, free: 14.29 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003707/0.4765, allocations: 253.8 kB / 1.326 GB, free: 14 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.72e-05/0.4765, allocations: 12.38 kB / 1.326 GB, free: 13.98 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.018e-05/0.4766, allocations: 20.38 kB / 1.326 GB, free: 13.96 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002619/0.4768, allocations: 118.2 kB / 1.326 GB, free: 13.84 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.4769, allocations: 7.938 kB / 1.326 GB, free: 13.84 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.873e-05/0.4769, allocations: 7.984 kB / 1.326 GB, free: 13.83 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.113e-05/0.4769, allocations: 4 kB / 1.326 GB, free: 13.82 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001546/0.477, allocations: 75.97 kB / 1.326 GB, free: 13.75 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009506/0.478, allocations: 0.5742 MB / 1.327 GB, free: 13.12 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002319/0.4782, allocations: 98.59 kB / 1.327 GB, free: 13.02 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.322e-05/0.4783, allocations: 40.78 kB / 1.327 GB, free: 12.98 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.438e-05/0.4783, allocations: 0 / 1.327 GB, free: 12.98 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002096/0.4785, allocations: 111.3 kB / 1.327 GB, free: 12.86 MB / 1.029 GB Notification: Performance of pre-optimization done (n=15): time 1.303e-06/0.4785, allocations: 0 / 1.327 GB, free: 12.86 MB / 1.029 GB Notification: Performance of matching and sorting (n=15): time 0.0004158/0.4789, allocations: 184.4 kB / 1.327 GB, free: 12.67 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.6e-05/0.479, allocations: 59.41 kB / 1.327 GB, free: 12.6 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002244/0.4792, allocations: 183.2 kB / 1.327 GB, free: 12.41 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.82e-05/0.4793, allocations: 37.7 kB / 1.327 GB, free: 12.36 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001247/0.4794, allocations: 124.4 kB / 1.327 GB, free: 12.24 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.418e-05/0.4794, allocations: 39.72 kB / 1.327 GB, free: 12.2 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001243/0.4796, allocations: 61.69 kB / 1.328 GB, free: 12.13 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001773/0.4797, allocations: 330.8 kB / 1.328 GB, free: 11.8 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002005/0.4799, allocations: 83.95 kB / 1.328 GB, free: 11.72 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002188/0.4802, allocations: 130.1 kB / 1.328 GB, free: 11.57 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000302/0.4805, allocations: 212.4 kB / 1.328 GB, free: 11.34 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.594e-05/0.4805, allocations: 3.938 kB / 1.328 GB, free: 11.33 MB / 1.029 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006001/0.4811, allocations: 346.6 kB / 1.329 GB, free: 10.98 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 7.091e-05/0.4812, allocations: 71.39 kB / 1.329 GB, free: 10.89 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.4812, allocations: 4 kB / 1.329 GB, free: 10.89 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.819e-05/0.4812, allocations: 0 / 1.329 GB, free: 10.89 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.895e-05/0.4813, allocations: 8 kB / 1.329 GB, free: 10.88 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.244e-05/0.4813, allocations: 7.938 kB / 1.329 GB, free: 10.88 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003629/0.4816, allocations: 67.94 kB / 1.329 GB, free: 10.81 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.868e-05/0.4817, allocations: 15.98 kB / 1.329 GB, free: 10.79 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.0001529/0.4818, allocations: 138.8 kB / 1.329 GB, free: 10.65 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.998e-05/0.4819, allocations: 27.83 kB / 1.329 GB, free: 10.62 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.393e-05/0.4819, allocations: 17.53 kB / 1.329 GB, free: 10.6 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.4819, allocations: 0 / 1.329 GB, free: 10.6 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.4819, allocations: 0 / 1.329 GB, free: 10.6 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.4819, allocations: 4 kB / 1.329 GB, free: 10.59 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005814/0.4825, allocations: 474.5 kB / 1.329 GB, free: 10.07 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.4825, allocations: 0 / 1.329 GB, free: 10.07 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.693e-05/0.4826, allocations: 19.92 kB / 1.329 GB, free: 10.05 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.4826, allocations: 0 / 1.329 GB, free: 10.05 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.265e-05/0.4826, allocations: 4 kB / 1.329 GB, free: 10.05 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.4826, allocations: 8 kB / 1.329 GB, free: 10.04 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.4826, allocations: 0 / 1.329 GB, free: 10.04 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002948/0.4829, allocations: 242.2 kB / 1.33 GB, free: 9.793 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 7.625e-05/0.4829, allocations: 93 kB / 1.33 GB, free: 9.684 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.599e-05/0.483, allocations: 4 kB / 1.33 GB, free: 9.68 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.635e-05/0.483, allocations: 4 kB / 1.33 GB, free: 9.676 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.558e-05/0.4831, allocations: 19.97 kB / 1.33 GB, free: 9.656 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.338e-05/0.4831, allocations: 15.92 kB / 1.33 GB, free: 9.641 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001272/0.4833, allocations: 135.2 kB / 1.33 GB, free: 9.508 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.4833, allocations: 0 / 1.33 GB, free: 9.508 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003128/0.4836, allocations: 51.89 kB / 1.33 GB, free: 9.457 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.0001931/0.4838, allocations: 121 kB / 1.33 GB, free: 9.332 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004901/0.4842, allocations: 278.9 kB / 1.33 GB, free: 9.035 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.4843, allocations: 8.062 kB / 1.33 GB, free: 9.027 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001102/0.4844, allocations: 47.92 kB / 1.33 GB, free: 8.98 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003538/0.4847, allocations: 21.73 kB / 1.33 GB, free: 8.961 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006373/0.4854, allocations: 299.6 kB / 1.331 GB, free: 8.645 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004258/0.4858, allocations: 0.7202 MB / 1.331 GB, free: 7.898 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 5.222e-05/0.4858, allocations: 17.55 kB / 1.331 GB, free: 7.883 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.475e-05/0.4859, allocations: 23.42 kB / 1.331 GB, free: 7.859 MB / 1.029 GB Notification: Performance of SimCode: time 2.91e-07/0.4859, allocations: 0 / 1.331 GB, free: 7.859 MB / 1.029 GB Notification: Performance of Templates: time 0.00717/0.493, allocations: 2.752 MB / 1.334 GB, free: 5.18 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/jenkins/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: 9.826758950948715]