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.001976/0.001976, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002315/0.002315, allocations: 213.6 kB / 22.25 MB, free: 4.855 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.593/1.593, allocations: 230.6 MB / 256 MB, free: 7.793 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.223/3.223, allocations: 0.4892 GB / 0.7943 GB, free: 35.57 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.002192/0.002192, allocations: 62.41 kB / 1.153 GB, free: 25.81 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3883/0.3905, allocations: 176.1 MB / 1.325 GB, free: 2.348 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.002678/0.3932, allocations: 1.002 MB / 1.326 GB, free: 1.352 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002074/0.3953, allocations: 1.338 MB / 1.327 GB, free: 0 / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001368/0.3954, allocations: 8.062 kB / 1.327 GB, free: 15.99 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001505/0.3956, allocations: 27.67 kB / 1.327 GB, free: 15.96 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 8.34e-05/0.3956, allocations: 23.8 kB / 1.327 GB, free: 15.94 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007623/0.3964, allocations: 277.4 kB / 1.328 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003788/0.3968, allocations: 291.5 kB / 1.328 GB, free: 15.39 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001881/0.397, allocations: 64.67 kB / 1.328 GB, free: 15.32 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001395/0.3971, allocations: 119.6 kB / 1.328 GB, free: 15.21 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001822/0.3973, allocations: 91.62 kB / 1.328 GB, free: 15.12 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.279e-05/0.3973, allocations: 32 kB / 1.328 GB, free: 15.09 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 9.982e-05/0.3974, allocations: 43.98 kB / 1.328 GB, free: 15.04 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 4.606e-05/0.3975, allocations: 39.86 kB / 1.328 GB, free: 15 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001417/0.3976, allocations: 107.6 kB / 1.328 GB, free: 14.9 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004335/0.3981, allocations: 343.1 kB / 1.329 GB, free: 14.56 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.3981, allocations: 3.938 kB / 1.329 GB, free: 14.56 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.583e-06/0.3981, allocations: 0 / 1.329 GB, free: 14.56 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.001e-06/0.3981, allocations: 0 / 1.329 GB, free: 14.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.0007797/0.3989, allocations: 472.8 kB / 1.329 GB, free: 14.05 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.172e-05/0.3989, allocations: 12.03 kB / 1.329 GB, free: 14.04 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.757e-05/0.399, allocations: 46.73 kB / 1.329 GB, free: 13.98 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.87e-05/0.399, allocations: 20.84 kB / 1.329 GB, free: 13.96 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003829/0.3994, allocations: 191.8 kB / 1.329 GB, free: 13.75 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.31e-05/0.3994, allocations: 20.31 kB / 1.329 GB, free: 13.73 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.755e-05/0.3995, allocations: 20.38 kB / 1.33 GB, free: 13.71 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002401/0.3997, allocations: 126 kB / 1.33 GB, free: 13.58 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.3997, allocations: 0 / 1.33 GB, free: 13.58 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.527e-05/0.3997, allocations: 4 kB / 1.33 GB, free: 13.58 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.966e-06/0.3998, allocations: 7.984 kB / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001512/0.3999, allocations: 67.97 kB / 1.33 GB, free: 13.5 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008764/0.4008, allocations: 0.4915 MB / 1.33 GB, free: 12.97 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001932/0.401, allocations: 94.52 kB / 1.33 GB, free: 12.87 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.461e-05/0.401, allocations: 37.17 kB / 1.33 GB, free: 12.83 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.26e-05/0.4011, allocations: 3.938 kB / 1.33 GB, free: 12.82 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001959/0.4013, allocations: 107.3 kB / 1.33 GB, free: 12.71 MB / 1.029 GB Notification: Performance of pre-optimization done (n=15): time 1.462e-06/0.4013, allocations: 0 / 1.33 GB, free: 12.71 MB / 1.029 GB Notification: Performance of matching and sorting (n=15): time 0.0003966/0.4017, allocations: 191.5 kB / 1.331 GB, free: 12.52 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.1e-05/0.4017, allocations: 55.34 kB / 1.331 GB, free: 12.45 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002057/0.4019, allocations: 187.3 kB / 1.331 GB, free: 12.25 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.638e-05/0.402, allocations: 33.7 kB / 1.331 GB, free: 12.21 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001229/0.4021, allocations: 148.3 kB / 1.331 GB, free: 12.07 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.582e-05/0.4021, allocations: 23.81 kB / 1.331 GB, free: 12.04 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001255/0.4023, allocations: 69.67 kB / 1.331 GB, free: 11.97 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001959/0.4024, allocations: 326.8 kB / 1.331 GB, free: 11.64 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000236/0.4027, allocations: 151.3 kB / 1.332 GB, free: 11.48 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000276/0.403, allocations: 197 kB / 1.332 GB, free: 11.26 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003075/0.4033, allocations: 212.3 kB / 1.332 GB, free: 11.02 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.686e-06/0.4033, allocations: 0 / 1.332 GB, free: 11.02 MB / 1.029 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006554/0.4039, allocations: 410.3 kB / 1.332 GB, free: 10.59 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 8.898e-05/0.404, allocations: 75.33 kB / 1.332 GB, free: 10.51 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.404, allocations: 3.938 kB / 1.332 GB, free: 10.5 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.402e-05/0.404, allocations: 4 kB / 1.332 GB, free: 10.5 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.603e-05/0.4041, allocations: 12 kB / 1.332 GB, free: 10.49 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.185e-06/0.4041, allocations: 0 / 1.332 GB, free: 10.49 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003458/0.4045, allocations: 75.92 kB / 1.333 GB, free: 10.41 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.316e-05/0.4045, allocations: 12 kB / 1.333 GB, free: 10.4 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.0001793/0.4047, allocations: 149.6 kB / 1.333 GB, free: 10.25 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.451e-05/0.4047, allocations: 11.91 kB / 1.333 GB, free: 10.23 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.468e-05/0.4048, allocations: 17.47 kB / 1.333 GB, free: 10.21 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.4048, allocations: 8 kB / 1.333 GB, free: 10.2 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.4048, allocations: 0 / 1.333 GB, free: 10.2 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.4048, allocations: 3.984 kB / 1.333 GB, free: 10.2 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005663/0.4053, allocations: 425.7 kB / 1.333 GB, free: 9.73 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.4054, allocations: 3.984 kB / 1.333 GB, free: 9.727 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.324e-05/0.4054, allocations: 4 kB / 1.333 GB, free: 9.723 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.754e-06/0.4054, allocations: 0 / 1.333 GB, free: 9.723 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.142e-05/0.4054, allocations: 4 kB / 1.333 GB, free: 9.719 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.4054, allocations: 0 / 1.333 GB, free: 9.719 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.4054, allocations: 0 / 1.333 GB, free: 9.719 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002957/0.4057, allocations: 250.9 kB / 1.333 GB, free: 9.461 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.174e-05/0.4057, allocations: 23.83 kB / 1.333 GB, free: 9.438 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.931e-05/0.4058, allocations: 4 kB / 1.333 GB, free: 9.434 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.883e-05/0.4058, allocations: 4 kB / 1.333 GB, free: 9.43 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.337e-05/0.4059, allocations: 11.97 kB / 1.333 GB, free: 9.418 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.597e-05/0.4059, allocations: 11.94 kB / 1.333 GB, free: 9.406 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001587/0.4061, allocations: 136.3 kB / 1.334 GB, free: 9.273 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.4061, allocations: 0 / 1.334 GB, free: 9.273 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003168/0.4064, allocations: 51.94 kB / 1.334 GB, free: 9.223 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.0007618/0.4072, allocations: 0.7865 MB / 1.334 GB, free: 8.41 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005344/0.4077, allocations: 346 kB / 1.335 GB, free: 8.035 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.4077, allocations: 3.938 kB / 1.335 GB, free: 8.031 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 9.368e-05/0.4078, allocations: 47.92 kB / 1.335 GB, free: 7.984 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003742/0.4082, allocations: 32.22 kB / 1.335 GB, free: 7.953 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003483/0.4116, allocations: 2.578 MB / 1.337 GB, free: 5.207 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001264/0.4118, allocations: 104.1 kB / 1.337 GB, free: 5.086 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 7.396e-05/0.4118, allocations: 21.48 kB / 1.337 GB, free: 5.062 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001082/0.4119, allocations: 59.41 kB / 1.337 GB, free: 5.004 MB / 1.029 GB Notification: Performance of SimCode: time 4.01e-07/0.4119, allocations: 0 / 1.337 GB, free: 5.004 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03705/0.449, allocations: 5.19 MB / 1.343 GB, free: 52 kB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/11.97, allocations: 4.562 kB / 1.343 GB, free: 48 kB / 1.029 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.789402023889124]