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.001718/0.001718, allocations: 88.39 kB / 20.23 MB, free: 4.172 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.001771/0.001771, allocations: 165.3 kB / 23.55 MB, free: 0.8594 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 1.494/1.494, allocations: 177.1 MB / 203.9 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 2.919/2.919, allocations: 377.8 MB / 0.6232 GB, free: 8.531 MB / 0.5886 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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: 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_12_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_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.464e-06/2.464e-06, allocations: 0 / 0.8108 GB, free: 2.109 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.142e-05/3.388e-05, allocations: 6.078 kB / 0.8108 GB, free: 2.105 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.002417/0.002451, allocations: 0.9996 MB / 0.8118 GB, free: 1.129 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.002191/0.004641, allocations: 1.348 MB / 0.8131 GB, free: 15.77 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001172/0.004758, allocations: 7.938 kB / 0.8131 GB, free: 15.76 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0001548/0.004913, allocations: 11.81 kB / 0.8131 GB, free: 15.75 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 8.683e-05/0.005, allocations: 36.88 kB / 0.8132 GB, free: 15.71 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007642/0.005764, allocations: 256.7 kB / 0.8134 GB, free: 15.46 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0004344/0.006199, allocations: 309 kB / 0.8137 GB, free: 15.16 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001898/0.006388, allocations: 64.67 kB / 0.8138 GB, free: 15.1 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002423/0.006631, allocations: 171.7 kB / 0.8139 GB, free: 14.93 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002037/0.006834, allocations: 79.75 kB / 0.814 GB, free: 14.85 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 6.077e-05/0.006895, allocations: 28.97 kB / 0.814 GB, free: 14.82 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001076/0.007003, allocations: 47.98 kB / 0.8141 GB, free: 14.78 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 4.924e-05/0.007052, allocations: 35.84 kB / 0.8141 GB, free: 14.74 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 0.0001412/0.007193, allocations: 92.56 kB / 0.8142 GB, free: 14.65 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0005158/0.007709, allocations: 378.9 kB / 0.8146 GB, free: 14.28 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.007715, allocations: 9.688 kB / 0.8146 GB, free: 14.27 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.142e-06/0.007716, allocations: 0 / 0.8146 GB, free: 14.27 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 6.121e-06/0.007722, allocations: 0 / 0.8146 GB, free: 14.27 MB / 0.7761 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.0008939/0.008616, allocations: 456.9 kB / 0.815 GB, free: 13.78 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.481e-05/0.008661, allocations: 17.5 kB / 0.815 GB, free: 13.77 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000128/0.008789, allocations: 36.8 kB / 0.8151 GB, free: 13.73 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004129/0.009202, allocations: 198.3 kB / 0.8153 GB, free: 13.51 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.826e-05/0.00923, allocations: 12.38 kB / 0.8153 GB, free: 13.5 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.001e-05/0.00928, allocations: 21.75 kB / 0.8153 GB, free: 13.48 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002636/0.009544, allocations: 118.2 kB / 0.8154 GB, free: 13.36 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/0.009557, allocations: 4.172 kB / 0.8154 GB, free: 13.35 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.807e-05/0.009576, allocations: 6.125 kB / 0.8154 GB, free: 13.35 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.968e-06/0.009586, allocations: 8.125 kB / 0.8154 GB, free: 13.34 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001749/0.00976, allocations: 75.91 kB / 0.8155 GB, free: 13.27 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009341/0.01069, allocations: 456.7 kB / 0.8159 GB, free: 12.79 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002208/0.01092, allocations: 87.5 kB / 0.816 GB, free: 12.7 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.725e-05/0.01099, allocations: 36.84 kB / 0.816 GB, free: 12.66 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.374e-05/0.01102, allocations: 4.562 kB / 0.816 GB, free: 12.65 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002135/0.01123, allocations: 116.8 kB / 0.8162 GB, free: 12.53 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=15): time 1.643e-06/0.01123, allocations: 0 / 0.8162 GB, free: 12.53 MB / 0.7761 GB Notification: Performance of matching and sorting (n=15): time 0.0004567/0.01169, allocations: 187.6 kB / 0.8163 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.701e-05/0.01175, allocations: 58 kB / 0.8164 GB, free: 12.27 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002128/0.01196, allocations: 173.3 kB / 0.8166 GB, free: 12.09 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 5.009e-05/0.01201, allocations: 33.7 kB / 0.8166 GB, free: 12.05 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001388/0.01215, allocations: 132.4 kB / 0.8167 GB, free: 11.92 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 4.461e-05/0.01219, allocations: 35.73 kB / 0.8167 GB, free: 11.89 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00014/0.01233, allocations: 65.67 kB / 0.8168 GB, free: 11.82 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001852/0.01252, allocations: 326.8 kB / 0.8171 GB, free: 11.49 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002754/0.01279, allocations: 147.9 kB / 0.8173 GB, free: 11.33 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002964/0.01309, allocations: 198.5 kB / 0.8175 GB, free: 11.11 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003212/0.01341, allocations: 208.3 kB / 0.8177 GB, free: 10.88 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.01341, allocations: 0 / 0.8177 GB, free: 10.88 MB / 0.7761 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0007452/0.01416, allocations: 426.7 kB / 0.8181 GB, free: 10.43 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 8.125e-05/0.01424, allocations: 71.33 kB / 0.8181 GB, free: 10.35 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.104e-05/0.01425, allocations: 4.781 kB / 0.8181 GB, free: 10.35 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.25e-05/0.01427, allocations: 0 / 0.8181 GB, free: 10.35 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.547e-05/0.01435, allocations: 17.09 kB / 0.8181 GB, free: 10.33 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.857e-06/0.01436, allocations: 4 kB / 0.8182 GB, free: 10.33 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003859/0.01474, allocations: 65.56 kB / 0.8182 GB, free: 10.27 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.997e-05/0.01478, allocations: 15.94 kB / 0.8182 GB, free: 10.25 MB / 0.7761 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.0001678/0.01495, allocations: 148.2 kB / 0.8184 GB, free: 10.1 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.382e-05/0.01498, allocations: 11.95 kB / 0.8184 GB, free: 10.09 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.971e-05/0.01502, allocations: 23.62 kB / 0.8184 GB, free: 10.07 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.692e-06/0.01503, allocations: 7.984 kB / 0.8184 GB, free: 10.06 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.01503, allocations: 0 / 0.8184 GB, free: 10.06 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.01504, allocations: 3.984 kB / 0.8184 GB, free: 10.06 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005655/0.01561, allocations: 398.2 kB / 0.8188 GB, free: 9.633 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.01561, allocations: 3.938 kB / 0.8188 GB, free: 9.629 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.377e-05/0.01564, allocations: 6.781 kB / 0.8188 GB, free: 9.625 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.01565, allocations: 0 / 0.8188 GB, free: 9.625 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.422e-05/0.01566, allocations: 4 kB / 0.8188 GB, free: 9.621 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.01566, allocations: 4 kB / 0.8188 GB, free: 9.617 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.01566, allocations: 0 / 0.8188 GB, free: 9.617 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003161/0.01598, allocations: 245.9 kB / 0.819 GB, free: 9.363 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 3.046e-05/0.01601, allocations: 19.83 kB / 0.8191 GB, free: 9.344 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.964e-05/0.01604, allocations: 9.531 kB / 0.8191 GB, free: 9.336 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.006e-05/0.01612, allocations: 0 / 0.8191 GB, free: 9.336 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001602/0.01628, allocations: 19.97 kB / 0.8191 GB, free: 9.316 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.266e-05/0.01629, allocations: 4 kB / 0.8191 GB, free: 9.312 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0001389/0.01643, allocations: 127 kB / 0.8192 GB, free: 9.191 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.01643, allocations: 0 / 0.8192 GB, free: 9.191 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0003284/0.01676, allocations: 52.42 kB / 0.8193 GB, free: 9.141 MB / 0.7761 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.0001966/0.01696, allocations: 113.7 kB / 0.8194 GB, free: 9.02 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.000546/0.0175, allocations: 345.9 kB / 0.8197 GB, free: 8.645 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.0175, allocations: 0.6562 kB / 0.8197 GB, free: 8.645 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 9.65e-05/0.0176, allocations: 48.64 kB / 0.8198 GB, free: 8.598 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003718/0.01797, allocations: 33.28 kB / 0.8198 GB, free: 8.57 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006173/0.01859, allocations: 305 kB / 0.8201 GB, free: 8.25 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001222/0.01871, allocations: 105.6 kB / 0.8202 GB, free: 8.125 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 5.345e-05/0.01876, allocations: 17.48 kB / 0.8202 GB, free: 8.109 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.359e-05/0.01882, allocations: 21.52 kB / 0.8202 GB, free: 8.09 MB / 0.7761 GB Notification: Performance of SimCode: time 5.91e-07/0.01882, allocations: 0 / 0.8202 GB, free: 8.09 MB / 0.7761 GB Notification: Performance of Templates: time 0.00717/0.02599, allocations: 2.9 MB / 0.823 GB, free: 5.312 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.makefile [Timeout 300] (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 & ./Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_SamplerWithResetThreshold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 8.078229492064565]