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.001331/0.001331, allocations: 99.75 kB / 18.95 MB, free: 2.832 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.001588/0.001588, allocations: 216.6 kB / 22.25 MB, free: 5.105 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.48/1.48, allocations: 230.6 MB / 256 MB, free: 7.801 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.248/3.248, allocations: 0.505 GB / 0.8101 GB, free: 23.49 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.001964/0.001964, allocations: 63.62 kB / 1.177 GB, free: 16.73 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3528/0.3548, allocations: 180.2 MB / 1.353 GB, free: 7.93 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.002398/0.3571, allocations: 1.003 MB / 1.354 GB, free: 6.926 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001873/0.359, allocations: 1.335 MB / 1.355 GB, free: 5.578 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001252/0.3591, allocations: 0 / 1.355 GB, free: 5.578 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001555/0.3593, allocations: 23.73 kB / 1.355 GB, free: 5.555 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 7.596e-05/0.3594, allocations: 27.73 kB / 1.355 GB, free: 5.527 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007794/0.3602, allocations: 273.9 kB / 1.355 GB, free: 5.266 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0004813/0.3606, allocations: 303.4 kB / 1.356 GB, free: 4.969 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002823/0.3609, allocations: 68.67 kB / 1.356 GB, free: 4.898 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002444/0.3612, allocations: 107.8 kB / 1.356 GB, free: 4.793 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002765/0.3614, allocations: 115.5 kB / 1.356 GB, free: 4.68 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 8.147e-05/0.3615, allocations: 32 kB / 1.356 GB, free: 4.648 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001351/0.3617, allocations: 51.97 kB / 1.356 GB, free: 4.598 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 7.113e-05/0.3617, allocations: 39.86 kB / 1.356 GB, free: 4.559 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001987/0.3619, allocations: 103.6 kB / 1.356 GB, free: 4.457 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0005893/0.3625, allocations: 339.1 kB / 1.357 GB, free: 4.125 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 9.508e-06/0.3625, allocations: 8 kB / 1.357 GB, free: 4.117 MB / 1.045 GB Notification: Performance of FrontEnd: time 3.446e-06/0.3625, allocations: 0 / 1.357 GB, free: 4.117 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.467e-05/0.3625, allocations: 0 / 1.357 GB, free: 4.117 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.001014/0.3636, allocations: 464.9 kB / 1.357 GB, free: 3.617 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 6.398e-05/0.3636, allocations: 8.031 kB / 1.357 GB, free: 3.609 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.604e-05/0.3637, allocations: 50.67 kB / 1.357 GB, free: 3.551 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.277e-05/0.3638, allocations: 28.8 kB / 1.357 GB, free: 3.523 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005109/0.3643, allocations: 196.2 kB / 1.357 GB, free: 3.305 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.095e-05/0.3643, allocations: 12.38 kB / 1.357 GB, free: 3.293 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.487e-05/0.3644, allocations: 20.38 kB / 1.357 GB, free: 3.273 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002866/0.3647, allocations: 134 kB / 1.357 GB, free: 3.137 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.366e-05/0.3647, allocations: 0 / 1.357 GB, free: 3.137 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.777e-05/0.3647, allocations: 11.98 kB / 1.357 GB, free: 3.125 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.135e-06/0.3647, allocations: 3.984 kB / 1.357 GB, free: 3.121 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001664/0.3649, allocations: 75.91 kB / 1.358 GB, free: 3.047 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009779/0.3659, allocations: 491.4 kB / 1.358 GB, free: 2.523 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002035/0.3661, allocations: 98.53 kB / 1.358 GB, free: 2.418 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.312e-05/0.3661, allocations: 32.86 kB / 1.358 GB, free: 2.383 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.408e-05/0.3662, allocations: 4 kB / 1.358 GB, free: 2.379 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002275/0.3664, allocations: 119.4 kB / 1.358 GB, free: 2.25 MB / 1.045 GB Notification: Performance of pre-optimization done (n=15): time 1.493e-06/0.3664, allocations: 0 / 1.358 GB, free: 2.25 MB / 1.045 GB Notification: Performance of matching and sorting (n=15): time 0.0003886/0.3668, allocations: 179.5 kB / 1.358 GB, free: 2.07 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.504e-05/0.3668, allocations: 55.41 kB / 1.358 GB, free: 2.004 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002046/0.367, allocations: 190.7 kB / 1.359 GB, free: 1.805 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 4.638e-05/0.3671, allocations: 33.7 kB / 1.359 GB, free: 1.766 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001158/0.3672, allocations: 136.4 kB / 1.359 GB, free: 1.629 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.394e-05/0.3672, allocations: 23.81 kB / 1.359 GB, free: 1.605 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001258/0.3674, allocations: 69.67 kB / 1.359 GB, free: 1.531 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001521/0.3675, allocations: 330.8 kB / 1.359 GB, free: 1.199 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002354/0.3678, allocations: 147.3 kB / 1.359 GB, free: 1.043 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002669/0.368, allocations: 198.3 kB / 1.36 GB, free: 0.8203 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003067/0.3683, allocations: 209.7 kB / 1.36 GB, free: 0.5859 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/0.3683, allocations: 4 kB / 1.36 GB, free: 0.582 MB / 1.045 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006432/0.369, allocations: 410.2 kB / 1.36 GB, free: 156 kB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 6.934e-05/0.369, allocations: 71.39 kB / 1.36 GB, free: 72 kB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.3691, allocations: 4 kB / 1.36 GB, free: 68 kB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.595e-05/0.3691, allocations: 0 / 1.36 GB, free: 68 kB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.732e-05/0.3692, allocations: 11.94 kB / 1.36 GB, free: 56 kB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.12e-05/0.3692, allocations: 7.984 kB / 1.36 GB, free: 48 kB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003725/0.3695, allocations: 63.98 kB / 1.36 GB, free: 15.98 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.879e-05/0.3696, allocations: 19.92 kB / 1.36 GB, free: 15.96 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.0001489/0.3697, allocations: 145.7 kB / 1.36 GB, free: 15.81 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.702e-05/0.3698, allocations: 15.91 kB / 1.36 GB, free: 15.8 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.069e-05/0.3698, allocations: 17.47 kB / 1.36 GB, free: 15.78 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.3698, allocations: 0 / 1.36 GB, free: 15.78 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.3698, allocations: 3.984 kB / 1.36 GB, free: 15.77 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.3698, allocations: 4 kB / 1.36 GB, free: 15.77 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005352/0.3704, allocations: 437.7 kB / 1.361 GB, free: 15.29 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.3704, allocations: 0 / 1.361 GB, free: 15.29 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.319e-05/0.3704, allocations: 7.938 kB / 1.361 GB, free: 15.29 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.3704, allocations: 0 / 1.361 GB, free: 15.29 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.045e-05/0.3704, allocations: 0 / 1.361 GB, free: 15.29 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.967e-06/0.3704, allocations: 4 kB / 1.361 GB, free: 15.28 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3704, allocations: 0 / 1.361 GB, free: 15.28 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002794/0.3707, allocations: 242.1 kB / 1.361 GB, free: 15.03 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.036e-05/0.3707, allocations: 23.83 kB / 1.361 GB, free: 15.01 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.506e-05/0.3708, allocations: 3.938 kB / 1.361 GB, free: 15 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.35e-05/0.3708, allocations: 12 kB / 1.361 GB, free: 14.99 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.934e-05/0.3709, allocations: 11.97 kB / 1.361 GB, free: 14.98 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.574e-05/0.3709, allocations: 15.88 kB / 1.361 GB, free: 14.96 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.000124/0.371, allocations: 136.3 kB / 1.361 GB, free: 14.83 MB / 1.061 GB Notification: Performance of sort global known variables: time 9e-08/0.371, allocations: 4 kB / 1.361 GB, free: 14.83 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002955/0.3713, allocations: 40 kB / 1.361 GB, free: 14.79 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.0006482/0.372, allocations: 0.7795 MB / 1.362 GB, free: 13.98 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.000583/0.3726, allocations: 349.9 kB / 1.362 GB, free: 13.61 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.3726, allocations: 0 / 1.362 GB, free: 13.61 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001013/0.3727, allocations: 51.91 kB / 1.362 GB, free: 13.55 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003608/0.373, allocations: 35.91 kB / 1.363 GB, free: 13.52 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003185/0.3762, allocations: 2.574 MB / 1.365 GB, free: 10.78 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001068/0.3763, allocations: 108.1 kB / 1.365 GB, free: 10.65 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 5.959e-05/0.3764, allocations: 17.47 kB / 1.365 GB, free: 10.64 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001012/0.3765, allocations: 59.41 kB / 1.365 GB, free: 10.58 MB / 1.061 GB Notification: Performance of SimCode: time 7.91e-07/0.3765, allocations: 0 / 1.365 GB, free: 10.58 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03714/0.4136, allocations: 5.204 MB / 1.37 GB, free: 5.59 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.48/11.89, allocations: 3.938 kB / 1.37 GB, free: 5.586 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] 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: 18.722016764018917]