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.001837/0.001837, 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.002171/0.002171, allocations: 218.7 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.561/1.561, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.288/3.288, allocations: 0.49 GB / 0.7959 GB, free: 35.43 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.002013/0.002013, allocations: 60.28 kB / 1.155 GB, free: 25.45 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3701/0.3721, allocations: 176.1 MB / 1.327 GB, free: 1.488 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.002938/0.3751, allocations: 0.9982 MB / 1.328 GB, free: 0.4961 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002168/0.3772, allocations: 1.338 MB / 1.329 GB, free: 15.14 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002193/0.3775, allocations: 3.938 kB / 1.329 GB, free: 15.14 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001795/0.3776, allocations: 23.73 kB / 1.329 GB, free: 15.12 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001039/0.3777, allocations: 23.8 kB / 1.329 GB, free: 15.09 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009293/0.3787, allocations: 272.4 kB / 1.329 GB, free: 14.83 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0004029/0.3791, allocations: 299.5 kB / 1.329 GB, free: 14.54 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002002/0.3793, allocations: 64.67 kB / 1.33 GB, free: 14.47 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001401/0.3794, allocations: 119.7 kB / 1.33 GB, free: 14.36 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001876/0.3796, allocations: 107.6 kB / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.783e-05/0.3797, allocations: 32 kB / 1.33 GB, free: 14.22 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001024/0.3798, allocations: 43.97 kB / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 4.935e-05/0.3798, allocations: 39.86 kB / 1.33 GB, free: 14.14 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.000133/0.3799, allocations: 103.6 kB / 1.33 GB, free: 14.04 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.000461/0.3804, allocations: 347.1 kB / 1.33 GB, free: 13.7 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.3804, allocations: 0 / 1.33 GB, free: 13.7 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.743e-06/0.3804, allocations: 0 / 1.33 GB, free: 13.7 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.434e-06/0.3804, allocations: 0 / 1.33 GB, free: 13.7 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.0008151/0.3812, allocations: 468.8 kB / 1.331 GB, free: 13.19 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/0.3813, allocations: 12.03 kB / 1.331 GB, free: 13.18 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.294e-05/0.3813, allocations: 8.172 kB / 1.331 GB, free: 13.17 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.35e-05/0.3813, allocations: 42.73 kB / 1.331 GB, free: 13.12 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.401e-05/0.3814, allocations: 28.78 kB / 1.331 GB, free: 13.09 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004127/0.3818, allocations: 199.8 kB / 1.331 GB, free: 12.87 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.779e-05/0.3819, allocations: 16.38 kB / 1.331 GB, free: 12.86 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.554e-05/0.3819, allocations: 20.38 kB / 1.331 GB, free: 12.84 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000239/0.3821, allocations: 125.8 kB / 1.331 GB, free: 12.71 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.3821, allocations: 0 / 1.331 GB, free: 12.71 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.94e-05/0.3822, allocations: 11.98 kB / 1.331 GB, free: 12.7 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.3822, allocations: 3.984 kB / 1.331 GB, free: 12.69 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001495/0.3823, allocations: 79.91 kB / 1.331 GB, free: 12.61 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008228/0.3831, allocations: 0.4914 MB / 1.332 GB, free: 12.08 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001913/0.3833, allocations: 82.59 kB / 1.332 GB, free: 11.99 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.759e-05/0.3834, allocations: 41.11 kB / 1.332 GB, free: 11.95 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.863e-05/0.3834, allocations: 0 / 1.332 GB, free: 11.95 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001947/0.3836, allocations: 107.3 kB / 1.332 GB, free: 11.83 MB / 1.029 GB Notification: Performance of pre-optimization done (n=15): time 1.573e-06/0.3836, allocations: 0 / 1.332 GB, free: 11.83 MB / 1.029 GB Notification: Performance of matching and sorting (n=15): time 0.0003951/0.384, allocations: 183.5 kB / 1.332 GB, free: 11.64 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.526e-05/0.3841, allocations: 63.34 kB / 1.332 GB, free: 11.57 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001934/0.3843, allocations: 195.2 kB / 1.332 GB, free: 11.37 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.262e-05/0.3843, allocations: 33.7 kB / 1.332 GB, free: 11.33 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001057/0.3844, allocations: 132.4 kB / 1.333 GB, free: 11.2 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.713e-05/0.3845, allocations: 31.77 kB / 1.333 GB, free: 11.16 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001267/0.3846, allocations: 69.67 kB / 1.333 GB, free: 11.09 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001483/0.3847, allocations: 326.8 kB / 1.333 GB, free: 10.76 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002222/0.3849, allocations: 147.3 kB / 1.333 GB, free: 10.61 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002506/0.3852, allocations: 198.3 kB / 1.333 GB, free: 10.38 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002763/0.3855, allocations: 214.3 kB / 1.334 GB, free: 10.14 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.3855, allocations: 0 / 1.334 GB, free: 10.14 MB / 1.029 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006047/0.3861, allocations: 406.5 kB / 1.334 GB, free: 9.719 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 6.938e-05/0.3862, allocations: 67.39 kB / 1.334 GB, free: 9.641 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.99e-06/0.3862, allocations: 4 kB / 1.334 GB, free: 9.637 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.3862, allocations: 0 / 1.334 GB, free: 9.637 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.126e-05/0.3862, allocations: 12 kB / 1.334 GB, free: 9.625 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.606e-06/0.3863, allocations: 4.156 kB / 1.334 GB, free: 9.621 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003451/0.3866, allocations: 71.81 kB / 1.334 GB, free: 9.551 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.707e-05/0.3866, allocations: 12 kB / 1.334 GB, free: 9.539 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.0001465/0.3868, allocations: 149.6 kB / 1.334 GB, free: 9.383 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.856e-05/0.3868, allocations: 19.86 kB / 1.334 GB, free: 9.363 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.082e-05/0.3869, allocations: 21.47 kB / 1.334 GB, free: 9.332 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.3869, allocations: 0 / 1.334 GB, free: 9.332 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.3869, allocations: 4 kB / 1.334 GB, free: 9.328 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.3869, allocations: 7.922 kB / 1.334 GB, free: 9.32 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000511/0.3874, allocations: 429.6 kB / 1.335 GB, free: 8.852 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.3874, allocations: 0 / 1.335 GB, free: 8.852 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.266e-05/0.3874, allocations: 7.938 kB / 1.335 GB, free: 8.844 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.3874, allocations: 0 / 1.335 GB, free: 8.844 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.799e-05/0.3874, allocations: 8 kB / 1.335 GB, free: 8.836 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.3874, allocations: 0 / 1.335 GB, free: 8.836 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.3874, allocations: 4 kB / 1.335 GB, free: 8.832 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002678/0.3877, allocations: 246.4 kB / 1.335 GB, free: 8.578 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.181e-05/0.3877, allocations: 19.83 kB / 1.335 GB, free: 8.559 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.759e-05/0.3878, allocations: 4 kB / 1.335 GB, free: 8.555 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.92e-05/0.3879, allocations: 4 kB / 1.335 GB, free: 8.551 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.642e-05/0.3879, allocations: 19.91 kB / 1.335 GB, free: 8.531 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.107e-05/0.3879, allocations: 4 kB / 1.335 GB, free: 8.527 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001212/0.3881, allocations: 140.3 kB / 1.335 GB, free: 8.391 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3881, allocations: 0 / 1.335 GB, free: 8.391 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003052/0.3884, allocations: 51.94 kB / 1.335 GB, free: 8.34 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.0006173/0.389, allocations: 0.7865 MB / 1.336 GB, free: 7.527 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005117/0.3895, allocations: 342 kB / 1.336 GB, free: 7.156 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3895, allocations: 4 kB / 1.336 GB, free: 7.152 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 9.268e-05/0.3896, allocations: 50.88 kB / 1.336 GB, free: 7.105 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003652/0.3899, allocations: 36.22 kB / 1.336 GB, free: 7.07 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003072/0.393, allocations: 2.57 MB / 1.339 GB, free: 4.328 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001032/0.3931, allocations: 108.1 kB / 1.339 GB, free: 4.207 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 6.33e-05/0.3932, allocations: 17.48 kB / 1.339 GB, free: 4.188 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.798e-05/0.3933, allocations: 63.39 kB / 1.339 GB, free: 4.125 MB / 1.029 GB Notification: Performance of SimCode: time 4.21e-07/0.3933, allocations: 0 / 1.339 GB, free: 4.125 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02658/0.4199, allocations: 4.79 MB / 1.344 GB, free: 15.6 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.65/12.07, allocations: 24.53 kB / 1.344 GB, free: 15.57 MB / 1.045 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: 19.13749411900062] Failed to read output from testmodel.py, exit status != 0: 12.230889960075729 12.254414964 11.869502079 Calling exit ...