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.001497/0.001497, allocations: 106.9 kB / 16.45 MB, free: 6.5 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.001633/0.001633, allocations: 210.4 kB / 19.43 MB, free: 3.656 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.482/1.482, allocations: 230.6 MB / 252.8 MB, free: 8.953 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.358/3.358, allocations: 0.505 GB / 0.8066 GB, free: 23.22 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="me",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="me",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.002035/0.002035, allocations: 64.08 kB / 1.172 GB, free: 17.39 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.343/0.345, allocations: 180.2 MB / 1.348 GB, free: 9.973 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.002375/0.3474, allocations: 1.059 MB / 1.349 GB, free: 8.91 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.00202/0.3494, allocations: 1.358 MB / 1.35 GB, free: 7.539 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001128/0.3495, allocations: 3.938 kB / 1.35 GB, free: 7.535 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001277/0.3497, allocations: 19.8 kB / 1.35 GB, free: 7.516 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 7.448e-05/0.3497, allocations: 23.75 kB / 1.35 GB, free: 7.492 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006827/0.3504, allocations: 278.4 kB / 1.35 GB, free: 7.227 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0003569/0.3508, allocations: 299.5 kB / 1.351 GB, free: 6.934 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001871/0.351, allocations: 68.33 kB / 1.351 GB, free: 6.867 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001361/0.3511, allocations: 119.6 kB / 1.351 GB, free: 6.75 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001749/0.3513, allocations: 103.6 kB / 1.351 GB, free: 6.648 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 5.114e-05/0.3513, allocations: 32 kB / 1.351 GB, free: 6.617 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 9.934e-05/0.3514, allocations: 51.97 kB / 1.351 GB, free: 6.566 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 4.62e-05/0.3515, allocations: 43.91 kB / 1.351 GB, free: 6.523 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001311/0.3516, allocations: 115.5 kB / 1.351 GB, free: 6.41 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0004153/0.352, allocations: 343.1 kB / 1.352 GB, free: 6.074 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.352, allocations: 0 / 1.352 GB, free: 6.074 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.442e-06/0.352, allocations: 0 / 1.352 GB, free: 6.074 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.641e-06/0.352, allocations: 0 / 1.352 GB, free: 6.074 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.0007897/0.3528, allocations: 0.5352 MB / 1.352 GB, free: 5.477 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 5.943e-05/0.3529, allocations: 11.98 kB / 1.352 GB, free: 5.465 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.481e-05/0.3529, allocations: 46.73 kB / 1.352 GB, free: 5.41 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.242e-05/0.353, allocations: 28.8 kB / 1.352 GB, free: 5.383 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003764/0.3534, allocations: 256.9 kB / 1.352 GB, free: 5.09 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.929e-05/0.3534, allocations: 16.31 kB / 1.352 GB, free: 5.074 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.249e-05/0.3534, allocations: 20.38 kB / 1.352 GB, free: 5.055 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002399/0.3537, allocations: 133.9 kB / 1.353 GB, free: 4.918 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.644e-06/0.3537, allocations: 0 / 1.353 GB, free: 4.918 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.519e-05/0.3537, allocations: 4 kB / 1.353 GB, free: 4.914 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/0.3537, allocations: 4 kB / 1.353 GB, free: 4.91 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001507/0.3539, allocations: 67.97 kB / 1.353 GB, free: 4.844 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008718/0.3547, allocations: 0.586 MB / 1.353 GB, free: 4.207 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001908/0.3549, allocations: 86.53 kB / 1.353 GB, free: 4.113 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.138e-05/0.355, allocations: 36.98 kB / 1.353 GB, free: 4.074 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.899e-05/0.355, allocations: 4 kB / 1.353 GB, free: 4.07 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001896/0.3552, allocations: 117.2 kB / 1.353 GB, free: 3.945 MB / 1.045 GB Notification: Performance of pre-optimization done (n=15): time 1.503e-06/0.3552, allocations: 0 / 1.353 GB, free: 3.945 MB / 1.045 GB Notification: Performance of matching and sorting (n=15): time 0.0003683/0.3556, allocations: 181.5 kB / 1.354 GB, free: 3.762 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.183e-05/0.3556, allocations: 51.41 kB / 1.354 GB, free: 3.699 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000186/0.3558, allocations: 190.6 kB / 1.354 GB, free: 3.496 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 4.185e-05/0.3559, allocations: 33.7 kB / 1.354 GB, free: 3.457 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001044/0.356, allocations: 140.4 kB / 1.354 GB, free: 3.316 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.122e-05/0.356, allocations: 27.75 kB / 1.354 GB, free: 3.289 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001307/0.3561, allocations: 73.61 kB / 1.354 GB, free: 3.211 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.000169/0.3563, allocations: 326.8 kB / 1.354 GB, free: 2.883 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001922/0.3565, allocations: 87.95 kB / 1.355 GB, free: 2.797 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002331/0.3567, allocations: 122.5 kB / 1.355 GB, free: 2.66 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002909/0.357, allocations: 214.4 kB / 1.355 GB, free: 2.422 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.357, allocations: 0 / 1.355 GB, free: 2.422 MB / 1.045 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005876/0.3576, allocations: 348.6 kB / 1.355 GB, free: 2.062 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 6.62e-05/0.3577, allocations: 74.05 kB / 1.355 GB, free: 1.98 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.3577, allocations: 0 / 1.355 GB, free: 1.98 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/0.3577, allocations: 4 kB / 1.355 GB, free: 1.977 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.735e-05/0.3577, allocations: 11.94 kB / 1.355 GB, free: 1.965 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.615e-06/0.3578, allocations: 3.984 kB / 1.355 GB, free: 1.961 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003589/0.3581, allocations: 71.98 kB / 1.355 GB, free: 1.891 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.545e-05/0.3581, allocations: 15.98 kB / 1.355 GB, free: 1.875 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.0001475/0.3583, allocations: 141.7 kB / 1.355 GB, free: 1.727 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.775e-05/0.3583, allocations: 15.91 kB / 1.355 GB, free: 1.711 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.534e-05/0.3584, allocations: 17.52 kB / 1.356 GB, free: 1.688 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.3584, allocations: 7.938 kB / 1.356 GB, free: 1.68 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.3584, allocations: 0 / 1.356 GB, free: 1.68 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.3584, allocations: 4 kB / 1.356 GB, free: 1.676 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005463/0.3589, allocations: 480.6 kB / 1.356 GB, free: 1.152 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.3589, allocations: 0 / 1.356 GB, free: 1.152 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.148e-05/0.359, allocations: 4 kB / 1.356 GB, free: 1.148 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.359, allocations: 0 / 1.356 GB, free: 1.148 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.498e-05/0.359, allocations: 11.98 kB / 1.356 GB, free: 1.137 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.492e-06/0.359, allocations: 0 / 1.356 GB, free: 1.137 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.359, allocations: 0 / 1.356 GB, free: 1.137 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002784/0.3593, allocations: 255.7 kB / 1.356 GB, free: 0.8711 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 6.193e-05/0.3593, allocations: 89.02 kB / 1.356 GB, free: 0.7656 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.618e-05/0.3593, allocations: 4 kB / 1.356 GB, free: 0.7617 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.01e-05/0.3594, allocations: 7.984 kB / 1.356 GB, free: 0.7539 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.208e-05/0.3595, allocations: 11.98 kB / 1.356 GB, free: 0.7422 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.218e-05/0.3595, allocations: 7.938 kB / 1.356 GB, free: 0.7344 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0001222/0.3596, allocations: 131.2 kB / 1.356 GB, free: 0.6055 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.3596, allocations: 0 / 1.356 GB, free: 0.6055 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0003112/0.3599, allocations: 51.92 kB / 1.357 GB, free: 0.5547 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.0007078/0.3606, allocations: 0.7892 MB / 1.357 GB, free: 15.74 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004823/0.3611, allocations: 282.6 kB / 1.358 GB, free: 15.44 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.3611, allocations: 8.25 kB / 1.358 GB, free: 15.43 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001025/0.3612, allocations: 55.89 kB / 1.358 GB, free: 15.38 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003632/0.3616, allocations: 28.58 kB / 1.358 GB, free: 15.35 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003155/0.3647, allocations: 2.319 MB / 1.36 GB, free: 12.92 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003646/0.3651, allocations: 0.7241 MB / 1.361 GB, free: 12.17 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 5.803e-05/0.3652, allocations: 17.55 kB / 1.361 GB, free: 12.15 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.744e-05/0.3652, allocations: 55.41 kB / 1.361 GB, free: 12.1 MB / 1.061 GB Notification: Performance of SimCode: time 4.41e-07/0.3652, allocations: 0 / 1.361 GB, free: 12.1 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03056/0.3958, allocations: 4.412 MB / 1.365 GB, free: 7.906 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.288/8.683, allocations: 9.375 kB / 1.365 GB, free: 7.902 MB / 1.061 GB " [Timeout remaining time 291] (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] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_SamplerWithResetThreshold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.513700680108741]