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.001415/0.001415, allocations: 97.88 kB / 19.73 MB, free: 2.117 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.001537/0.001537, allocations: 215.4 kB / 23.03 MB, free: 4.922 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.495/1.495, allocations: 230.6 MB / 256.8 MB, free: 7.809 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.317/3.317, allocations: 0.5003 GB / 0.8062 GB, free: 28.28 MB / 0.6231 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.002058/0.002058, allocations: 65.47 kB / 1.171 GB, free: 19.6 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3859/0.3879, allocations: 179 MB / 1.345 GB, free: 15.94 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.002853/0.3908, allocations: 0.993 MB / 1.346 GB, free: 14.94 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.002103/0.3929, allocations: 1.338 MB / 1.348 GB, free: 13.59 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001789/0.3931, allocations: 4 kB / 1.348 GB, free: 13.59 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001577/0.3932, allocations: 19.73 kB / 1.348 GB, free: 13.57 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001083/0.3933, allocations: 31.73 kB / 1.348 GB, free: 13.54 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.00081/0.3941, allocations: 260.3 kB / 1.348 GB, free: 13.29 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0004126/0.3946, allocations: 307.5 kB / 1.348 GB, free: 12.98 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000181/0.3947, allocations: 68.67 kB / 1.348 GB, free: 12.91 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001993/0.3949, allocations: 111.7 kB / 1.348 GB, free: 12.8 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002167/0.3952, allocations: 115.5 kB / 1.348 GB, free: 12.69 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 6.366e-05/0.3952, allocations: 32 kB / 1.348 GB, free: 12.66 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001002/0.3953, allocations: 40 kB / 1.349 GB, free: 12.62 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 4.716e-05/0.3954, allocations: 43.83 kB / 1.349 GB, free: 12.58 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001326/0.3955, allocations: 95.64 kB / 1.349 GB, free: 12.48 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0004392/0.3959, allocations: 355 kB / 1.349 GB, free: 12.14 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.3959, allocations: 0 / 1.349 GB, free: 12.14 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.562e-06/0.3959, allocations: 0 / 1.349 GB, free: 12.14 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.119e-05/0.396, allocations: 4 kB / 1.349 GB, free: 12.13 MB / 1.045 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.0007934/0.3967, allocations: 472.9 kB / 1.349 GB, free: 11.62 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/0.3968, allocations: 12.02 kB / 1.349 GB, free: 11.61 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.91e-05/0.3968, allocations: 4.188 kB / 1.349 GB, free: 11.61 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.151e-05/0.3968, allocations: 42.75 kB / 1.35 GB, free: 11.56 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.669e-05/0.3969, allocations: 32.78 kB / 1.35 GB, free: 11.53 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003815/0.3973, allocations: 192.2 kB / 1.35 GB, free: 11.31 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.37e-05/0.3973, allocations: 12.38 kB / 1.35 GB, free: 11.3 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.74e-05/0.3974, allocations: 20.38 kB / 1.35 GB, free: 11.28 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002434/0.3976, allocations: 133.8 kB / 1.35 GB, free: 11.14 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.3976, allocations: 0 / 1.35 GB, free: 11.14 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.563e-05/0.3977, allocations: 8 kB / 1.35 GB, free: 11.14 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.3977, allocations: 4 kB / 1.35 GB, free: 11.13 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001482/0.3978, allocations: 71.97 kB / 1.35 GB, free: 11.06 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008551/0.3987, allocations: 495.2 kB / 1.35 GB, free: 10.54 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002204/0.3989, allocations: 86.66 kB / 1.351 GB, free: 10.44 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.18e-05/0.399, allocations: 36.84 kB / 1.351 GB, free: 10.4 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.477e-05/0.399, allocations: 4 kB / 1.351 GB, free: 10.4 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002069/0.3992, allocations: 115.3 kB / 1.351 GB, free: 10.27 MB / 1.045 GB Notification: Performance of pre-optimization done (n=15): time 3.437e-06/0.3992, allocations: 7.984 kB / 1.351 GB, free: 10.27 MB / 1.045 GB Notification: Performance of matching and sorting (n=15): time 0.0003929/0.3996, allocations: 184.4 kB / 1.351 GB, free: 10.08 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.502e-05/0.3996, allocations: 59.39 kB / 1.351 GB, free: 10.01 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000191/0.3998, allocations: 182.7 kB / 1.351 GB, free: 9.82 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 4.56e-05/0.3999, allocations: 37.7 kB / 1.351 GB, free: 9.777 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.000106/0.4, allocations: 128.3 kB / 1.351 GB, free: 9.648 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 4.204e-05/0.4, allocations: 35.78 kB / 1.351 GB, free: 9.613 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001287/0.4002, allocations: 61.69 kB / 1.351 GB, free: 9.547 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001582/0.4003, allocations: 334.8 kB / 1.352 GB, free: 9.211 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002368/0.4005, allocations: 151.4 kB / 1.352 GB, free: 9.051 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002553/0.4008, allocations: 193.5 kB / 1.352 GB, free: 8.832 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002827/0.4011, allocations: 206.1 kB / 1.352 GB, free: 8.602 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.4011, allocations: 0 / 1.352 GB, free: 8.602 MB / 1.045 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006213/0.4017, allocations: 412.1 kB / 1.353 GB, free: 8.168 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 6.16e-05/0.4018, allocations: 67.39 kB / 1.353 GB, free: 8.09 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.207e-06/0.4018, allocations: 4 kB / 1.353 GB, free: 8.086 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/0.4018, allocations: 0 / 1.353 GB, free: 8.086 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.41e-05/0.4019, allocations: 15.98 kB / 1.353 GB, free: 8.07 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.197e-06/0.4019, allocations: 11.88 kB / 1.353 GB, free: 8.059 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003385/0.4022, allocations: 55.83 kB / 1.353 GB, free: 8.004 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.154e-05/0.4023, allocations: 28.05 kB / 1.353 GB, free: 7.977 MB / 1.045 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.0001452/0.4024, allocations: 141.7 kB / 1.353 GB, free: 7.828 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.923e-05/0.4024, allocations: 15.91 kB / 1.353 GB, free: 7.812 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.596e-05/0.4025, allocations: 21.45 kB / 1.353 GB, free: 7.789 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.4025, allocations: 0 / 1.353 GB, free: 7.789 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.4025, allocations: 0 / 1.353 GB, free: 7.789 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.092e-05/0.4025, allocations: 0 / 1.353 GB, free: 7.789 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005245/0.403, allocations: 433.6 kB / 1.353 GB, free: 7.316 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.403, allocations: 8 kB / 1.353 GB, free: 7.309 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.746e-05/0.4031, allocations: 11.94 kB / 1.353 GB, free: 7.297 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.4031, allocations: 0 / 1.353 GB, free: 7.297 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.324e-05/0.4031, allocations: 3.984 kB / 1.353 GB, free: 7.293 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.4031, allocations: 4 kB / 1.353 GB, free: 7.289 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.4031, allocations: 0 / 1.353 GB, free: 7.289 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002753/0.4034, allocations: 235.8 kB / 1.354 GB, free: 7.043 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 2.728e-05/0.4034, allocations: 19.84 kB / 1.354 GB, free: 7.023 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.697e-05/0.4034, allocations: 4 kB / 1.354 GB, free: 7.02 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.098e-05/0.4035, allocations: 7.984 kB / 1.354 GB, free: 7.012 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.099e-05/0.4036, allocations: 19.92 kB / 1.354 GB, free: 6.992 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.12e-05/0.4036, allocations: 4 kB / 1.354 GB, free: 6.988 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0001335/0.4037, allocations: 144.8 kB / 1.354 GB, free: 6.848 MB / 1.045 GB Notification: Performance of sort global known variables: time 9e-08/0.4037, allocations: 3.938 kB / 1.354 GB, free: 6.844 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0003049/0.404, allocations: 44 kB / 1.354 GB, free: 6.801 MB / 1.045 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.0006284/0.4046, allocations: 0.7905 MB / 1.355 GB, free: 5.988 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0004799/0.4051, allocations: 346.2 kB / 1.355 GB, free: 5.613 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.4051, allocations: 4.062 kB / 1.355 GB, free: 5.609 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 9.098e-05/0.4052, allocations: 43.98 kB / 1.355 GB, free: 5.566 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003572/0.4056, allocations: 41.02 kB / 1.355 GB, free: 5.527 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003201/0.4088, allocations: 2.584 MB / 1.358 GB, free: 2.777 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001083/0.4089, allocations: 112.1 kB / 1.358 GB, free: 2.652 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 6.152e-05/0.4089, allocations: 17.48 kB / 1.358 GB, free: 2.633 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.452e-05/0.409, allocations: 51.42 kB / 1.358 GB, free: 2.582 MB / 1.045 GB Notification: Performance of SimCode: time 3.8e-07/0.409, allocations: 0 / 1.358 GB, free: 2.582 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02768/0.4367, allocations: 4.796 MB / 1.362 GB, free: 14.02 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.68/12.12, allocations: 3.984 kB / 1.362 GB, free: 14.02 MB / 1.061 GB " [Timeout remaining time 288] (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: 18.969603030011058] Failed to read output from testmodel.py, exit status != 0: 12.28807140106801 12.309854726 11.910516081 Calling exit ...