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.001767/0.001767, allocations: 103.9 kB / 16.45 MB, free: 6.5 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.002247/0.002247, allocations: 210.4 kB / 19.43 MB, free: 3.656 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.494/1.494, allocations: 230.6 MB / 252.8 MB, free: 8.945 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.262/3.262, allocations: 0.49 GB / 0.7916 GB, free: 33.33 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: "" <> buildModelFMU(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_SamplerWithResetThreshold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_SamplerWithResetThreshold",fmuType="me",version="2.0",platforms={"static"}) [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.002114/0.002114, allocations: 72.27 kB / 1.149 GB, free: 26.44 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3617/0.3639, allocations: 176.1 MB / 1.321 GB, free: 3.445 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.002608/0.3665, allocations: 1.049 MB / 1.322 GB, free: 2.398 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001974/0.3684, allocations: 1.361 MB / 1.323 GB, free: 1.023 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001408/0.3686, allocations: 4 kB / 1.323 GB, free: 1.02 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001411/0.3687, allocations: 23.73 kB / 1.323 GB, free: 0.9961 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.667e-05/0.3688, allocations: 27.73 kB / 1.323 GB, free: 0.9688 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007577/0.3696, allocations: 259.8 kB / 1.323 GB, free: 0.7227 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0003682/0.3699, allocations: 303.5 kB / 1.324 GB, free: 436 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000173/0.3701, allocations: 72.33 kB / 1.324 GB, free: 364 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001362/0.3702, allocations: 115.7 kB / 1.324 GB, free: 248 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000176/0.3704, allocations: 111.6 kB / 1.324 GB, free: 136 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 5.035e-05/0.3705, allocations: 32 kB / 1.324 GB, free: 104 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 9.997e-05/0.3706, allocations: 47.91 kB / 1.324 GB, free: 56 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 6.76e-05/0.3706, allocations: 35.92 kB / 1.324 GB, free: 20 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001643/0.3708, allocations: 119.6 kB / 1.324 GB, free: 15.9 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004288/0.3712, allocations: 339.1 kB / 1.325 GB, free: 15.57 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.982e-06/0.3712, allocations: 3.984 kB / 1.325 GB, free: 15.56 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.162e-06/0.3712, allocations: 0 / 1.325 GB, free: 15.56 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.213e-06/0.3712, allocations: 0 / 1.325 GB, free: 15.56 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.0008101/0.3721, allocations: 0.5371 MB / 1.325 GB, free: 14.96 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.02e-05/0.3721, allocations: 11.98 kB / 1.325 GB, free: 14.95 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.464e-05/0.3722, allocations: 46.69 kB / 1.325 GB, free: 14.89 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.284e-05/0.3722, allocations: 28.83 kB / 1.325 GB, free: 14.87 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003654/0.3726, allocations: 257.8 kB / 1.325 GB, free: 14.57 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.27e-05/0.3726, allocations: 12.38 kB / 1.325 GB, free: 14.56 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.779e-05/0.3727, allocations: 20.38 kB / 1.325 GB, free: 14.54 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002368/0.3729, allocations: 122 kB / 1.326 GB, free: 14.42 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.607e-06/0.3729, allocations: 4 kB / 1.326 GB, free: 14.41 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.167e-05/0.3729, allocations: 7.984 kB / 1.326 GB, free: 14.41 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.668e-06/0.373, allocations: 4 kB / 1.326 GB, free: 14.4 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001554/0.3731, allocations: 75.91 kB / 1.326 GB, free: 14.33 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008831/0.374, allocations: 0.5743 MB / 1.326 GB, free: 13.7 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001981/0.3742, allocations: 98.59 kB / 1.326 GB, free: 13.6 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.13e-05/0.3743, allocations: 40.78 kB / 1.326 GB, free: 13.55 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.695e-05/0.3743, allocations: 0 / 1.326 GB, free: 13.55 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001981/0.3745, allocations: 115.3 kB / 1.326 GB, free: 13.43 MB / 1.029 GB Notification: Performance of pre-optimization done (n=15): time 1.323e-06/0.3745, allocations: 0 / 1.326 GB, free: 13.43 MB / 1.029 GB Notification: Performance of matching and sorting (n=15): time 0.0004151/0.3749, allocations: 181.6 kB / 1.327 GB, free: 13.25 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.706e-05/0.3749, allocations: 55.41 kB / 1.327 GB, free: 13.18 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002035/0.3751, allocations: 191.2 kB / 1.327 GB, free: 12.98 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.517e-05/0.3752, allocations: 33.7 kB / 1.327 GB, free: 12.94 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001059/0.3753, allocations: 128.4 kB / 1.327 GB, free: 12.81 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.386e-05/0.3753, allocations: 31.73 kB / 1.327 GB, free: 12.78 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001249/0.3755, allocations: 65.69 kB / 1.327 GB, free: 12.71 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001567/0.3756, allocations: 330.8 kB / 1.327 GB, free: 12.38 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001974/0.3758, allocations: 91.95 kB / 1.328 GB, free: 12.29 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002143/0.376, allocations: 124.7 kB / 1.328 GB, free: 12.15 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003016/0.3763, allocations: 218.5 kB / 1.328 GB, free: 11.91 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.3763, allocations: 0 / 1.328 GB, free: 11.91 MB / 1.029 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006134/0.3769, allocations: 348.6 kB / 1.328 GB, free: 11.55 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 6.659e-05/0.377, allocations: 67.39 kB / 1.328 GB, free: 11.47 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.377, allocations: 4 kB / 1.328 GB, free: 11.47 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.842e-05/0.377, allocations: 0 / 1.328 GB, free: 11.47 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.512e-05/0.3771, allocations: 11.94 kB / 1.328 GB, free: 11.46 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.079e-05/0.3771, allocations: 4.156 kB / 1.328 GB, free: 11.45 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003634/0.3775, allocations: 67.78 kB / 1.328 GB, free: 11.39 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.791e-05/0.3775, allocations: 15.98 kB / 1.328 GB, free: 11.37 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.0001413/0.3777, allocations: 146.8 kB / 1.329 GB, free: 11.22 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.883e-05/0.3777, allocations: 23.89 kB / 1.329 GB, free: 11.2 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.667e-05/0.3777, allocations: 13.53 kB / 1.329 GB, free: 11.18 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-06/0.3777, allocations: 0 / 1.329 GB, free: 11.18 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.3778, allocations: 0 / 1.329 GB, free: 11.18 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.3778, allocations: 3.938 kB / 1.329 GB, free: 11.17 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005621/0.3783, allocations: 477.4 kB / 1.329 GB, free: 10.65 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.3783, allocations: 0 / 1.329 GB, free: 10.65 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.606e-05/0.3784, allocations: 11.92 kB / 1.329 GB, free: 10.64 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.3784, allocations: 4 kB / 1.329 GB, free: 10.64 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.272e-05/0.3784, allocations: 8 kB / 1.329 GB, free: 10.63 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.3784, allocations: 0 / 1.329 GB, free: 10.63 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.3784, allocations: 0 / 1.329 GB, free: 10.63 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002732/0.3786, allocations: 243.8 kB / 1.329 GB, free: 10.38 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 6.413e-05/0.3787, allocations: 93 kB / 1.329 GB, free: 10.27 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.536e-05/0.3787, allocations: 4 kB / 1.329 GB, free: 10.26 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.956e-05/0.3788, allocations: 4 kB / 1.329 GB, free: 10.26 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.011e-05/0.3789, allocations: 11.98 kB / 1.329 GB, free: 10.25 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.082e-05/0.3789, allocations: 19.88 kB / 1.329 GB, free: 10.23 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001174/0.379, allocations: 139.2 kB / 1.33 GB, free: 10.09 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.379, allocations: 0 / 1.33 GB, free: 10.09 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003111/0.3793, allocations: 51.89 kB / 1.33 GB, free: 10.04 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.0006852/0.38, allocations: 0.8083 MB / 1.33 GB, free: 9.207 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004533/0.3805, allocations: 282.5 kB / 1.331 GB, free: 8.906 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/0.3805, allocations: 0 / 1.331 GB, free: 8.906 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 9.224e-05/0.3805, allocations: 43.98 kB / 1.331 GB, free: 8.863 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003567/0.3809, allocations: 44.41 kB / 1.331 GB, free: 8.824 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003004/0.3839, allocations: 2.32 MB / 1.333 GB, free: 6.383 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003604/0.3843, allocations: 0.7202 MB / 1.334 GB, free: 5.637 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 6.066e-05/0.3843, allocations: 17.55 kB / 1.334 GB, free: 5.617 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.622e-05/0.3844, allocations: 51.42 kB / 1.334 GB, free: 5.57 MB / 1.029 GB Notification: Performance of SimCode: time 5.11e-07/0.3844, allocations: 4 kB / 1.334 GB, free: 5.566 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0281/0.4125, allocations: 4.387 MB / 1.338 GB, free: 1.395 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.347/8.76, allocations: 9.141 kB / 1.338 GB, free: 1.387 MB / 1.029 GB " [Timeout remaining time 291] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_SamplerWithResetThreshold_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_SamplerWithResetThreshold.fmu > Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe 2>&1) [Timeout 420.0] 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: 15.606638318160549]