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.001448/0.001448, allocations: 80.61 kB / 19.18 MB, free: 2.516 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.001717/0.001717, allocations: 160.1 kB / 22.46 MB, free: 5.375 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.498/1.498, allocations: 177.1 MB / 202.8 MB, free: 9.18 MB / 190.1 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.843/2.843, allocations: 377.8 MB / 0.6221 GB, free: 12.58 MB / 0.5919 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 3.567e-06/3.567e-06, allocations: 0 / 0.9814 GB, free: 11.93 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.669e-05/3.026e-05, allocations: 2.281 kB / 0.9814 GB, free: 11.92 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.002379/0.00241, allocations: 0.9908 MB / 0.9824 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002048/0.004457, allocations: 1.349 MB / 0.9837 GB, free: 9.57 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001669/0.004624, allocations: 7.938 kB / 0.9837 GB, free: 9.562 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001998/0.004824, allocations: 15.8 kB / 0.9837 GB, free: 9.547 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 8.83e-05/0.004912, allocations: 27.73 kB / 0.9838 GB, free: 9.52 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008485/0.005761, allocations: 273.9 kB / 0.984 GB, free: 9.258 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0004275/0.006188, allocations: 311.4 kB / 0.9843 GB, free: 8.953 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002091/0.006397, allocations: 60.73 kB / 0.9844 GB, free: 8.891 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002381/0.006635, allocations: 163.7 kB / 0.9845 GB, free: 8.73 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001807/0.006816, allocations: 87.69 kB / 0.9846 GB, free: 8.645 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 6.731e-05/0.006883, allocations: 32 kB / 0.9847 GB, free: 8.613 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001282/0.007012, allocations: 47.98 kB / 0.9847 GB, free: 8.566 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 5.653e-05/0.007068, allocations: 35.84 kB / 0.9847 GB, free: 8.531 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001576/0.007226, allocations: 99.72 kB / 0.9848 GB, free: 8.434 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0005274/0.007753, allocations: 378.9 kB / 0.9852 GB, free: 8.062 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.007759, allocations: 0 / 0.9852 GB, free: 8.062 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.413e-06/0.007761, allocations: 4 kB / 0.9852 GB, free: 8.059 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.399e-05/0.007774, allocations: 0 / 0.9852 GB, free: 8.059 MB / 0.9356 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.0008645/0.008639, allocations: 464.9 kB / 0.9856 GB, free: 7.559 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.135e-05/0.00869, allocations: 12.03 kB / 0.9857 GB, free: 7.547 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.365e-05/0.008784, allocations: 24.8 kB / 0.9857 GB, free: 7.523 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004332/0.009217, allocations: 198.2 kB / 0.9859 GB, free: 7.301 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.498e-05/0.009242, allocations: 20.38 kB / 0.9859 GB, free: 7.281 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.253e-05/0.009295, allocations: 20.38 kB / 0.9859 GB, free: 7.262 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002662/0.009561, allocations: 126.2 kB / 0.986 GB, free: 7.133 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.009573, allocations: 192 / 0.986 GB, free: 7.133 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.041e-05/0.009593, allocations: 4.375 kB / 0.986 GB, free: 7.129 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.147e-05/0.009604, allocations: 8.125 kB / 0.986 GB, free: 7.121 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000159/0.009763, allocations: 71.91 kB / 0.9861 GB, free: 7.051 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007958/0.01056, allocations: 448 kB / 0.9865 GB, free: 6.582 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002118/0.01077, allocations: 106.6 kB / 0.9866 GB, free: 6.469 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.887e-05/0.01084, allocations: 36.84 kB / 0.9867 GB, free: 6.43 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.826e-05/0.01086, allocations: 0 / 0.9867 GB, free: 6.43 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002127/0.01107, allocations: 111.3 kB / 0.9868 GB, free: 6.309 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=15): time 1.553e-06/0.01107, allocations: 0 / 0.9868 GB, free: 6.309 MB / 0.9356 GB Notification: Performance of matching and sorting (n=15): time 0.0003986/0.01147, allocations: 192.2 kB / 0.987 GB, free: 6.117 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.923e-05/0.01152, allocations: 55.41 kB / 0.987 GB, free: 6.051 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001781/0.0117, allocations: 171.2 kB / 0.9872 GB, free: 5.871 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 5.172e-05/0.01175, allocations: 33.7 kB / 0.9872 GB, free: 5.832 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001091/0.01186, allocations: 132.4 kB / 0.9873 GB, free: 5.699 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 4.621e-05/0.01191, allocations: 39.73 kB / 0.9874 GB, free: 5.66 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001225/0.01203, allocations: 69.67 kB / 0.9874 GB, free: 5.586 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001685/0.0122, allocations: 322.8 kB / 0.9877 GB, free: 5.262 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000236/0.01243, allocations: 143.4 kB / 0.9879 GB, free: 5.109 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002924/0.01272, allocations: 192.5 kB / 0.9881 GB, free: 4.891 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003262/0.01305, allocations: 214.4 kB / 0.9883 GB, free: 4.652 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.01305, allocations: 4 kB / 0.9883 GB, free: 4.648 MB / 0.9356 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006498/0.0137, allocations: 400.1 kB / 0.9887 GB, free: 4.227 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 8.335e-05/0.01379, allocations: 77.83 kB / 0.9887 GB, free: 4.141 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.397e-06/0.0138, allocations: 4 kB / 0.9887 GB, free: 4.137 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.798e-05/0.01381, allocations: 0 / 0.9887 GB, free: 4.137 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.757e-05/0.01389, allocations: 11.94 kB / 0.9887 GB, free: 4.125 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.776e-06/0.0139, allocations: 4 kB / 0.9888 GB, free: 4.121 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003566/0.01426, allocations: 67.92 kB / 0.9888 GB, free: 4.055 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.404e-05/0.0143, allocations: 15.98 kB / 0.9888 GB, free: 4.039 MB / 0.9356 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.0001522/0.01445, allocations: 133.8 kB / 0.989 GB, free: 3.898 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.081e-05/0.01448, allocations: 27.83 kB / 0.989 GB, free: 3.871 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.377e-05/0.01453, allocations: 17.41 kB / 0.989 GB, free: 3.855 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.185e-06/0.01453, allocations: 0 / 0.989 GB, free: 3.855 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.695e-06/0.01454, allocations: 4 kB / 0.989 GB, free: 3.852 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.01454, allocations: 3.938 kB / 0.989 GB, free: 3.848 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005336/0.01507, allocations: 398.3 kB / 0.9894 GB, free: 3.422 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.01508, allocations: 3.938 kB / 0.9894 GB, free: 3.418 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.744e-05/0.01512, allocations: 11.92 kB / 0.9894 GB, free: 3.406 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.01512, allocations: 0 / 0.9894 GB, free: 3.406 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.643e-05/0.01513, allocations: 4 kB / 0.9894 GB, free: 3.402 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.01514, allocations: 0 / 0.9894 GB, free: 3.402 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.01514, allocations: 0 / 0.9894 GB, free: 3.402 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003061/0.01544, allocations: 239.8 kB / 0.9896 GB, free: 3.152 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 2.468e-05/0.01547, allocations: 15.84 kB / 0.9897 GB, free: 3.137 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.008e-05/0.0155, allocations: 11.98 kB / 0.9897 GB, free: 3.125 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.065e-05/0.01558, allocations: 8 kB / 0.9897 GB, free: 3.117 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.732e-05/0.01565, allocations: 11.98 kB / 0.9897 GB, free: 3.105 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.625e-05/0.01566, allocations: 7.984 kB / 0.9897 GB, free: 3.098 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001324/0.0158, allocations: 124.9 kB / 0.9898 GB, free: 2.977 MB / 0.9356 GB Notification: Performance of sort global known variables: time 8e-08/0.0158, allocations: 0 / 0.9898 GB, free: 2.977 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003395/0.01613, allocations: 47.94 kB / 0.9899 GB, free: 2.93 MB / 0.9356 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.0002873/0.01642, allocations: 121 kB / 0.99 GB, free: 2.801 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0006003/0.01702, allocations: 344.8 kB / 0.9903 GB, free: 2.43 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.01702, allocations: 0 / 0.9903 GB, free: 2.43 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001095/0.01713, allocations: 47.92 kB / 0.9903 GB, free: 2.383 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004213/0.01756, allocations: 30.78 kB / 0.9904 GB, free: 2.355 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007872/0.01834, allocations: 293.8 kB / 0.9907 GB, free: 2.047 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001465/0.01849, allocations: 116 kB / 0.9908 GB, free: 1.918 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 6.49e-05/0.01855, allocations: 17.48 kB / 0.9908 GB, free: 1.898 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.494e-05/0.01861, allocations: 20.44 kB / 0.9908 GB, free: 1.879 MB / 0.9356 GB Notification: Performance of SimCode: time 3.01e-07/0.01861, allocations: 0 / 0.9908 GB, free: 1.879 MB / 0.9356 GB Notification: Performance of Templates: time 0.00828/0.02689, allocations: 2.878 MB / 0.9936 GB, free: 15.11 MB / 0.9512 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.421573653817177]