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.001789/0.001789, allocations: 79.73 kB / 19.76 MB, free: 1.871 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.002243/0.002243, allocations: 158 kB / 23.01 MB, free: 4.598 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.535/1.535, allocations: 177.2 MB / 203.4 MB, free: 8.984 MB / 190.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 2.857/2.857, allocations: 377.9 MB / 0.6228 GB, free: 12.59 MB / 0.5919 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: 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: 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.002122/0.002122, allocations: 68.08 kB / 0.982 GB, free: 12.19 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9247/0.9269, allocations: 176.1 MB / 1.154 GB, free: 33.34 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.002082/0.9289, allocations: 0.997 MB / 1.155 GB, free: 32.71 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.001527/0.9305, allocations: 1.329 MB / 1.156 GB, free: 31.75 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000117/0.9306, allocations: 2.875 kB / 1.156 GB, free: 31.75 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.0001398/0.9307, allocations: 23.17 kB / 1.156 GB, free: 31.73 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 7.208e-05/0.9308, allocations: 32.44 kB / 1.156 GB, free: 31.7 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007301/0.9315, allocations: 265.5 kB / 1.157 GB, free: 31.56 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0002961/0.9318, allocations: 315 kB / 1.157 GB, free: 31.41 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001656/0.932, allocations: 71.67 kB / 1.157 GB, free: 31.37 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001063/0.9321, allocations: 113.1 kB / 1.157 GB, free: 31.32 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000153/0.9322, allocations: 97.55 kB / 1.157 GB, free: 31.27 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 4.841e-05/0.9323, allocations: 31.25 kB / 1.157 GB, free: 31.27 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 9.396e-05/0.9324, allocations: 39 kB / 1.157 GB, free: 31.27 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 3.668e-05/0.9324, allocations: 42.89 kB / 1.157 GB, free: 31.25 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.0001058/0.9325, allocations: 100.7 kB / 1.157 GB, free: 31.19 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0003429/0.9329, allocations: 349.5 kB / 1.158 GB, free: 31.06 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.9329, allocations: 0 / 1.158 GB, free: 31.06 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.633e-06/0.9329, allocations: 0 / 1.158 GB, free: 31.06 MB / 1.076 GB Notification: Performance of Transformations before backend: time 7.123e-06/0.9329, allocations: 0 / 1.158 GB, free: 31.06 MB / 1.076 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.0006363/0.9335, allocations: 472.8 kB / 1.158 GB, free: 30.65 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.389e-05/0.9336, allocations: 8.781 kB / 1.158 GB, free: 30.65 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.093e-05/0.9336, allocations: 23.31 kB / 1.158 GB, free: 30.64 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002526/0.9339, allocations: 192.5 kB / 1.158 GB, free: 30.46 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.301e-05/0.9339, allocations: 15.78 kB / 1.158 GB, free: 30.46 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.008e-05/0.9339, allocations: 20.28 kB / 1.158 GB, free: 30.46 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002029/0.9342, allocations: 122.9 kB / 1.158 GB, free: 30.39 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.495e-05/0.9342, allocations: 3.938 kB / 1.158 GB, free: 30.39 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.789e-05/0.9342, allocations: 4 kB / 1.158 GB, free: 30.39 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.792e-06/0.9342, allocations: 3 kB / 1.158 GB, free: 30.39 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001364/0.9343, allocations: 76.05 kB / 1.159 GB, free: 30.36 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007414/0.9351, allocations: 467.2 kB / 1.159 GB, free: 30.03 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001818/0.9352, allocations: 89.03 kB / 1.159 GB, free: 29.98 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.77e-05/0.9353, allocations: 34.47 kB / 1.159 GB, free: 29.96 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 2.561e-05/0.9353, allocations: 6.625 kB / 1.159 GB, free: 29.96 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001665/0.9355, allocations: 105 kB / 1.159 GB, free: 29.89 MB / 1.076 GB Notification: Performance of pre-optimization done (n=15): time 1.803e-06/0.9355, allocations: 7.938 kB / 1.159 GB, free: 29.89 MB / 1.076 GB Notification: Performance of matching and sorting (n=15): time 0.0003538/0.9359, allocations: 186.7 kB / 1.159 GB, free: 29.8 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.164e-05/0.9359, allocations: 57.7 kB / 1.159 GB, free: 29.74 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000142/0.936, allocations: 173.4 kB / 1.16 GB, free: 29.61 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 3.39e-05/0.9361, allocations: 35.42 kB / 1.16 GB, free: 29.57 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 7.326e-05/0.9361, allocations: 126 kB / 1.16 GB, free: 29.46 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 3.09e-05/0.9362, allocations: 37.47 kB / 1.16 GB, free: 29.43 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001034/0.9363, allocations: 67.69 kB / 1.16 GB, free: 29.4 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 7.163e-05/0.9363, allocations: 328.5 kB / 1.16 GB, free: 29.08 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001849/0.9365, allocations: 146.1 kB / 1.16 GB, free: 28.98 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002035/0.9367, allocations: 195.2 kB / 1.16 GB, free: 28.83 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002203/0.937, allocations: 210.9 kB / 1.161 GB, free: 28.66 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.937, allocations: 0 / 1.161 GB, free: 28.66 MB / 1.076 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005034/0.9375, allocations: 412 kB / 1.161 GB, free: 28.4 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 4.755e-05/0.9375, allocations: 67.44 kB / 1.161 GB, free: 28.34 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.9375, allocations: 6.844 kB / 1.161 GB, free: 28.33 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.728e-05/0.9375, allocations: 2.75 kB / 1.161 GB, free: 28.33 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.072e-05/0.9376, allocations: 13.02 kB / 1.161 GB, free: 28.33 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.9376, allocations: 3.094 kB / 1.161 GB, free: 28.33 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003276/0.9379, allocations: 56.36 kB / 1.161 GB, free: 28.32 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.321e-05/0.938, allocations: 18.86 kB / 1.161 GB, free: 28.32 MB / 1.076 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.0001043/0.9381, allocations: 144.6 kB / 1.161 GB, free: 28.18 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.167e-05/0.9381, allocations: 20.89 kB / 1.161 GB, free: 28.17 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.248e-05/0.9381, allocations: 20.17 kB / 1.161 GB, free: 28.15 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.9381, allocations: 0 / 1.161 GB, free: 28.15 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.9381, allocations: 3.344 kB / 1.161 GB, free: 28.15 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.9381, allocations: 3.234 kB / 1.161 GB, free: 28.15 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003591/0.9385, allocations: 401.1 kB / 1.162 GB, free: 27.84 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.9385, allocations: 4 kB / 1.162 GB, free: 27.84 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.011e-05/0.9385, allocations: 13.81 kB / 1.162 GB, free: 27.83 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.9385, allocations: 3.469 kB / 1.162 GB, free: 27.83 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.133e-05/0.9386, allocations: 2.938 kB / 1.162 GB, free: 27.83 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.9386, allocations: 0 / 1.162 GB, free: 27.83 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.9386, allocations: 0 / 1.162 GB, free: 27.83 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001884/0.9387, allocations: 243.6 kB / 1.162 GB, free: 27.65 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 1.79e-05/0.9388, allocations: 13.84 kB / 1.162 GB, free: 27.64 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.29e-05/0.9388, allocations: 7.938 kB / 1.162 GB, free: 27.64 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.736e-05/0.9389, allocations: 6.328 kB / 1.162 GB, free: 27.64 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.908e-05/0.9389, allocations: 13.09 kB / 1.162 GB, free: 27.63 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.046e-05/0.9389, allocations: 6.234 kB / 1.162 GB, free: 27.63 MB / 1.076 GB Notification: Performance of sorting global known variables: time 6.604e-05/0.939, allocations: 131.3 kB / 1.162 GB, free: 27.54 MB / 1.076 GB Notification: Performance of sort global known variables: time 7.1e-08/0.939, allocations: 2.844 kB / 1.162 GB, free: 27.54 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002959/0.9393, allocations: 51.45 kB / 1.162 GB, free: 27.52 MB / 1.076 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.0001361/0.9394, allocations: 115.6 kB / 1.162 GB, free: 27.43 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0003532/0.9398, allocations: 340.9 kB / 1.163 GB, free: 27.18 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.9398, allocations: 0 / 1.163 GB, free: 27.18 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 7.442e-05/0.9399, allocations: 52.02 kB / 1.163 GB, free: 27.16 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003441/0.9402, allocations: 36.64 kB / 1.163 GB, free: 27.14 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004704/0.9407, allocations: 297.1 kB / 1.163 GB, free: 26.93 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.534e-05/0.9408, allocations: 110.4 kB / 1.163 GB, free: 26.86 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 4.493e-05/0.9408, allocations: 16.3 kB / 1.163 GB, free: 26.86 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.559e-05/0.9408, allocations: 20.91 kB / 1.163 GB, free: 26.85 MB / 1.076 GB Notification: Performance of SimCode: time 3.61e-07/0.9408, allocations: 0 / 1.163 GB, free: 26.85 MB / 1.076 GB Notification: Performance of Templates: time 0.006/0.9468, allocations: 2.894 MB / 1.166 GB, free: 26.52 MB / 1.076 GB " [Timeout remaining time 299] 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 -s ida -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/jenkins1/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: 9.161950230016373]