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.000822/0.000822, 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.000836/0.000836, 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.9013/0.9013, allocations: 177.1 MB / 203.5 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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 1.709/1.709, allocations: 377.8 MB / 0.6228 GB, free: 8.684 MB / 0.5886 GB " [Timeout remaining time 178] 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.365e-06/2.365e-06, allocations: 0 / 0.9822 GB, free: 0.957 MB / 0.8855 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.615e-05/2.851e-05, allocations: 2.281 kB / 0.9822 GB, free: 0.9531 MB / 0.8855 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.00167/0.001699, allocations: 1.004 MB / 0.9832 GB, free: 15.95 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.001361/0.00306, allocations: 1.338 MB / 0.9845 GB, free: 14.6 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001052/0.003165, allocations: 8 kB / 0.9845 GB, free: 14.59 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 0.0001249/0.00329, allocations: 23.73 kB / 0.9845 GB, free: 14.57 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 5.738e-05/0.003348, allocations: 31.72 kB / 0.9845 GB, free: 14.54 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005267/0.003874, allocations: 264.1 kB / 0.9848 GB, free: 14.28 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 0.0002525/0.004127, allocations: 315.4 kB / 0.9851 GB, free: 13.97 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001424/0.004269, allocations: 68.7 kB / 0.9852 GB, free: 13.91 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001346/0.004404, allocations: 163.8 kB / 0.9853 GB, free: 13.75 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001236/0.004527, allocations: 87.73 kB / 0.9854 GB, free: 13.66 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 3.64e-05/0.004564, allocations: 32 kB / 0.9854 GB, free: 13.63 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 7.11e-05/0.004635, allocations: 39.98 kB / 0.9855 GB, free: 13.59 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 3.287e-05/0.004668, allocations: 39.84 kB / 0.9855 GB, free: 13.55 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 7.902e-05/0.004747, allocations: 87.81 kB / 0.9856 GB, free: 13.46 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0003193/0.005066, allocations: 382.9 kB / 0.986 GB, free: 13.09 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 2.425e-06/0.005068, allocations: 0 / 0.986 GB, free: 13.09 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.493e-06/0.00507, allocations: 0 / 0.986 GB, free: 13.09 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 4.599e-06/0.005075, allocations: 0 / 0.986 GB, free: 13.09 MB / 0.9011 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.0005591/0.005634, allocations: 472.8 kB / 0.9864 GB, free: 12.58 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.005669, allocations: 8.031 kB / 0.9864 GB, free: 12.57 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.057e-05/0.00573, allocations: 28.8 kB / 0.9864 GB, free: 12.55 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002686/0.005998, allocations: 194.3 kB / 0.9866 GB, free: 12.33 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.034e-05/0.006019, allocations: 16.36 kB / 0.9866 GB, free: 12.31 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.113e-05/0.00605, allocations: 24.38 kB / 0.9867 GB, free: 12.29 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001667/0.006217, allocations: 118.2 kB / 0.9868 GB, free: 12.17 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-06/0.006226, allocations: 192 / 0.9868 GB, free: 12.17 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.566e-05/0.006242, allocations: 8.375 kB / 0.9868 GB, free: 12.16 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.553e-06/0.006248, allocations: 4.125 kB / 0.9868 GB, free: 12.16 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001041/0.006352, allocations: 79.97 kB / 0.9869 GB, free: 12.08 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000568/0.00692, allocations: 463.9 kB / 0.9873 GB, free: 11.59 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001459/0.007066, allocations: 86.53 kB / 0.9874 GB, free: 11.5 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.723e-05/0.007113, allocations: 32.98 kB / 0.9874 GB, free: 11.46 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 3.049e-05/0.007144, allocations: 4 kB / 0.9874 GB, free: 11.46 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001389/0.007283, allocations: 107.3 kB / 0.9875 GB, free: 11.34 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=15): time 1.643e-06/0.007284, allocations: 3.938 kB / 0.9875 GB, free: 11.34 MB / 0.9011 GB Notification: Performance of matching and sorting (n=15): time 0.0002885/0.007573, allocations: 196.2 kB / 0.9877 GB, free: 11.14 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.483e-05/0.007608, allocations: 55.41 kB / 0.9878 GB, free: 11.08 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001098/0.007718, allocations: 167.2 kB / 0.9879 GB, free: 10.9 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 2.989e-05/0.007747, allocations: 41.69 kB / 0.988 GB, free: 10.86 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 7.061e-05/0.007818, allocations: 128.4 kB / 0.9881 GB, free: 10.73 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 2.609e-05/0.007844, allocations: 35.73 kB / 0.9881 GB, free: 10.69 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.628e-05/0.00792, allocations: 61.69 kB / 0.9882 GB, free: 10.62 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 8.684e-05/0.008007, allocations: 330.8 kB / 0.9885 GB, free: 10.29 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001539/0.008161, allocations: 147.4 kB / 0.9886 GB, free: 10.14 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001619/0.008323, allocations: 193.5 kB / 0.9888 GB, free: 9.918 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001979/0.008521, allocations: 212.3 kB / 0.989 GB, free: 9.68 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.618e-06/0.008526, allocations: 4 kB / 0.989 GB, free: 9.676 MB / 0.9011 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000388/0.008914, allocations: 402.4 kB / 0.9894 GB, free: 9.254 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 4.726e-05/0.008961, allocations: 71.33 kB / 0.9895 GB, free: 9.172 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.008966, allocations: 160 / 0.9895 GB, free: 9.172 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.00898, allocations: 8 kB / 0.9895 GB, free: 9.164 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.963e-05/0.00904, allocations: 15.98 kB / 0.9895 GB, free: 9.148 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.009046, allocations: 7.875 kB / 0.9895 GB, free: 9.141 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001824/0.009228, allocations: 59.83 kB / 0.9896 GB, free: 9.082 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.389e-05/0.009252, allocations: 19.98 kB / 0.9896 GB, free: 9.062 MB / 0.9011 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.0001054/0.009358, allocations: 138.4 kB / 0.9897 GB, free: 8.918 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.729e-05/0.009375, allocations: 11.91 kB / 0.9897 GB, free: 8.906 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.363e-05/0.009408, allocations: 21.41 kB / 0.9898 GB, free: 8.883 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.067e-06/0.009413, allocations: 7.984 kB / 0.9898 GB, free: 8.875 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.009417, allocations: 0 / 0.9898 GB, free: 8.875 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.00942, allocations: 0 / 0.9898 GB, free: 8.875 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003421/0.009762, allocations: 390.2 kB / 0.9901 GB, free: 8.457 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.578e-06/0.009767, allocations: 3.938 kB / 0.9901 GB, free: 8.453 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.673e-05/0.009794, allocations: 11.94 kB / 0.9902 GB, free: 8.441 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.876e-06/0.009796, allocations: 0 / 0.9902 GB, free: 8.441 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.188e-05/0.009808, allocations: 8 kB / 0.9902 GB, free: 8.434 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.009811, allocations: 3.984 kB / 0.9902 GB, free: 8.43 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.009812, allocations: 4 kB / 0.9902 GB, free: 8.426 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001729/0.009985, allocations: 235.8 kB / 0.9904 GB, free: 8.18 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 1.506e-05/0.01, allocations: 11.89 kB / 0.9904 GB, free: 8.168 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.809e-05/0.01002, allocations: 8 kB / 0.9904 GB, free: 8.16 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.946e-05/0.01007, allocations: 4 kB / 0.9904 GB, free: 8.156 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.434e-05/0.01011, allocations: 19.97 kB / 0.9904 GB, free: 8.137 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.346e-06/0.01012, allocations: 4 kB / 0.9904 GB, free: 8.133 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 6.612e-05/0.01019, allocations: 124.9 kB / 0.9906 GB, free: 8.012 MB / 0.9011 GB Notification: Performance of sort global known variables: time 5e-08/0.01019, allocations: 4 kB / 0.9906 GB, free: 8.008 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0002076/0.01039, allocations: 55.83 kB / 0.9906 GB, free: 7.953 MB / 0.9011 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.0001459/0.01054, allocations: 119.2 kB / 0.9907 GB, free: 7.828 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0003287/0.01087, allocations: 342 kB / 0.9911 GB, free: 7.457 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 2.073e-06/0.01087, allocations: 0 / 0.9911 GB, free: 7.457 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 6.255e-05/0.01093, allocations: 54.88 kB / 0.9911 GB, free: 7.406 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002562/0.01119, allocations: 40.2 kB / 0.9911 GB, free: 7.367 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004225/0.01161, allocations: 312.2 kB / 0.9914 GB, free: 7.031 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.574e-05/0.01169, allocations: 112.1 kB / 0.9916 GB, free: 6.902 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.343e-05/0.01172, allocations: 20.48 kB / 0.9916 GB, free: 6.883 MB / 0.9011 GB Notification: Performance of SimCode: time 7.52e-07/0.01172, allocations: 0 / 0.9916 GB, free: 6.883 MB / 0.9011 GB Notification: Performance of Templates: time 0.003197/0.01492, allocations: 2.49 MB / 0.994 GB, free: 4.422 MB / 0.9011 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: 6.449134175665677]