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.002199/0.002199, allocations: 85.48 kB / 19.44 MB, free: 344 kB / 13.93 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.002063/0.002063, allocations: 173.2 kB / 22.76 MB, free: 1.664 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.66/1.66, allocations: 177.1 MB / 203.1 MB, free: 5.598 MB / 186.7 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.366/3.366, allocations: 429.5 MB / 0.6729 GB, free: 4.02 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.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: 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 2.064e-06/2.064e-06, allocations: 0 / 0.8775 GB, free: 6.652 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.409e-05/3.616e-05, allocations: 5.797 kB / 0.8775 GB, free: 6.648 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.003444/0.003481, allocations: 1.031 MB / 0.8785 GB, free: 5.645 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.002948/0.006429, allocations: 1.347 MB / 0.8798 GB, free: 4.285 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001387/0.006567, allocations: 4 kB / 0.8798 GB, free: 4.281 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001848/0.006752, allocations: 21.39 kB / 0.8798 GB, free: 4.262 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0001205/0.006873, allocations: 27.73 kB / 0.8798 GB, free: 4.234 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.000975/0.007848, allocations: 265.7 kB / 0.8801 GB, free: 3.977 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0005866/0.008434, allocations: 307.4 kB / 0.8804 GB, free: 3.676 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002231/0.008657, allocations: 60.73 kB / 0.8804 GB, free: 3.613 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003306/0.008988, allocations: 167.8 kB / 0.8806 GB, free: 3.449 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002303/0.009218, allocations: 85.02 kB / 0.8807 GB, free: 3.367 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 8.477e-05/0.009303, allocations: 32 kB / 0.8807 GB, free: 3.336 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001397/0.009443, allocations: 47.98 kB / 0.8808 GB, free: 3.289 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 6.568e-05/0.009508, allocations: 35.84 kB / 0.8808 GB, free: 3.254 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 0.0001695/0.009678, allocations: 85.41 kB / 0.8809 GB, free: 3.172 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0007046/0.01038, allocations: 382.9 kB / 0.8812 GB, free: 2.797 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 6.832e-06/0.01039, allocations: 4 kB / 0.8812 GB, free: 2.793 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.122e-06/0.01039, allocations: 4 kB / 0.8813 GB, free: 2.789 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.843e-06/0.0104, allocations: 2.156 kB / 0.8813 GB, free: 2.789 MB / 0.8386 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.001237/0.01163, allocations: 0.5652 MB / 0.8818 GB, free: 2.172 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 6.723e-05/0.0117, allocations: 8.031 kB / 0.8818 GB, free: 2.164 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001646/0.01187, allocations: 32.84 kB / 0.8818 GB, free: 2.133 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000564/0.01243, allocations: 194.3 kB / 0.882 GB, free: 1.914 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.554e-05/0.01249, allocations: 22.73 kB / 0.8821 GB, free: 1.895 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.254e-05/0.01256, allocations: 20.38 kB / 0.8821 GB, free: 1.875 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004066/0.01297, allocations: 122.9 kB / 0.8822 GB, free: 1.75 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.677e-05/0.01298, allocations: 192 / 0.8822 GB, free: 1.75 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.112e-05/0.01301, allocations: 8.375 kB / 0.8822 GB, free: 1.742 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.541e-05/0.01303, allocations: 8.125 kB / 0.8822 GB, free: 1.734 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002442/0.01327, allocations: 68.47 kB / 0.8823 GB, free: 1.668 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001483/0.01476, allocations: 0.5465 MB / 0.8828 GB, free: 1.086 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003448/0.0151, allocations: 99.06 kB / 0.8829 GB, free: 0.9766 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001219/0.01522, allocations: 39.81 kB / 0.8829 GB, free: 0.9336 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.633e-05/0.01526, allocations: 0 / 0.8829 GB, free: 0.9336 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003247/0.01558, allocations: 125.1 kB / 0.8831 GB, free: 0.7969 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=15): time 1.472e-06/0.01558, allocations: 0 / 0.8831 GB, free: 0.7969 MB / 0.8386 GB Notification: Performance of matching and sorting (n=15): time 0.0006536/0.01624, allocations: 196.9 kB / 0.8832 GB, free: 0.6016 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.498e-05/0.01632, allocations: 55.41 kB / 0.8833 GB, free: 0.5352 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004141/0.01674, allocations: 259.5 kB / 0.8835 GB, free: 272 kB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 6.79e-05/0.0168, allocations: 37.7 kB / 0.8836 GB, free: 228 kB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002213/0.01703, allocations: 187.1 kB / 0.8838 GB, free: 36 kB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001048/0.01713, allocations: 39.81 kB / 0.8838 GB, free: 15.99 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000231/0.01736, allocations: 83.33 kB / 0.8839 GB, free: 15.9 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0004099/0.01777, allocations: 0.504 MB / 0.8844 GB, free: 15.39 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003871/0.01816, allocations: 163.4 kB / 0.8845 GB, free: 15.21 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004704/0.01863, allocations: 224.5 kB / 0.8847 GB, free: 14.96 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004799/0.01911, allocations: 245.4 kB / 0.885 GB, free: 14.68 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.01911, allocations: 0 / 0.885 GB, free: 14.68 MB / 0.8542 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.00107/0.02018, allocations: 438.3 kB / 0.8854 GB, free: 14.23 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 9.813e-05/0.02028, allocations: 75.27 kB / 0.8855 GB, free: 14.14 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.317e-05/0.02029, allocations: 7.984 kB / 0.8855 GB, free: 14.14 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.937e-05/0.02031, allocations: 4.156 kB / 0.8855 GB, free: 14.13 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001143/0.02043, allocations: 16 kB / 0.8855 GB, free: 14.12 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.358e-06/0.02044, allocations: 0 / 0.8855 GB, free: 14.12 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004284/0.02087, allocations: 47.84 kB / 0.8855 GB, free: 14.07 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.32e-05/0.02093, allocations: 20 kB / 0.8856 GB, free: 14.05 MB / 0.8542 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.0002529/0.02118, allocations: 188.5 kB / 0.8857 GB, free: 13.86 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.236e-05/0.02123, allocations: 23.91 kB / 0.8858 GB, free: 13.83 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.494e-05/0.02129, allocations: 17.41 kB / 0.8858 GB, free: 13.82 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.542e-06/0.0213, allocations: 4 kB / 0.8858 GB, free: 13.82 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.121e-05/0.02131, allocations: 3.984 kB / 0.8858 GB, free: 13.81 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.638e-06/0.02131, allocations: 0 / 0.8858 GB, free: 13.81 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008812/0.02219, allocations: 477.5 kB / 0.8862 GB, free: 13.3 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/0.0222, allocations: 7.938 kB / 0.8862 GB, free: 13.3 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.325e-05/0.02224, allocations: 4 kB / 0.8862 GB, free: 13.29 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.642e-06/0.02225, allocations: 3.984 kB / 0.8862 GB, free: 13.29 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.606e-05/0.02227, allocations: 4 kB / 0.8863 GB, free: 13.29 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.384e-06/0.02228, allocations: 8 kB / 0.8863 GB, free: 13.28 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.02229, allocations: 3.984 kB / 0.8863 GB, free: 13.27 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005042/0.02279, allocations: 300.2 kB / 0.8866 GB, free: 12.96 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 3.138e-05/0.02282, allocations: 15.89 kB / 0.8866 GB, free: 12.95 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.315e-05/0.02286, allocations: 0 / 0.8866 GB, free: 12.95 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001239/0.02298, allocations: 8 kB / 0.8866 GB, free: 12.94 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.206e-05/0.02306, allocations: 11.97 kB / 0.8866 GB, free: 12.93 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.313e-05/0.02308, allocations: 8 kB / 0.8866 GB, free: 12.92 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0002166/0.0233, allocations: 171.9 kB / 0.8868 GB, free: 12.75 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.5e-07/0.0233, allocations: 0 / 0.8868 GB, free: 12.75 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0005221/0.02382, allocations: 51.89 kB / 0.8868 GB, free: 12.7 MB / 0.8542 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.0002514/0.02407, allocations: 115.2 kB / 0.8869 GB, free: 12.57 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0008784/0.02495, allocations: 401.6 kB / 0.8873 GB, free: 12.14 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.02496, allocations: 0 / 0.8873 GB, free: 12.14 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001735/0.02513, allocations: 74.2 kB / 0.8874 GB, free: 12.07 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005682/0.0257, allocations: 41.56 kB / 0.8874 GB, free: 12.03 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008547/0.02655, allocations: 307 kB / 0.8877 GB, free: 11.7 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001695/0.02672, allocations: 104.1 kB / 0.8878 GB, free: 11.57 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 7.996e-05/0.0268, allocations: 21.48 kB / 0.8878 GB, free: 11.55 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.163e-05/0.02686, allocations: 20.48 kB / 0.8878 GB, free: 11.53 MB / 0.8542 GB Notification: Performance of SimCode: time 6.51e-07/0.02686, allocations: 0 / 0.8878 GB, free: 11.53 MB / 0.8542 GB Notification: Performance of Templates: time 0.01008/0.03694, allocations: 2.892 MB / 0.8907 GB, free: 8.746 MB / 0.8542 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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe 2>&1) [Timeout 240] 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: 8.790068082977086]