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.002028/0.002028, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.002882/0.002882, allocations: 216.9 kB / 23.04 MB, free: 5.074 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.543/1.543, allocations: 230.6 MB / 256.8 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.252/3.252, allocations: 0.49 GB / 0.7959 GB, free: 33.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="cs",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="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.002922/0.002922, allocations: 60.27 kB / 1.155 GB, free: 25.75 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3716/0.3745, allocations: 176.1 MB / 1.327 GB, free: 1.969 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.002817/0.3773, allocations: 1.057 MB / 1.328 GB, free: 0.918 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002137/0.3794, allocations: 1.365 MB / 1.329 GB, free: 15.54 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000131/0.3796, allocations: 7.938 kB / 1.329 GB, free: 15.53 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001318/0.3797, allocations: 11.81 kB / 1.329 GB, free: 15.52 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.998e-05/0.3798, allocations: 31.72 kB / 1.329 GB, free: 15.49 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007328/0.3805, allocations: 274.8 kB / 1.329 GB, free: 15.23 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0004163/0.3809, allocations: 299.5 kB / 1.33 GB, free: 14.93 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002028/0.3811, allocations: 64.69 kB / 1.33 GB, free: 14.87 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001612/0.3813, allocations: 123.6 kB / 1.33 GB, free: 14.75 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001843/0.3815, allocations: 111.6 kB / 1.33 GB, free: 14.64 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.982e-05/0.3815, allocations: 32 kB / 1.33 GB, free: 14.61 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 9.646e-05/0.3816, allocations: 43.98 kB / 1.33 GB, free: 14.56 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 4.074e-05/0.3817, allocations: 31.92 kB / 1.33 GB, free: 14.53 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001412/0.3818, allocations: 119.5 kB / 1.33 GB, free: 14.41 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004339/0.3823, allocations: 347.1 kB / 1.33 GB, free: 14.07 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.3823, allocations: 4 kB / 1.33 GB, free: 14.07 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.653e-06/0.3823, allocations: 0 / 1.33 GB, free: 14.07 MB / 1.029 GB Notification: Performance of Transformations before backend: time 9.568e-06/0.3823, allocations: 0 / 1.33 GB, free: 14.07 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.0007994/0.3831, allocations: 472.9 kB / 1.331 GB, free: 13.56 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/0.3831, allocations: 12.03 kB / 1.331 GB, free: 13.55 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.906e-05/0.3831, allocations: 8.125 kB / 1.331 GB, free: 13.54 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001651/0.3833, allocations: 54.61 kB / 1.331 GB, free: 13.48 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.791e-05/0.3834, allocations: 24.84 kB / 1.331 GB, free: 13.46 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004252/0.3838, allocations: 188.1 kB / 1.331 GB, free: 13.25 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.868e-05/0.3838, allocations: 12.38 kB / 1.331 GB, free: 13.23 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.454e-05/0.3839, allocations: 28.38 kB / 1.331 GB, free: 13.21 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002592/0.3841, allocations: 121.7 kB / 1.331 GB, free: 13.08 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.3842, allocations: 0 / 1.331 GB, free: 13.08 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.107e-05/0.3842, allocations: 8 kB / 1.331 GB, free: 13.07 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.076e-05/0.3842, allocations: 3.984 kB / 1.331 GB, free: 13.07 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001634/0.3843, allocations: 79.97 kB / 1.331 GB, free: 12.99 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000949/0.3853, allocations: 0.5498 MB / 1.332 GB, free: 12.4 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002204/0.3855, allocations: 86.72 kB / 1.332 GB, free: 12.3 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.743e-05/0.3856, allocations: 32.84 kB / 1.332 GB, free: 12.27 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.277e-05/0.3856, allocations: 0 / 1.332 GB, free: 12.27 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002242/0.3858, allocations: 119.5 kB / 1.332 GB, free: 12.14 MB / 1.029 GB Notification: Performance of pre-optimization done (n=15): time 1.843e-06/0.3858, allocations: 4 kB / 1.332 GB, free: 12.14 MB / 1.029 GB Notification: Performance of matching and sorting (n=15): time 0.0004185/0.3863, allocations: 181.5 kB / 1.332 GB, free: 11.95 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001873/0.3864, allocations: 51.41 kB / 1.332 GB, free: 11.89 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002462/0.3867, allocations: 191.2 kB / 1.333 GB, free: 11.69 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 8.627e-05/0.3868, allocations: 37.69 kB / 1.333 GB, free: 11.65 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.000106/0.3869, allocations: 132.3 kB / 1.333 GB, free: 11.52 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.864e-05/0.3869, allocations: 35.73 kB / 1.333 GB, free: 11.48 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001425/0.3871, allocations: 65.69 kB / 1.333 GB, free: 11.41 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0002415/0.3873, allocations: 338.8 kB / 1.333 GB, free: 11.07 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001894/0.3875, allocations: 79.97 kB / 1.333 GB, free: 10.99 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002381/0.3877, allocations: 130.9 kB / 1.333 GB, free: 10.85 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003331/0.3881, allocations: 214.2 kB / 1.334 GB, free: 10.61 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.3881, allocations: 0 / 1.334 GB, free: 10.61 MB / 1.029 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006799/0.3888, allocations: 338.1 kB / 1.334 GB, free: 10.26 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 6.682e-05/0.3888, allocations: 67.39 kB / 1.334 GB, free: 10.18 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.3888, allocations: 0 / 1.334 GB, free: 10.18 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.665e-05/0.3888, allocations: 4.156 kB / 1.334 GB, free: 10.18 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.54e-05/0.3889, allocations: 23.92 kB / 1.334 GB, free: 10.16 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.237e-06/0.3889, allocations: 3.984 kB / 1.334 GB, free: 10.15 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003355/0.3893, allocations: 59.83 kB / 1.334 GB, free: 10.09 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.952e-05/0.3893, allocations: 23.92 kB / 1.334 GB, free: 10.07 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.0001725/0.3895, allocations: 149.7 kB / 1.334 GB, free: 9.914 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.795e-05/0.3895, allocations: 19.86 kB / 1.334 GB, free: 9.895 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.169e-05/0.3896, allocations: 21.45 kB / 1.334 GB, free: 9.863 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.3896, allocations: 0 / 1.334 GB, free: 9.863 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.3896, allocations: 3.938 kB / 1.334 GB, free: 9.859 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.3896, allocations: 0 / 1.334 GB, free: 9.859 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006461/0.3902, allocations: 451.7 kB / 1.335 GB, free: 9.371 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.3902, allocations: 4 kB / 1.335 GB, free: 9.367 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.093e-05/0.3903, allocations: 8 kB / 1.335 GB, free: 9.359 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.321e-05/0.3903, allocations: 7.984 kB / 1.335 GB, free: 9.352 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.039e-05/0.3903, allocations: 0 / 1.335 GB, free: 9.352 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.3903, allocations: 0 / 1.335 GB, free: 9.352 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.3903, allocations: 0 / 1.335 GB, free: 9.352 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002987/0.3906, allocations: 243.8 kB / 1.335 GB, free: 9.098 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.777e-05/0.3906, allocations: 19.84 kB / 1.335 GB, free: 9.078 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.472e-05/0.3906, allocations: 0 / 1.335 GB, free: 9.078 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.485e-05/0.3907, allocations: 15.98 kB / 1.335 GB, free: 9.062 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.437e-05/0.3908, allocations: 11.92 kB / 1.335 GB, free: 9.051 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.606e-05/0.3908, allocations: 11.98 kB / 1.335 GB, free: 9.039 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001312/0.3909, allocations: 136.3 kB / 1.335 GB, free: 8.906 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3909, allocations: 0 / 1.335 GB, free: 8.906 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003301/0.3913, allocations: 47.95 kB / 1.335 GB, free: 8.859 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.0007643/0.392, allocations: 0.7888 MB / 1.336 GB, free: 8.047 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005149/0.3925, allocations: 282.6 kB / 1.336 GB, free: 7.746 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.3925, allocations: 0 / 1.336 GB, free: 7.746 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001684/0.3927, allocations: 47.92 kB / 1.336 GB, free: 7.699 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003741/0.3931, allocations: 32.22 kB / 1.336 GB, free: 7.668 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003181/0.3963, allocations: 2.326 MB / 1.339 GB, free: 5.223 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004385/0.3967, allocations: 0.7203 MB / 1.339 GB, free: 4.477 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 6.646e-05/0.3968, allocations: 17.48 kB / 1.339 GB, free: 4.461 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.836e-05/0.3969, allocations: 55.42 kB / 1.339 GB, free: 4.41 MB / 1.029 GB Notification: Performance of SimCode: time 4.71e-07/0.3969, allocations: 0 / 1.339 GB, free: 4.41 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02885/0.4257, allocations: 4.573 MB / 1.344 GB, free: 60 kB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/11.97, allocations: 9.859 kB / 1.344 GB, free: 52 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] [Calling os._exit(0), Time elapsed: 18.966031449032016] Failed to read output from testmodel.py, exit status != 0: 12.137054392020218 12.152248538 11.766736188 Calling exit ...