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.001787/0.001787, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.002123/0.002123, allocations: 220.3 kB / 22.26 MB, free: 5.125 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.548/1.548, allocations: 230.6 MB / 256 MB, free: 7.988 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.255/3.255, allocations: 0.49 GB / 0.7951 GB, free: 33.44 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.002866/0.002866, allocations: 73.3 kB / 1.154 GB, free: 25.65 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4112/0.4141, allocations: 176.1 MB / 1.326 GB, free: 1.977 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.002761/0.4169, allocations: 1.07 MB / 1.327 GB, free: 0.9141 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002311/0.4192, allocations: 1.357 MB / 1.328 GB, free: 15.54 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001828/0.4194, allocations: 7.938 kB / 1.328 GB, free: 15.54 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.000158/0.4195, allocations: 15.8 kB / 1.328 GB, free: 15.52 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001027/0.4196, allocations: 31.72 kB / 1.328 GB, free: 15.49 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008002/0.4204, allocations: 274.3 kB / 1.329 GB, free: 15.23 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.000463/0.4209, allocations: 307.5 kB / 1.329 GB, free: 14.93 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001889/0.4211, allocations: 66.05 kB / 1.329 GB, free: 14.86 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001819/0.4212, allocations: 115.7 kB / 1.329 GB, free: 14.75 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002161/0.4215, allocations: 111.6 kB / 1.329 GB, free: 14.64 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.793e-05/0.4215, allocations: 28 kB / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001057/0.4216, allocations: 43.98 kB / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 5.223e-05/0.4217, allocations: 43.91 kB / 1.329 GB, free: 14.52 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001523/0.4218, allocations: 123.4 kB / 1.329 GB, free: 14.4 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0005039/0.4223, allocations: 339.1 kB / 1.33 GB, free: 14.07 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.4223, allocations: 0 / 1.33 GB, free: 14.07 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.643e-06/0.4223, allocations: 0 / 1.33 GB, free: 14.07 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.08e-05/0.4224, allocations: 7.875 kB / 1.33 GB, free: 14.06 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.0009255/0.4233, allocations: 472.9 kB / 1.33 GB, free: 13.55 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 6.9e-05/0.4233, allocations: 8.031 kB / 1.33 GB, free: 13.55 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.942e-05/0.4234, allocations: 50.67 kB / 1.33 GB, free: 13.49 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.501e-05/0.4235, allocations: 24.84 kB / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004426/0.4239, allocations: 192.1 kB / 1.33 GB, free: 13.25 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.933e-05/0.424, allocations: 12.38 kB / 1.33 GB, free: 13.24 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.155e-05/0.424, allocations: 24.31 kB / 1.33 GB, free: 13.21 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000265/0.4243, allocations: 125.9 kB / 1.331 GB, free: 13.09 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.4243, allocations: 0 / 1.331 GB, free: 13.09 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.66e-05/0.4243, allocations: 4 kB / 1.331 GB, free: 13.08 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.884e-06/0.4243, allocations: 4 kB / 1.331 GB, free: 13.08 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001596/0.4245, allocations: 71.95 kB / 1.331 GB, free: 13.01 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000994/0.4255, allocations: 0.5538 MB / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002209/0.4257, allocations: 90.5 kB / 1.331 GB, free: 12.31 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.964e-05/0.4258, allocations: 36.98 kB / 1.331 GB, free: 12.27 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.864e-05/0.4258, allocations: 8.188 kB / 1.331 GB, free: 12.27 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002151/0.426, allocations: 107.3 kB / 1.331 GB, free: 12.15 MB / 1.029 GB Notification: Performance of pre-optimization done (n=15): time 1.533e-06/0.426, allocations: 0 / 1.331 GB, free: 12.15 MB / 1.029 GB Notification: Performance of matching and sorting (n=15): time 0.0003981/0.4264, allocations: 183.2 kB / 1.332 GB, free: 11.96 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.096e-05/0.4265, allocations: 55.41 kB / 1.332 GB, free: 11.9 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002196/0.4267, allocations: 199.2 kB / 1.332 GB, free: 11.69 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.429e-05/0.4267, allocations: 33.7 kB / 1.332 GB, free: 11.65 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.00011/0.4268, allocations: 128.4 kB / 1.332 GB, free: 11.52 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.615e-05/0.4269, allocations: 39.73 kB / 1.332 GB, free: 11.48 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001289/0.427, allocations: 61.67 kB / 1.332 GB, free: 11.42 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001722/0.4272, allocations: 326.8 kB / 1.332 GB, free: 11.09 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001842/0.4274, allocations: 87.95 kB / 1.333 GB, free: 11 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002184/0.4276, allocations: 130.9 kB / 1.333 GB, free: 10.86 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002934/0.4279, allocations: 215.4 kB / 1.333 GB, free: 10.62 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.4279, allocations: 0 / 1.333 GB, free: 10.62 MB / 1.029 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005903/0.4285, allocations: 348.7 kB / 1.333 GB, free: 10.26 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 6.473e-05/0.4285, allocations: 71.39 kB / 1.333 GB, free: 10.18 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.4286, allocations: 0 / 1.333 GB, free: 10.18 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.579e-05/0.4286, allocations: 4 kB / 1.333 GB, free: 10.18 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.355e-05/0.4286, allocations: 11.88 kB / 1.333 GB, free: 10.16 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.171e-05/0.4286, allocations: 7.984 kB / 1.333 GB, free: 10.16 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003385/0.429, allocations: 67.98 kB / 1.333 GB, free: 10.09 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.153e-05/0.429, allocations: 8 kB / 1.333 GB, free: 10.08 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.0001508/0.4292, allocations: 153.6 kB / 1.333 GB, free: 9.922 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.821e-05/0.4292, allocations: 23.8 kB / 1.333 GB, free: 9.898 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.942e-05/0.4292, allocations: 17.47 kB / 1.334 GB, free: 9.871 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.01e-06/0.4292, allocations: 4 kB / 1.334 GB, free: 9.867 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.4293, allocations: 0 / 1.334 GB, free: 9.867 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.4293, allocations: 7.984 kB / 1.334 GB, free: 9.859 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000585/0.4298, allocations: 445.6 kB / 1.334 GB, free: 9.375 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.083e-06/0.4298, allocations: 0 / 1.334 GB, free: 9.375 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.448e-05/0.4299, allocations: 4 kB / 1.334 GB, free: 9.371 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.4299, allocations: 0 / 1.334 GB, free: 9.371 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.424e-05/0.4299, allocations: 8 kB / 1.334 GB, free: 9.363 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.185e-06/0.4299, allocations: 0 / 1.334 GB, free: 9.363 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.4299, allocations: 0 / 1.334 GB, free: 9.363 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002838/0.4302, allocations: 246.4 kB / 1.334 GB, free: 9.109 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.291e-05/0.4302, allocations: 23.83 kB / 1.334 GB, free: 9.086 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.656e-05/0.4302, allocations: 4 kB / 1.334 GB, free: 9.082 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.959e-05/0.4303, allocations: 4 kB / 1.334 GB, free: 9.078 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.863e-05/0.4304, allocations: 15.97 kB / 1.334 GB, free: 9.062 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.434e-05/0.4304, allocations: 7.938 kB / 1.334 GB, free: 9.055 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001221/0.4305, allocations: 136.3 kB / 1.334 GB, free: 8.922 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.4305, allocations: 0 / 1.334 GB, free: 8.922 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003253/0.4308, allocations: 51.94 kB / 1.334 GB, free: 8.871 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.0006843/0.4315, allocations: 0.7826 MB / 1.335 GB, free: 8.062 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004532/0.432, allocations: 278.9 kB / 1.335 GB, free: 7.766 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.432, allocations: 4.062 kB / 1.335 GB, free: 7.762 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001041/0.4321, allocations: 54.58 kB / 1.336 GB, free: 7.711 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003556/0.4324, allocations: 35.92 kB / 1.336 GB, free: 7.676 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003058/0.4355, allocations: 2.314 MB / 1.338 GB, free: 5.242 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003751/0.4359, allocations: 0.7242 MB / 1.339 GB, free: 4.488 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 5.846e-05/0.4359, allocations: 21.42 kB / 1.339 GB, free: 4.469 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.44e-05/0.436, allocations: 59.34 kB / 1.339 GB, free: 4.414 MB / 1.029 GB Notification: Performance of SimCode: time 3.91e-07/0.436, allocations: 0 / 1.339 GB, free: 4.414 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03399/0.47, allocations: 4.548 MB / 1.343 GB, free: 76 kB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.42/11.89, allocations: 8.547 kB / 1.343 GB, free: 68 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.80009150179103]