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.001356/0.001356, allocations: 117.4 kB / 17.17 MB, free: 5.977 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.001457/0.001457, allocations: 214.3 kB / 20.13 MB, free: 3.035 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.554/1.554, allocations: 230.6 MB / 253.5 MB, free: 15.1 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.133/3.133, allocations: 0.49 GB / 0.7923 GB, free: 1.332 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.00202/0.00202, allocations: 67.91 kB / 1.15 GB, free: 15.42 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9604/0.9624, allocations: 176.1 MB / 1.321 GB, free: 24.81 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.002044/0.9645, allocations: 1.062 MB / 1.323 GB, free: 24.11 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001477/0.9659, allocations: 1.366 MB / 1.324 GB, free: 23.11 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001337/0.9661, allocations: 3.094 kB / 1.324 GB, free: 23.11 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001304/0.9662, allocations: 19.08 kB / 1.324 GB, free: 23.09 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 6.724e-05/0.9663, allocations: 30.05 kB / 1.324 GB, free: 23.07 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007019/0.967, allocations: 266.5 kB / 1.324 GB, free: 22.93 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0003045/0.9673, allocations: 311.8 kB / 1.324 GB, free: 22.78 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001573/0.9674, allocations: 57.45 kB / 1.325 GB, free: 22.75 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001089/0.9675, allocations: 114.1 kB / 1.325 GB, free: 22.7 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001534/0.9677, allocations: 115.5 kB / 1.325 GB, free: 22.64 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.599e-05/0.9677, allocations: 31.44 kB / 1.325 GB, free: 22.64 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 9.283e-05/0.9678, allocations: 46.16 kB / 1.325 GB, free: 22.63 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 3.873e-05/0.9679, allocations: 38.34 kB / 1.325 GB, free: 22.61 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001177/0.968, allocations: 112.9 kB / 1.325 GB, free: 22.54 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0003654/0.9683, allocations: 355 kB / 1.325 GB, free: 22.41 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.9684, allocations: 0 / 1.325 GB, free: 22.41 MB / 1.061 GB Notification: Performance of FrontEnd: time 2.355e-06/0.9684, allocations: 0 / 1.325 GB, free: 22.41 MB / 1.061 GB Notification: Performance of Transformations before backend: time 7.334e-06/0.9684, allocations: 0 / 1.325 GB, free: 22.41 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.0007887/0.9692, allocations: 0.5387 MB / 1.326 GB, free: 21.9 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 5.396e-05/0.9692, allocations: 12.42 kB / 1.326 GB, free: 21.89 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.024e-05/0.9692, allocations: 2.656 kB / 1.326 GB, free: 21.89 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.478e-05/0.9693, allocations: 47.23 kB / 1.326 GB, free: 21.85 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.381e-05/0.9693, allocations: 25.88 kB / 1.326 GB, free: 21.84 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003383/0.9697, allocations: 250.6 kB / 1.326 GB, free: 21.59 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.21e-05/0.9697, allocations: 12.78 kB / 1.326 GB, free: 21.59 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.862e-05/0.9697, allocations: 18.62 kB / 1.326 GB, free: 21.59 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002242/0.97, allocations: 124.3 kB / 1.326 GB, free: 21.52 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.97, allocations: 0 / 1.326 GB, free: 21.52 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.111e-05/0.97, allocations: 17.78 kB / 1.326 GB, free: 21.51 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.213e-06/0.97, allocations: 2.781 kB / 1.326 GB, free: 21.51 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001392/0.9701, allocations: 68.28 kB / 1.326 GB, free: 21.48 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008813/0.971, allocations: 0.5787 MB / 1.327 GB, free: 21.07 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002331/0.9713, allocations: 92.19 kB / 1.327 GB, free: 21.02 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.206e-05/0.9713, allocations: 34.88 kB / 1.327 GB, free: 21 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.726e-05/0.9714, allocations: 7.125 kB / 1.327 GB, free: 20.99 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000198/0.9716, allocations: 125.2 kB / 1.327 GB, free: 20.91 MB / 1.061 GB Notification: Performance of pre-optimization done (n=15): time 1.413e-06/0.9716, allocations: 0 / 1.327 GB, free: 20.91 MB / 1.061 GB Notification: Performance of matching and sorting (n=15): time 0.0004385/0.972, allocations: 173.4 kB / 1.327 GB, free: 20.84 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.147e-05/0.972, allocations: 57.56 kB / 1.327 GB, free: 20.77 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002507/0.9723, allocations: 183.1 kB / 1.328 GB, free: 20.64 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 4.569e-05/0.9723, allocations: 38.67 kB / 1.328 GB, free: 20.6 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001264/0.9725, allocations: 133.2 kB / 1.328 GB, free: 20.48 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.865e-05/0.9725, allocations: 40.58 kB / 1.328 GB, free: 20.45 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001334/0.9726, allocations: 66.19 kB / 1.328 GB, free: 20.42 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 6.238e-05/0.9727, allocations: 326.2 kB / 1.328 GB, free: 20.1 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001956/0.9729, allocations: 85.56 kB / 1.328 GB, free: 20.07 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002211/0.9731, allocations: 132.5 kB / 1.328 GB, free: 19.98 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002904/0.9734, allocations: 214.3 kB / 1.329 GB, free: 19.81 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.9734, allocations: 0.8438 kB / 1.329 GB, free: 19.81 MB / 1.061 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006161/0.974, allocations: 344.9 kB / 1.329 GB, free: 19.62 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 5.872e-05/0.9741, allocations: 69.61 kB / 1.329 GB, free: 19.55 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.9741, allocations: 2.312 kB / 1.329 GB, free: 19.55 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.087e-05/0.9741, allocations: 1.906 kB / 1.329 GB, free: 19.55 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.021e-05/0.9742, allocations: 14.12 kB / 1.329 GB, free: 19.55 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.237e-06/0.9742, allocations: 2.5 kB / 1.329 GB, free: 19.55 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003722/0.9746, allocations: 71.45 kB / 1.329 GB, free: 19.53 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.107e-05/0.9746, allocations: 17.86 kB / 1.329 GB, free: 19.53 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.0001278/0.9747, allocations: 148.1 kB / 1.329 GB, free: 19.39 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.851e-05/0.9748, allocations: 14.59 kB / 1.329 GB, free: 19.39 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.45e-05/0.9748, allocations: 17.03 kB / 1.329 GB, free: 19.37 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.9748, allocations: 1.656 kB / 1.329 GB, free: 19.37 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.9748, allocations: 0.5938 kB / 1.329 GB, free: 19.37 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.9748, allocations: 7.938 kB / 1.329 GB, free: 19.36 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006167/0.9755, allocations: 475.9 kB / 1.33 GB, free: 18.99 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.9755, allocations: 0.6875 kB / 1.33 GB, free: 18.99 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.377e-05/0.9755, allocations: 13.06 kB / 1.33 GB, free: 18.98 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.9755, allocations: 0 / 1.33 GB, free: 18.98 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.645e-05/0.9755, allocations: 5.125 kB / 1.33 GB, free: 18.98 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.9755, allocations: 1.219 kB / 1.33 GB, free: 18.98 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.9755, allocations: 0 / 1.33 GB, free: 18.98 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003687/0.9759, allocations: 244 kB / 1.33 GB, free: 18.8 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 5.442e-05/0.9759, allocations: 92.61 kB / 1.33 GB, free: 18.7 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.605e-05/0.976, allocations: 5.594 kB / 1.33 GB, free: 18.7 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.175e-05/0.9761, allocations: 2.844 kB / 1.33 GB, free: 18.7 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.009e-05/0.9762, allocations: 24.66 kB / 1.33 GB, free: 18.68 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.579e-05/0.9762, allocations: 3.312 kB / 1.33 GB, free: 18.68 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001455/0.9763, allocations: 139.6 kB / 1.33 GB, free: 18.59 MB / 1.061 GB Notification: Performance of sort global known variables: time 9e-08/0.9763, allocations: 0 / 1.33 GB, free: 18.59 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003798/0.9767, allocations: 52.17 kB / 1.33 GB, free: 18.57 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.0006848/0.9774, allocations: 0.795 MB / 1.331 GB, free: 17.86 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0005715/0.978, allocations: 282 kB / 1.331 GB, free: 17.68 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.978, allocations: 4.062 kB / 1.331 GB, free: 17.67 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.000117/0.9781, allocations: 48.48 kB / 1.331 GB, free: 17.66 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004014/0.9785, allocations: 39.72 kB / 1.331 GB, free: 17.64 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003086/0.9816, allocations: 2.33 MB / 1.334 GB, free: 15.9 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002116/0.9818, allocations: 0.7229 MB / 1.334 GB, free: 15.2 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 7.571e-05/0.9818, allocations: 16.73 kB / 1.334 GB, free: 15.2 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.755e-05/0.9819, allocations: 54.77 kB / 1.334 GB, free: 15.17 MB / 1.061 GB Notification: Performance of SimCode: time 6.12e-07/0.9819, allocations: 0 / 1.334 GB, free: 15.17 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02372/1.006, allocations: 4.437 MB / 1.339 GB, free: 14.64 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.648/9.654, allocations: 14.19 kB / 1.339 GB, free: 14.63 MB / 1.061 GB " [Timeout remaining time 290] (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: 16.372903485025745] Failed to read output from testmodel.py, exit status != 0: 9.78489372000331 9.800675922 8.82875246 Calling exit ...