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.000809/0.000809, 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.0009471/0.0009471, allocations: 165.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.8744/0.8744, allocations: 177.1 MB / 202.8 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] 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 1.744/1.744, allocations: 389 MB / 0.633 GB, free: 12.71 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/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: "" <> buildModelFMU(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold,fileNamePrefix="Buildings_latest_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_latest_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 2.505e-06/2.505e-06, allocations: 0 / 0.9997 GB, free: 13.49 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.034e-05/2.284e-05, allocations: 4.953 kB / 0.9997 GB, free: 13.49 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.0016/0.001623, allocations: 0.9861 MB / 1.001 GB, free: 12.5 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001212/0.002834, allocations: 1.357 MB / 1.002 GB, free: 11.13 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.94e-05/0.002914, allocations: 4 kB / 1.002 GB, free: 11.13 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 7.252e-05/0.002986, allocations: 19.73 kB / 1.002 GB, free: 11.11 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 4.689e-05/0.003033, allocations: 27.73 kB / 1.002 GB, free: 11.08 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004497/0.003483, allocations: 269.1 kB / 1.002 GB, free: 10.82 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0002224/0.003705, allocations: 307.4 kB / 1.003 GB, free: 10.52 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000108/0.003813, allocations: 62.97 kB / 1.003 GB, free: 10.46 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001217/0.003935, allocations: 171.8 kB / 1.003 GB, free: 10.3 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001017/0.004037, allocations: 87.72 kB / 1.003 GB, free: 10.21 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 4.152e-05/0.004078, allocations: 28 kB / 1.003 GB, free: 10.18 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 6.329e-05/0.004142, allocations: 55.81 kB / 1.003 GB, free: 10.13 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 3.088e-05/0.004173, allocations: 39.83 kB / 1.003 GB, free: 10.09 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 7.288e-05/0.004245, allocations: 91.8 kB / 1.003 GB, free: 10 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0002645/0.00451, allocations: 363.1 kB / 1.003 GB, free: 9.645 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.254e-06/0.004512, allocations: 8 kB / 1.003 GB, free: 9.637 MB / 0.9636 GB Notification: Performance of FrontEnd: time 6.21e-07/0.004513, allocations: 0 / 1.003 GB, free: 9.637 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 2.965e-06/0.004516, allocations: 0 / 1.003 GB, free: 9.637 MB / 0.9636 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.0004159/0.004932, allocations: 472.9 kB / 1.004 GB, free: 9.129 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 2.899e-05/0.004961, allocations: 8.75 kB / 1.004 GB, free: 9.121 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.778e-05/0.004988, allocations: 50.67 kB / 1.004 GB, free: 9.062 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.371e-05/0.005032, allocations: 20.84 kB / 1.004 GB, free: 9.043 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002092/0.005241, allocations: 194.4 kB / 1.004 GB, free: 8.824 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.332e-05/0.005255, allocations: 12.38 kB / 1.004 GB, free: 8.812 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.438e-05/0.005279, allocations: 20.38 kB / 1.004 GB, free: 8.793 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001348/0.005414, allocations: 126.1 kB / 1.004 GB, free: 8.664 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.781e-06/0.00542, allocations: 192 / 1.004 GB, free: 8.664 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.528e-06/0.005429, allocations: 4.375 kB / 1.004 GB, free: 8.66 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-06/0.005435, allocations: 15.92 kB / 1.004 GB, free: 8.645 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.213e-05/0.005527, allocations: 71.97 kB / 1.004 GB, free: 8.574 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004898/0.006017, allocations: 0.4914 MB / 1.005 GB, free: 8.039 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001249/0.006142, allocations: 86.72 kB / 1.005 GB, free: 7.945 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.204e-05/0.006184, allocations: 36.84 kB / 1.005 GB, free: 7.906 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.169e-05/0.006195, allocations: 0 / 1.005 GB, free: 7.906 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001171/0.006312, allocations: 123.4 kB / 1.005 GB, free: 7.773 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=15): time 9.01e-07/0.006313, allocations: 4 kB / 1.005 GB, free: 7.77 MB / 0.9636 GB Notification: Performance of matching and sorting (n=15): time 0.0002284/0.006542, allocations: 183.9 kB / 1.005 GB, free: 7.586 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.54e-05/0.006567, allocations: 51.41 kB / 1.005 GB, free: 7.523 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001145/0.006682, allocations: 186.7 kB / 1.006 GB, free: 7.328 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 3.028e-05/0.006712, allocations: 37.69 kB / 1.006 GB, free: 7.285 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 5.994e-05/0.006772, allocations: 132.5 kB / 1.006 GB, free: 7.152 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 2.432e-05/0.006796, allocations: 39.69 kB / 1.006 GB, free: 7.113 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.203e-05/0.006868, allocations: 61.69 kB / 1.006 GB, free: 7.047 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 8.696e-05/0.006955, allocations: 330.8 kB / 1.006 GB, free: 6.715 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001466/0.007102, allocations: 147.4 kB / 1.006 GB, free: 6.559 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001515/0.007253, allocations: 193.1 kB / 1.006 GB, free: 6.34 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001705/0.007424, allocations: 206 kB / 1.007 GB, free: 6.109 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.007426, allocations: 0 / 1.007 GB, free: 6.109 MB / 0.9636 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003607/0.007786, allocations: 412 kB / 1.007 GB, free: 5.676 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 3.255e-05/0.007819, allocations: 67.55 kB / 1.007 GB, free: 5.598 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.496e-06/0.007822, allocations: 4 kB / 1.007 GB, free: 5.594 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.175e-06/0.00783, allocations: 7.938 kB / 1.007 GB, free: 5.586 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.767e-05/0.007868, allocations: 15.92 kB / 1.007 GB, free: 5.57 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.855e-06/0.007871, allocations: 0 / 1.007 GB, free: 5.57 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001802/0.008051, allocations: 63.83 kB / 1.007 GB, free: 5.508 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.079e-05/0.008072, allocations: 19.98 kB / 1.007 GB, free: 5.488 MB / 0.9636 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 8.583e-05/0.008158, allocations: 145.7 kB / 1.007 GB, free: 5.336 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.523e-05/0.008173, allocations: 15.84 kB / 1.007 GB, free: 5.32 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.73e-05/0.0082, allocations: 21.45 kB / 1.007 GB, free: 5.289 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.008203, allocations: 4 kB / 1.007 GB, free: 5.285 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.008207, allocations: 0 / 1.007 GB, free: 5.285 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.008209, allocations: 0 / 1.007 GB, free: 5.285 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003096/0.008519, allocations: 433.6 kB / 1.008 GB, free: 4.812 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.00852, allocations: 0 / 1.008 GB, free: 4.812 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.55e-05/0.008535, allocations: 4 kB / 1.008 GB, free: 4.809 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.008537, allocations: 11.94 kB / 1.008 GB, free: 4.797 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.023e-06/0.008544, allocations: 4 kB / 1.008 GB, free: 4.793 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.11e-07/0.008545, allocations: 0 / 1.008 GB, free: 4.793 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.008547, allocations: 3.984 kB / 1.008 GB, free: 4.789 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000153/0.0087, allocations: 246.2 kB / 1.008 GB, free: 4.535 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 1.465e-05/0.008715, allocations: 15.84 kB / 1.008 GB, free: 4.52 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.762e-05/0.008732, allocations: 8 kB / 1.008 GB, free: 4.512 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.225e-05/0.008774, allocations: 0 / 1.008 GB, free: 4.512 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.944e-05/0.008804, allocations: 15.97 kB / 1.008 GB, free: 4.496 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.693e-06/0.008811, allocations: 8 kB / 1.008 GB, free: 4.488 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 8.319e-05/0.008894, allocations: 137.6 kB / 1.008 GB, free: 4.355 MB / 0.9636 GB Notification: Performance of sort global known variables: time 6e-08/0.008894, allocations: 0 / 1.008 GB, free: 4.355 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0002025/0.009096, allocations: 51.89 kB / 1.008 GB, free: 4.305 MB / 0.9636 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.0004023/0.009499, allocations: 0.7882 MB / 1.009 GB, free: 3.492 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.00034/0.009839, allocations: 338.1 kB / 1.009 GB, free: 3.125 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.062e-06/0.00984, allocations: 0 / 1.009 GB, free: 3.125 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 5.801e-05/0.009898, allocations: 50.34 kB / 1.009 GB, free: 3.078 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002188/0.01012, allocations: 41.83 kB / 1.009 GB, free: 3.039 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002036/0.01215, allocations: 2.575 MB / 1.012 GB, free: 304 kB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.73e-05/0.01223, allocations: 108.3 kB / 1.012 GB, free: 172 kB / 0.9636 GB Notification: Performance of simCode: alias equations: time 4.457e-05/0.01227, allocations: 21.47 kB / 1.012 GB, free: 148 kB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.783e-05/0.01233, allocations: 56.47 kB / 1.012 GB, free: 92 kB / 0.9636 GB Notification: Performance of SimCode: time 3e-07/0.01233, allocations: 0 / 1.012 GB, free: 92 kB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0157/0.02803, allocations: 5.318 MB / 1.017 GB, free: 11.04 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.594/6.622, allocations: 0.5 kB / 1.017 GB, free: 11.04 MB / 0.9792 GB " [Timeout remaining time 293] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_SamplerWithResetThreshold_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_SamplerWithResetThreshold.fmu > Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe 2>&1) [Timeout 840.0] 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: 10.648332862183452]