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.001411/0.001411, allocations: 95.77 kB / 18.94 MB, free: 2.832 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.001857/0.001857, allocations: 220.2 kB / 22.25 MB, free: 5.113 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.459/1.459, allocations: 230.6 MB / 256 MB, free: 7.828 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.316/3.316, allocations: 0.49 GB / 0.7951 GB, free: 35.48 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.00209/0.00209, allocations: 73.03 kB / 1.154 GB, free: 25.47 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.366/0.368, allocations: 176.1 MB / 1.326 GB, free: 1.555 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.002557/0.3706, allocations: 0.9879 MB / 1.327 GB, free: 0.5742 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002094/0.3727, allocations: 1.338 MB / 1.328 GB, free: 15.22 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001884/0.3729, allocations: 4 kB / 1.328 GB, free: 15.22 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0002176/0.3731, allocations: 23.73 kB / 1.328 GB, free: 15.2 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001078/0.3732, allocations: 35.72 kB / 1.328 GB, free: 15.16 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009979/0.3742, allocations: 271.1 kB / 1.328 GB, free: 14.9 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0004896/0.3747, allocations: 299.5 kB / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002503/0.3749, allocations: 68.67 kB / 1.329 GB, free: 14.54 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001758/0.3751, allocations: 115.6 kB / 1.329 GB, free: 14.43 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002294/0.3754, allocations: 111.6 kB / 1.329 GB, free: 14.32 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.863e-05/0.3754, allocations: 36 kB / 1.329 GB, free: 14.28 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001284/0.3755, allocations: 40 kB / 1.329 GB, free: 14.24 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 6.771e-05/0.3756, allocations: 43.78 kB / 1.329 GB, free: 14.2 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001739/0.3758, allocations: 103.6 kB / 1.329 GB, free: 14.1 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0005993/0.3764, allocations: 343.1 kB / 1.33 GB, free: 13.76 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 8.346e-06/0.3764, allocations: 0 / 1.33 GB, free: 13.76 MB / 1.029 GB Notification: Performance of FrontEnd: time 3.366e-06/0.3764, allocations: 0 / 1.33 GB, free: 13.76 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.128e-05/0.3764, allocations: 7.938 kB / 1.33 GB, free: 13.75 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.001066/0.3775, allocations: 464.9 kB / 1.33 GB, free: 13.25 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 6.241e-05/0.3775, allocations: 8.031 kB / 1.33 GB, free: 13.25 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.707e-05/0.3776, allocations: 58.67 kB / 1.33 GB, free: 13.18 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.538e-05/0.3777, allocations: 24.84 kB / 1.33 GB, free: 13.16 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004287/0.3781, allocations: 192.7 kB / 1.33 GB, free: 12.94 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.524e-05/0.3782, allocations: 12.38 kB / 1.33 GB, free: 12.93 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.707e-05/0.3782, allocations: 20.38 kB / 1.33 GB, free: 12.91 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003181/0.3785, allocations: 129.9 kB / 1.33 GB, free: 12.78 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.518e-05/0.3786, allocations: 0 / 1.33 GB, free: 12.78 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.079e-05/0.3786, allocations: 4 kB / 1.33 GB, free: 12.77 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.472e-05/0.3786, allocations: 4 kB / 1.33 GB, free: 12.77 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000183/0.3788, allocations: 71.97 kB / 1.331 GB, free: 12.7 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00104/0.3798, allocations: 0.4954 MB / 1.331 GB, free: 12.16 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002308/0.38, allocations: 90.59 kB / 1.331 GB, free: 12.06 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.996e-05/0.3801, allocations: 32.84 kB / 1.331 GB, free: 12.03 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.107e-05/0.3801, allocations: 4 kB / 1.331 GB, free: 12.02 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002455/0.3804, allocations: 115.3 kB / 1.331 GB, free: 11.9 MB / 1.029 GB Notification: Performance of pre-optimization done (n=15): time 1.593e-06/0.3804, allocations: 0 / 1.331 GB, free: 11.9 MB / 1.029 GB Notification: Performance of matching and sorting (n=15): time 0.000471/0.3809, allocations: 183.7 kB / 1.331 GB, free: 11.71 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.843e-05/0.3809, allocations: 59.41 kB / 1.331 GB, free: 11.64 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002004/0.3811, allocations: 191.2 kB / 1.332 GB, free: 11.45 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.566e-05/0.3812, allocations: 37.7 kB / 1.332 GB, free: 11.4 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001065/0.3813, allocations: 124.4 kB / 1.332 GB, free: 11.28 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.31e-05/0.3813, allocations: 39.73 kB / 1.332 GB, free: 11.24 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001205/0.3814, allocations: 61.69 kB / 1.332 GB, free: 11.17 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001625/0.3816, allocations: 330.8 kB / 1.332 GB, free: 10.84 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002356/0.3818, allocations: 147.4 kB / 1.332 GB, free: 10.68 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002796/0.3821, allocations: 193.5 kB / 1.333 GB, free: 10.46 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002828/0.3824, allocations: 222.3 kB / 1.333 GB, free: 10.22 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.3824, allocations: 0 / 1.333 GB, free: 10.22 MB / 1.029 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006207/0.383, allocations: 400.2 kB / 1.333 GB, free: 9.797 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 7.052e-05/0.3831, allocations: 69.42 kB / 1.333 GB, free: 9.719 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.3831, allocations: 0 / 1.333 GB, free: 9.719 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.741e-05/0.3831, allocations: 8.094 kB / 1.333 GB, free: 9.711 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.749e-05/0.3832, allocations: 19.98 kB / 1.333 GB, free: 9.691 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.643e-06/0.3832, allocations: 0 / 1.333 GB, free: 9.691 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003332/0.3835, allocations: 59.83 kB / 1.333 GB, free: 9.633 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.665e-05/0.3836, allocations: 19.98 kB / 1.333 GB, free: 9.613 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.0001826/0.3837, allocations: 149.7 kB / 1.333 GB, free: 9.457 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.996e-05/0.3838, allocations: 19.86 kB / 1.333 GB, free: 9.438 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.793e-05/0.3838, allocations: 21.45 kB / 1.333 GB, free: 9.406 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.327e-06/0.3838, allocations: 0 / 1.333 GB, free: 9.406 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.3838, allocations: 3.938 kB / 1.333 GB, free: 9.402 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.3838, allocations: 0 / 1.333 GB, free: 9.402 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005722/0.3844, allocations: 433.6 kB / 1.334 GB, free: 8.93 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.336e-06/0.3844, allocations: 4 kB / 1.334 GB, free: 8.926 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.368e-05/0.3845, allocations: 8 kB / 1.334 GB, free: 8.918 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.3845, allocations: 0 / 1.334 GB, free: 8.918 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.461e-05/0.3845, allocations: 3.984 kB / 1.334 GB, free: 8.914 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.3845, allocations: 4 kB / 1.334 GB, free: 8.91 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3845, allocations: 4 kB / 1.334 GB, free: 8.906 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003163/0.3848, allocations: 242.3 kB / 1.334 GB, free: 8.656 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.182e-05/0.3848, allocations: 23.83 kB / 1.334 GB, free: 8.633 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.611e-05/0.3849, allocations: 4 kB / 1.334 GB, free: 8.629 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.262e-05/0.3849, allocations: 11.98 kB / 1.334 GB, free: 8.617 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.182e-05/0.385, allocations: 7.984 kB / 1.334 GB, free: 8.609 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.783e-05/0.385, allocations: 11.94 kB / 1.334 GB, free: 8.598 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001217/0.3851, allocations: 136.3 kB / 1.334 GB, free: 8.465 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3851, allocations: 0 / 1.334 GB, free: 8.465 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003109/0.3855, allocations: 51.95 kB / 1.334 GB, free: 8.414 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.0006567/0.3861, allocations: 0.7885 MB / 1.335 GB, free: 7.602 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000502/0.3866, allocations: 338 kB / 1.335 GB, free: 7.234 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3866, allocations: 0 / 1.335 GB, free: 7.234 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 9.621e-05/0.3867, allocations: 54.72 kB / 1.336 GB, free: 7.184 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003639/0.3871, allocations: 40.22 kB / 1.336 GB, free: 7.145 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00321/0.3903, allocations: 2.564 MB / 1.338 GB, free: 4.41 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001165/0.3904, allocations: 116.1 kB / 1.338 GB, free: 4.277 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 6.163e-05/0.3905, allocations: 17.42 kB / 1.338 GB, free: 4.258 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001011/0.3906, allocations: 55.42 kB / 1.338 GB, free: 4.203 MB / 1.029 GB Notification: Performance of SimCode: time 1.302e-06/0.3906, allocations: 0 / 1.338 GB, free: 4.203 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03242/0.423, allocations: 5.212 MB / 1.343 GB, free: 15.22 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.2/11.62, allocations: 10.3 kB / 1.343 GB, free: 15.21 MB / 1.045 GB " [Timeout remaining time 288] (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: 18.449556497012964]