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.0008938/0.0008938, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 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.001107/0.001107, allocations: 169.9 kB / 22.46 MB, free: 2.105 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.8795/0.8795, allocations: 177.2 MB / 202.8 MB, free: 5.727 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.678/1.678, allocations: 377.8 MB / 0.6221 GB, free: 8.641 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: "" <> buildModelFMU(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_SamplerWithResetThreshold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_SamplerWithResetThreshold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.517e-06/3.517e-06, allocations: 0 / 0.981 GB, free: 2.574 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.262e-05/2.614e-05, allocations: 8.953 kB / 0.981 GB, free: 2.566 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.002582/0.002608, allocations: 0.997 MB / 0.9819 GB, free: 1.57 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.001683/0.004291, allocations: 1.349 MB / 0.9833 GB, free: 212 kB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001225/0.004414, allocations: 0 / 0.9833 GB, free: 212 kB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 0.0001426/0.004556, allocations: 23.73 kB / 0.9833 GB, free: 188 kB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 6.84e-05/0.004625, allocations: 35.66 kB / 0.9833 GB, free: 152 kB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006752/0.0053, allocations: 273.6 kB / 0.9836 GB, free: 15.89 MB / 0.948 GB Notification: Performance of NFFlatten.flatten: time 0.0003077/0.005608, allocations: 311.4 kB / 0.9839 GB, free: 15.58 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001471/0.005755, allocations: 59.33 kB / 0.9839 GB, free: 15.52 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00014/0.005895, allocations: 163.7 kB / 0.9841 GB, free: 15.36 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001205/0.006015, allocations: 87.73 kB / 0.9842 GB, free: 15.28 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 3.564e-05/0.006051, allocations: 32 kB / 0.9842 GB, free: 15.25 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 7.28e-05/0.006124, allocations: 39.98 kB / 0.9842 GB, free: 15.21 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 3.548e-05/0.006159, allocations: 47.83 kB / 0.9843 GB, free: 15.16 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 7.948e-05/0.006239, allocations: 87.81 kB / 0.9844 GB, free: 15.07 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0003397/0.006578, allocations: 378.9 kB / 0.9847 GB, free: 14.7 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.006582, allocations: 0 / 0.9847 GB, free: 14.7 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.453e-06/0.006583, allocations: 0 / 0.9847 GB, free: 14.7 MB / 0.948 GB Notification: Performance of Transformations before backend: time 4.919e-06/0.006588, allocations: 0 / 0.9847 GB, free: 14.7 MB / 0.948 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.0006091/0.007198, allocations: 468.9 kB / 0.9852 GB, free: 14.2 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.007237, allocations: 8.031 kB / 0.9852 GB, free: 14.19 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.524e-05/0.007272, allocations: 50.73 kB / 0.9852 GB, free: 14.13 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.799e-05/0.00733, allocations: 24.8 kB / 0.9853 GB, free: 14.11 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003019/0.007632, allocations: 199.5 kB / 0.9854 GB, free: 13.89 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.963e-05/0.007652, allocations: 12.38 kB / 0.9855 GB, free: 13.88 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.633e-05/0.007678, allocations: 24.38 kB / 0.9855 GB, free: 13.85 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001721/0.00785, allocations: 126.1 kB / 0.9856 GB, free: 13.72 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.755e-06/0.007858, allocations: 192 / 0.9856 GB, free: 13.72 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.273e-05/0.007871, allocations: 8.375 kB / 0.9856 GB, free: 13.71 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.007878, allocations: 7.938 kB / 0.9856 GB, free: 13.71 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001022/0.007981, allocations: 71.97 kB / 0.9857 GB, free: 13.64 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006254/0.008606, allocations: 495.3 kB / 0.9862 GB, free: 13.11 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001491/0.008755, allocations: 90.66 kB / 0.9862 GB, free: 13.01 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.419e-05/0.008799, allocations: 36.84 kB / 0.9863 GB, free: 12.97 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 2.057e-05/0.00882, allocations: 0 / 0.9863 GB, free: 12.97 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001455/0.008965, allocations: 119.2 kB / 0.9864 GB, free: 12.84 MB / 0.948 GB Notification: Performance of pre-optimization done (n=15): time 1.253e-06/0.008967, allocations: 0 / 0.9864 GB, free: 12.84 MB / 0.948 GB Notification: Performance of matching and sorting (n=15): time 0.0002953/0.009262, allocations: 184.2 kB / 0.9866 GB, free: 12.66 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.674e-05/0.009299, allocations: 55.41 kB / 0.9866 GB, free: 12.59 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001347/0.009433, allocations: 203.2 kB / 0.9868 GB, free: 12.38 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 2.764e-05/0.009461, allocations: 37.7 kB / 0.9868 GB, free: 12.34 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 6.372e-05/0.009525, allocations: 120.5 kB / 0.987 GB, free: 12.22 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 2.705e-05/0.009552, allocations: 39.72 kB / 0.987 GB, free: 12.18 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.496e-05/0.009627, allocations: 61.69 kB / 0.9871 GB, free: 12.11 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.465e-05/0.009711, allocations: 330.8 kB / 0.9874 GB, free: 11.78 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00015/0.009861, allocations: 147.3 kB / 0.9875 GB, free: 11.62 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001549/0.01002, allocations: 194.5 kB / 0.9877 GB, free: 11.41 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001824/0.0102, allocations: 212.4 kB / 0.9879 GB, free: 11.17 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.0102, allocations: 0 / 0.9879 GB, free: 11.17 MB / 0.948 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000399/0.0106, allocations: 408 kB / 0.9883 GB, free: 10.74 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 4.852e-05/0.01065, allocations: 71.39 kB / 0.9884 GB, free: 10.66 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-06/0.01066, allocations: 4 kB / 0.9884 GB, free: 10.65 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.01067, allocations: 0 / 0.9884 GB, free: 10.65 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.029e-05/0.01073, allocations: 11.98 kB / 0.9884 GB, free: 10.64 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.01074, allocations: 4 kB / 0.9884 GB, free: 10.64 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001933/0.01093, allocations: 71.92 kB / 0.9884 GB, free: 10.57 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.29e-05/0.01095, allocations: 11.98 kB / 0.9885 GB, free: 10.55 MB / 0.948 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.0001057/0.01106, allocations: 134.4 kB / 0.9886 GB, free: 10.41 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.864e-05/0.01108, allocations: 19.84 kB / 0.9886 GB, free: 10.39 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.423e-05/0.01111, allocations: 21.45 kB / 0.9886 GB, free: 10.38 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.01112, allocations: 4 kB / 0.9886 GB, free: 10.37 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.674e-06/0.01112, allocations: 7.938 kB / 0.9886 GB, free: 10.36 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.01113, allocations: 0 / 0.9886 GB, free: 10.36 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004122/0.01154, allocations: 441.5 kB / 0.9891 GB, free: 9.883 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.01154, allocations: 0 / 0.9891 GB, free: 9.883 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.052e-05/0.01157, allocations: 4 kB / 0.9891 GB, free: 9.879 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.01158, allocations: 0 / 0.9891 GB, free: 9.879 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.385e-05/0.01159, allocations: 11.97 kB / 0.9891 GB, free: 9.867 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.01159, allocations: 0 / 0.9891 GB, free: 9.867 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.838e-06/0.0116, allocations: 3.938 kB / 0.9891 GB, free: 9.863 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001907/0.01179, allocations: 246.8 kB / 0.9893 GB, free: 9.609 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.899e-05/0.01181, allocations: 19.84 kB / 0.9893 GB, free: 9.59 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.963e-05/0.01183, allocations: 0 / 0.9893 GB, free: 9.59 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.151e-05/0.01189, allocations: 8 kB / 0.9893 GB, free: 9.582 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.072e-05/0.01195, allocations: 11.97 kB / 0.9894 GB, free: 9.57 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.145e-05/0.01196, allocations: 8 kB / 0.9894 GB, free: 9.562 MB / 0.948 GB Notification: Performance of sorting global known variables: time 9.47e-05/0.01206, allocations: 140.3 kB / 0.9895 GB, free: 9.426 MB / 0.948 GB Notification: Performance of sort global known variables: time 7.1e-08/0.01206, allocations: 0 / 0.9895 GB, free: 9.426 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0002563/0.01231, allocations: 44 kB / 0.9895 GB, free: 9.383 MB / 0.948 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.0004844/0.0128, allocations: 0.7903 MB / 0.9903 GB, free: 8.562 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0003614/0.01316, allocations: 340 kB / 0.9906 GB, free: 8.195 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 3.095e-06/0.01316, allocations: 4 kB / 0.9906 GB, free: 8.191 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 6.396e-05/0.01322, allocations: 51.91 kB / 0.9907 GB, free: 8.141 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002653/0.01349, allocations: 30.58 kB / 0.9907 GB, free: 8.113 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002202/0.01569, allocations: 2.577 MB / 0.9932 GB, free: 5.375 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.983e-05/0.01577, allocations: 108.1 kB / 0.9933 GB, free: 5.25 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 5.773e-05/0.01583, allocations: 25.42 kB / 0.9934 GB, free: 5.223 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001093/0.01594, allocations: 56.47 kB / 0.9934 GB, free: 5.168 MB / 0.948 GB Notification: Performance of SimCode: time 8.41e-07/0.01594, allocations: 0 / 0.9934 GB, free: 5.168 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01955/0.03549, allocations: 5.315 MB / 0.9986 GB, free: 136 kB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.959/6.994, allocations: 4.984 kB / 0.9986 GB, free: 132 kB / 0.948 GB " [Timeout remaining time 293] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_SamplerWithResetThreshold_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_SamplerWithResetThreshold.fmu > Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe 2>&1) [Timeout 420.0] 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: 10.91052427329123]