Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.00179/0.00179, allocations: 114.8 kB / 17.16 MB, free: 5.895 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.002028/0.002028, allocations: 215 kB / 20.13 MB, free: 2.949 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.557/1.557, allocations: 230.6 MB / 253.5 MB, free: 15.13 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.118/3.118, allocations: 0.5003 GB / 0.8026 GB, free: 6.68 MB / 0.6387 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_SamplerWithResetThreshold",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_SamplerWithResetThreshold",fmuType="cs",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.002/0.002, allocations: 67.89 kB / 1.165 GB, free: 496 kB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9918/0.9938, allocations: 178.9 MB / 1.34 GB, free: 16.28 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.002105/0.9959, allocations: 1.058 MB / 1.341 GB, free: 15.58 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001453/0.9973, allocations: 1.349 MB / 1.342 GB, free: 14.59 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001085/0.9974, allocations: 3.469 kB / 1.342 GB, free: 14.59 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001174/0.9976, allocations: 19.08 kB / 1.343 GB, free: 14.57 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 6.578e-05/0.9976, allocations: 27.39 kB / 1.343 GB, free: 14.55 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006259/0.9983, allocations: 273.5 kB / 1.343 GB, free: 14.41 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0003312/0.9986, allocations: 305.4 kB / 1.343 GB, free: 14.26 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001472/0.9987, allocations: 63.3 kB / 1.343 GB, free: 14.23 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001052/0.9988, allocations: 119.3 kB / 1.343 GB, free: 14.17 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001514/0.999, allocations: 109.6 kB / 1.343 GB, free: 14.12 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.645e-05/0.999, allocations: 31.62 kB / 1.343 GB, free: 14.12 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 8.519e-05/0.9991, allocations: 44.69 kB / 1.343 GB, free: 14.11 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 3.509e-05/0.9992, allocations: 44.05 kB / 1.343 GB, free: 14.08 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001056/0.9993, allocations: 118.2 kB / 1.344 GB, free: 14.01 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0004214/0.9997, allocations: 344.3 kB / 1.344 GB, free: 13.89 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.9997, allocations: 1.469 kB / 1.344 GB, free: 13.89 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.553e-06/0.9997, allocations: 0 / 1.344 GB, free: 13.89 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.312e-05/0.9997, allocations: 3.938 kB / 1.344 GB, free: 13.88 MB / 1.061 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.0006475/1, allocations: 0.5343 MB / 1.344 GB, free: 13.38 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/1, allocations: 9.969 kB / 1.344 GB, free: 13.38 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.497e-05/1, allocations: 3.5 kB / 1.344 GB, free: 13.38 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.353e-05/1, allocations: 49.94 kB / 1.345 GB, free: 13.32 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.105e-05/1.001, allocations: 32.16 kB / 1.345 GB, free: 13.31 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003005/1.001, allocations: 253.7 kB / 1.345 GB, free: 13.06 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.541e-05/1.001, allocations: 13.92 kB / 1.345 GB, free: 13.06 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.022e-05/1.001, allocations: 24.72 kB / 1.345 GB, free: 13.05 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002173/1.001, allocations: 122.1 kB / 1.345 GB, free: 12.98 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.809e-06/1.001, allocations: 0 / 1.345 GB, free: 12.98 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.699e-05/1.001, allocations: 6.562 kB / 1.345 GB, free: 12.98 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.221e-06/1.001, allocations: 2.969 kB / 1.345 GB, free: 12.98 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001372/1.001, allocations: 74.89 kB / 1.345 GB, free: 12.95 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007857/1.002, allocations: 0.5786 MB / 1.346 GB, free: 12.54 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001906/1.002, allocations: 88.17 kB / 1.346 GB, free: 12.49 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.057e-05/1.002, allocations: 35.77 kB / 1.346 GB, free: 12.47 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.28e-05/1.002, allocations: 6.656 kB / 1.346 GB, free: 12.46 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001821/1.003, allocations: 111.7 kB / 1.346 GB, free: 12.4 MB / 1.061 GB Notification: Performance of pre-optimization done (n=15): time 1.773e-06/1.003, allocations: 3.938 kB / 1.346 GB, free: 12.39 MB / 1.061 GB Notification: Performance of matching and sorting (n=15): time 0.0003548/1.003, allocations: 183.2 kB / 1.346 GB, free: 12.31 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.38e-05/1.003, allocations: 54.81 kB / 1.346 GB, free: 12.25 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001604/1.003, allocations: 190.4 kB / 1.346 GB, free: 12.11 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.566e-05/1.003, allocations: 36 kB / 1.346 GB, free: 12.07 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 7.012e-05/1.003, allocations: 131.6 kB / 1.346 GB, free: 11.95 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.901e-05/1.003, allocations: 36.05 kB / 1.346 GB, free: 11.93 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001211/1.003, allocations: 66 kB / 1.346 GB, free: 11.89 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 6.059e-05/1.003, allocations: 332.5 kB / 1.347 GB, free: 11.57 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001795/1.004, allocations: 83.16 kB / 1.347 GB, free: 11.54 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001965/1.004, allocations: 132 kB / 1.347 GB, free: 11.46 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002323/1.004, allocations: 208 kB / 1.347 GB, free: 11.29 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/1.004, allocations: 0 / 1.347 GB, free: 11.29 MB / 1.061 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005262/1.005, allocations: 351.5 kB / 1.348 GB, free: 11.1 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 4.942e-05/1.005, allocations: 73.61 kB / 1.348 GB, free: 11.03 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/1.005, allocations: 2.25 kB / 1.348 GB, free: 11.03 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.628e-05/1.005, allocations: 5.562 kB / 1.348 GB, free: 11.02 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.81e-05/1.005, allocations: 10.33 kB / 1.348 GB, free: 11.02 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.755e-06/1.005, allocations: 6.219 kB / 1.348 GB, free: 11.02 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003774/1.005, allocations: 67.3 kB / 1.348 GB, free: 11 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.012e-05/1.005, allocations: 15.05 kB / 1.348 GB, free: 11 MB / 1.061 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.0001198/1.005, allocations: 138.4 kB / 1.348 GB, free: 10.88 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.516e-05/1.005, allocations: 15.47 kB / 1.348 GB, free: 10.87 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.135e-05/1.005, allocations: 17.89 kB / 1.348 GB, free: 10.86 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/1.005, allocations: 3.375 kB / 1.348 GB, free: 10.86 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/1.005, allocations: 4.703 kB / 1.348 GB, free: 10.85 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/1.005, allocations: 0.6094 kB / 1.348 GB, free: 10.85 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004507/1.006, allocations: 480.8 kB / 1.348 GB, free: 10.47 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/1.006, allocations: 4 kB / 1.348 GB, free: 10.47 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.461e-05/1.006, allocations: 6.078 kB / 1.348 GB, free: 10.47 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/1.006, allocations: 1.375 kB / 1.348 GB, free: 10.47 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.379e-05/1.006, allocations: 2.344 kB / 1.348 GB, free: 10.47 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/1.006, allocations: 1.375 kB / 1.348 GB, free: 10.47 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/1.006, allocations: 4.734 kB / 1.348 GB, free: 10.46 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002566/1.006, allocations: 248.9 kB / 1.349 GB, free: 10.28 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 4.009e-05/1.006, allocations: 94.66 kB / 1.349 GB, free: 10.18 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.9e-05/1.006, allocations: 3.109 kB / 1.349 GB, free: 10.18 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.198e-05/1.006, allocations: 7.547 kB / 1.349 GB, free: 10.17 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.566e-05/1.006, allocations: 13.98 kB / 1.349 GB, free: 10.17 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.577e-05/1.006, allocations: 8.781 kB / 1.349 GB, free: 10.16 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001035/1.006, allocations: 131.8 kB / 1.349 GB, free: 10.07 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/1.006, allocations: 0 / 1.349 GB, free: 10.07 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003308/1.007, allocations: 55.5 kB / 1.349 GB, free: 10.06 MB / 1.061 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.0004709/1.007, allocations: 0.7982 MB / 1.35 GB, free: 9.344 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004341/1.008, allocations: 281.1 kB / 1.35 GB, free: 9.156 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/1.008, allocations: 0 / 1.35 GB, free: 9.156 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 9.139e-05/1.008, allocations: 49.56 kB / 1.35 GB, free: 9.141 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003637/1.008, allocations: 37.73 kB / 1.35 GB, free: 9.125 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002609/1.011, allocations: 2.328 MB / 1.352 GB, free: 7.391 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000161/1.011, allocations: 0.7228 MB / 1.353 GB, free: 6.691 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 6.532e-05/1.011, allocations: 20.94 kB / 1.353 GB, free: 6.688 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.256e-05/1.011, allocations: 57.66 kB / 1.353 GB, free: 6.645 MB / 1.061 GB Notification: Performance of SimCode: time 6.31e-07/1.011, allocations: 1.062 kB / 1.353 GB, free: 6.645 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02455/1.036, allocations: 4.44 MB / 1.357 GB, free: 6.121 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.716/9.752, allocations: 6.719 kB / 1.357 GB, free: 6.117 MB / 1.061 GB " [Timeout remaining time 290] (rm -f Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_SamplerWithResetThreshold_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_SamplerWithResetThreshold.fmu > Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe 2>&1) [Timeout 840.0] [Calling os._exit(0), Time elapsed: 16.536197471024934] Failed to read output from testmodel.py, exit status != 0: 9.918437818007078 9.944381665 8.940460576 Calling exit ...