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.000845/0.000845, allocations: 76.55 kB / 19.93 MB, free: 4.633 MB / 18.57 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.0007606/0.0007606, allocations: 181.9 kB / 23.22 MB, free: 1.348 MB / 18.57 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 0.85/0.85, allocations: 177.1 MB / 203.5 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] 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 1.77/1.77, allocations: 389 MB / 0.6338 GB, free: 12.72 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/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: translateModel(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|u.y|resSig.y|sam.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold") translateModel(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|u.y|resSig.y|sam.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.804e-06/1.804e-06, allocations: 0 / 1.001 GB, free: 13.01 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.246e-05/2.427e-05, allocations: 2.281 kB / 1.001 GB, free: 13.01 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.001549/0.001573, allocations: 1.002 MB / 1.002 GB, free: 12.01 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001385/0.002958, allocations: 1.341 MB / 1.003 GB, free: 10.65 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.851e-05/0.003057, allocations: 4 kB / 1.003 GB, free: 10.65 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.0001221/0.003179, allocations: 23.73 kB / 1.003 GB, free: 10.62 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 5.801e-05/0.003237, allocations: 31.73 kB / 1.003 GB, free: 10.59 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005192/0.003756, allocations: 279.7 kB / 1.004 GB, free: 10.33 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0002503/0.004006, allocations: 307.4 kB / 1.004 GB, free: 10.03 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001437/0.00415, allocations: 68.66 kB / 1.004 GB, free: 9.961 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000135/0.004285, allocations: 159.8 kB / 1.004 GB, free: 9.805 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001213/0.004406, allocations: 87.73 kB / 1.004 GB, free: 9.719 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 3.408e-05/0.00444, allocations: 32 kB / 1.004 GB, free: 9.688 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 6.54e-05/0.004506, allocations: 40 kB / 1.004 GB, free: 9.648 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 3.506e-05/0.004541, allocations: 43.83 kB / 1.004 GB, free: 9.605 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 7.814e-05/0.004619, allocations: 91.81 kB / 1.004 GB, free: 9.516 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0003047/0.004923, allocations: 382.9 kB / 1.005 GB, free: 9.141 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.004927, allocations: 3.984 kB / 1.005 GB, free: 9.137 MB / 0.9636 GB Notification: Performance of FrontEnd: time 9.92e-07/0.004928, allocations: 0 / 1.005 GB, free: 9.137 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.138e-06/0.004932, allocations: 0 / 1.005 GB, free: 9.137 MB / 0.9636 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.0005469/0.005479, allocations: 464.9 kB / 1.005 GB, free: 8.637 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.005515, allocations: 8.031 kB / 1.005 GB, free: 8.629 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.711e-05/0.005572, allocations: 24.84 kB / 1.005 GB, free: 8.605 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002509/0.005823, allocations: 198.3 kB / 1.005 GB, free: 8.383 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.012e-05/0.005843, allocations: 16.38 kB / 1.005 GB, free: 8.367 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.994e-05/0.005873, allocations: 24.36 kB / 1.005 GB, free: 8.344 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001652/0.006038, allocations: 118.2 kB / 1.005 GB, free: 8.223 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.006047, allocations: 192 / 1.005 GB, free: 8.223 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.543e-05/0.006063, allocations: 8.375 kB / 1.005 GB, free: 8.215 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.571e-06/0.006068, allocations: 4.125 kB / 1.005 GB, free: 8.211 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000103/0.006171, allocations: 75.97 kB / 1.006 GB, free: 8.137 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005615/0.006733, allocations: 459.9 kB / 1.006 GB, free: 7.656 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001447/0.006877, allocations: 86.77 kB / 1.006 GB, free: 7.562 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.272e-05/0.00692, allocations: 40.92 kB / 1.006 GB, free: 7.52 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.805e-05/0.006938, allocations: 0 / 1.006 GB, free: 7.52 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001317/0.00707, allocations: 114.1 kB / 1.006 GB, free: 7.398 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=15): time 1.202e-06/0.007071, allocations: 0 / 1.006 GB, free: 7.398 MB / 0.9636 GB Notification: Performance of matching and sorting (n=15): time 0.0002925/0.007363, allocations: 189.4 kB / 1.006 GB, free: 7.207 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.214e-05/0.007406, allocations: 55.41 kB / 1.006 GB, free: 7.141 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001252/0.007531, allocations: 163.3 kB / 1.007 GB, free: 6.969 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 3.151e-05/0.007562, allocations: 41.7 kB / 1.007 GB, free: 6.922 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 8.107e-05/0.007643, allocations: 128.4 kB / 1.007 GB, free: 6.789 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 3.209e-05/0.007675, allocations: 43.67 kB / 1.007 GB, free: 6.746 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.183e-05/0.007757, allocations: 61.69 kB / 1.007 GB, free: 6.68 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 9.305e-05/0.00785, allocations: 326.8 kB / 1.007 GB, free: 6.352 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001597/0.00801, allocations: 151.3 kB / 1.007 GB, free: 6.191 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00017/0.00818, allocations: 196.4 kB / 1.008 GB, free: 5.973 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001894/0.008369, allocations: 213.9 kB / 1.008 GB, free: 5.734 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.008373, allocations: 0 / 1.008 GB, free: 5.734 MB / 0.9636 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004061/0.008779, allocations: 414.4 kB / 1.008 GB, free: 5.301 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 5.456e-05/0.008834, allocations: 71.33 kB / 1.008 GB, free: 5.219 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.008841, allocations: 0 / 1.008 GB, free: 5.219 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.808e-05/0.008859, allocations: 4 kB / 1.008 GB, free: 5.215 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.302e-05/0.008922, allocations: 12 kB / 1.008 GB, free: 5.203 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.195e-06/0.00893, allocations: 3.984 kB / 1.008 GB, free: 5.199 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001946/0.009125, allocations: 63.98 kB / 1.008 GB, free: 5.137 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.73e-05/0.009152, allocations: 19.98 kB / 1.008 GB, free: 5.117 MB / 0.9636 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.0001136/0.009266, allocations: 137.8 kB / 1.008 GB, free: 4.973 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.559e-05/0.009281, allocations: 11.91 kB / 1.008 GB, free: 4.961 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.711e-05/0.009319, allocations: 25.41 kB / 1.008 GB, free: 4.934 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.055e-06/0.009322, allocations: 4 kB / 1.008 GB, free: 4.93 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.00933, allocations: 7.984 kB / 1.008 GB, free: 4.922 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.009334, allocations: 0 / 1.008 GB, free: 4.922 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003539/0.009688, allocations: 390.3 kB / 1.009 GB, free: 4.504 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.00969, allocations: 3.938 kB / 1.009 GB, free: 4.5 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.805e-05/0.009719, allocations: 12 kB / 1.009 GB, free: 4.488 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.009721, allocations: 0 / 1.009 GB, free: 4.488 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.728e-06/0.009731, allocations: 0 / 1.009 GB, free: 4.488 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.009733, allocations: 0 / 1.009 GB, free: 4.488 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.009736, allocations: 7.984 kB / 1.009 GB, free: 4.48 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001748/0.009911, allocations: 242.2 kB / 1.009 GB, free: 4.23 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 1.743e-05/0.009928, allocations: 19.83 kB / 1.009 GB, free: 4.211 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.933e-05/0.009948, allocations: 8 kB / 1.009 GB, free: 4.203 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.777e-05/0.009995, allocations: 0 / 1.009 GB, free: 4.203 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.518e-05/0.01006, allocations: 15.97 kB / 1.009 GB, free: 4.188 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.117e-06/0.01007, allocations: 8 kB / 1.009 GB, free: 4.18 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 7.006e-05/0.01014, allocations: 124.9 kB / 1.009 GB, free: 4.059 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5e-08/0.01014, allocations: 0 / 1.009 GB, free: 4.059 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0003189/0.01046, allocations: 51.89 kB / 1.009 GB, free: 4.008 MB / 0.9636 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.0001565/0.01062, allocations: 119.2 kB / 1.009 GB, free: 3.883 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0003229/0.01094, allocations: 342 kB / 1.01 GB, free: 3.512 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.01094, allocations: 0 / 1.01 GB, free: 3.512 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 6.18e-05/0.011, allocations: 47.92 kB / 1.01 GB, free: 3.465 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002457/0.01125, allocations: 40.16 kB / 1.01 GB, free: 3.426 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004142/0.01166, allocations: 320.2 kB / 1.01 GB, free: 3.074 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.973e-05/0.01173, allocations: 104.1 kB / 1.01 GB, free: 2.957 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.608e-05/0.01177, allocations: 24.48 kB / 1.01 GB, free: 2.934 MB / 0.9636 GB Notification: Performance of SimCode: time 5.61e-07/0.01177, allocations: 0 / 1.01 GB, free: 2.934 MB / 0.9636 GB Notification: Performance of Templates: time 0.002973/0.01474, allocations: 2.475 MB / 1.013 GB, free: 496 kB / 0.9636 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.makefile [Timeout 300] (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 & ./Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe 2>&1) [Timeout 800] 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/jenkins/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: 6.7197119276970625]