Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio.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.001719/0.001719, allocations: 113.5 kB / 17.13 MB, free: 5.926 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.001889/0.001889, allocations: 206.5 kB / 20.09 MB, free: 2.977 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.542/1.542, allocations: 230.6 MB / 253.5 MB, free: 15.07 MB / 206.1 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.033/3.033, allocations: 0.505 GB / 0.8073 GB, free: 2.039 MB / 0.6387 GB " [Timeout remaining time 176] Using package Buildings with version 13.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.HalfPeriodRatio,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|tOn.y|tOff.y|halPerRat.rho",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio") translateModel(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|tOn.y|tOff.y|halPerRat.rho",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002078/0.002078, allocations: 63.91 kB / 1.173 GB, free: 9.285 MB / 0.9512 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.058/1.06, allocations: 180.2 MB / 1.349 GB, free: 5.5 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio): time 0.002183/1.062, allocations: 1.185 MB / 1.35 GB, free: 4.711 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001475/1.063, allocations: 1.438 MB / 1.351 GB, free: 3.656 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.605e-05/1.063, allocations: 2.625 kB / 1.351 GB, free: 3.656 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 5.118e-05/1.064, allocations: 19.41 kB / 1.351 GB, free: 3.641 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001304/1.064, allocations: 54.95 kB / 1.352 GB, free: 3.602 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007925/1.064, allocations: 389.5 kB / 1.352 GB, free: 3.395 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0003972/1.065, allocations: 462.4 kB / 1.352 GB, free: 3.172 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001524/1.065, allocations: 74.8 kB / 1.352 GB, free: 3.129 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000159/1.065, allocations: 175.7 kB / 1.353 GB, free: 3.047 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002008/1.065, allocations: 162.5 kB / 1.353 GB, free: 2.969 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 6.475e-05/1.065, allocations: 46.66 kB / 1.353 GB, free: 2.969 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001094/1.066, allocations: 61.62 kB / 1.353 GB, free: 2.965 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 4.329e-05/1.066, allocations: 48.14 kB / 1.353 GB, free: 2.934 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001501/1.066, allocations: 171.6 kB / 1.353 GB, free: 2.828 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0005022/1.066, allocations: 498.4 kB / 1.354 GB, free: 2.652 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.399e-06/1.066, allocations: 4.562 kB / 1.354 GB, free: 2.648 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.292e-06/1.066, allocations: 0 / 1.354 GB, free: 2.648 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.222e-06/1.066, allocations: 0 / 1.354 GB, free: 2.648 MB / 1.045 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 35 * Number of variables: 35 Notification: Performance of Generate backend data structure: time 0.0007073/1.067, allocations: 0.6293 MB / 1.354 GB, free: 2.074 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.348e-05/1.067, allocations: 8.625 kB / 1.354 GB, free: 2.074 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.217e-05/1.067, allocations: 31.84 kB / 1.354 GB, free: 2.062 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002694/1.067, allocations: 288.2 kB / 1.354 GB, free: 1.797 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.841e-05/1.067, allocations: 24.89 kB / 1.355 GB, free: 1.785 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.742e-05/1.067, allocations: 27.66 kB / 1.355 GB, free: 1.781 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002444/1.068, allocations: 143.2 kB / 1.355 GB, free: 1.707 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.949e-06/1.068, allocations: 5.312 kB / 1.355 GB, free: 1.703 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.9e-05/1.068, allocations: 6.781 kB / 1.355 GB, free: 1.699 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/1.068, allocations: 2.906 kB / 1.355 GB, free: 1.699 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001658/1.068, allocations: 89.56 kB / 1.355 GB, free: 1.668 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009329/1.069, allocations: 0.6941 MB / 1.355 GB, free: 1.207 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001737/1.069, allocations: 105.4 kB / 1.356 GB, free: 1.145 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.713e-05/1.069, allocations: 52.12 kB / 1.356 GB, free: 1.117 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.327e-05/1.069, allocations: 5.406 kB / 1.356 GB, free: 1.113 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002393/1.069, allocations: 142.1 kB / 1.356 GB, free: 1.039 MB / 1.045 GB Notification: Performance of pre-optimization done (n=20): time 1.553e-06/1.069, allocations: 0 / 1.356 GB, free: 1.039 MB / 1.045 GB Notification: Performance of matching and sorting (n=20): time 0.0004452/1.07, allocations: 249.1 kB / 1.356 GB, free: 0.9336 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.293e-05/1.07, allocations: 59.44 kB / 1.356 GB, free: 0.8672 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001722/1.07, allocations: 215.2 kB / 1.356 GB, free: 0.7266 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 4.091e-05/1.07, allocations: 36.89 kB / 1.356 GB, free: 0.6914 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 8.69e-05/1.07, allocations: 150.3 kB / 1.356 GB, free: 0.5625 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.628e-05/1.07, allocations: 51.3 kB / 1.356 GB, free: 0.5234 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001569/1.07, allocations: 85.27 kB / 1.357 GB, free: 500 kB / 1.045 GB Notification: Performance of setup shared object (initialization): time 5.524e-05/1.07, allocations: 334.7 kB / 1.357 GB, free: 168 kB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002489/1.071, allocations: 136 kB / 1.357 GB, free: 112 kB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000295/1.071, allocations: 198.9 kB / 1.357 GB, free: 15.97 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004511/1.071, allocations: 342.2 kB / 1.358 GB, free: 15.69 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/1.071, allocations: 5.125 kB / 1.358 GB, free: 15.69 MB / 1.061 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0008766/1.072, allocations: 0.4992 MB / 1.358 GB, free: 15.41 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 9.255e-05/1.072, allocations: 107.1 kB / 1.358 GB, free: 15.3 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/1.072, allocations: 2.719 kB / 1.358 GB, free: 15.3 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/1.072, allocations: 3.531 kB / 1.358 GB, free: 15.3 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001197/1.072, allocations: 29.52 kB / 1.358 GB, free: 15.3 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.16e-05/1.072, allocations: 8.312 kB / 1.358 GB, free: 15.29 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005283/1.073, allocations: 89.09 kB / 1.358 GB, free: 15.28 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.029e-05/1.073, allocations: 22.8 kB / 1.358 GB, free: 15.28 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition6,$whenCondition7,$whenCondition4,$whenCondition5,$whenCondition2,$whenCondition3,halPerRat.tOffSam.y,$PRE.halPerRat.tOffSam.y,halPerRat.tOnSam.y,$PRE.halPerRat.tOnSam.y,tOnSig2.booPul.y,$PRE.tOnSig2.booPul.y,tOnSig1.booPul.y,$PRE.tOnSig1.booPul.y,tOff.booPul.y,$PRE.tOff.booPul.y,samTri.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 3 * 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.0001678/1.073, allocations: 152.4 kB / 1.358 GB, free: 15.14 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.238e-05/1.073, allocations: 24.56 kB / 1.358 GB, free: 15.12 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003585/1.074, allocations: 208.6 kB / 1.359 GB, free: 15.02 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/1.074, allocations: 2.156 kB / 1.359 GB, free: 15.02 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/1.074, allocations: 2.125 kB / 1.359 GB, free: 15.02 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/1.074, allocations: 0.6562 kB / 1.359 GB, free: 15.02 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007204/1.074, allocations: 0.5632 MB / 1.359 GB, free: 14.61 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/1.074, allocations: 0.75 kB / 1.359 GB, free: 14.61 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.139e-05/1.074, allocations: 13.05 kB / 1.359 GB, free: 14.61 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/1.074, allocations: 1.562 kB / 1.359 GB, free: 14.61 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.677e-05/1.074, allocations: 6.875 kB / 1.359 GB, free: 14.6 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/1.074, allocations: 5.375 kB / 1.359 GB, free: 14.6 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/1.074, allocations: 4.734 kB / 1.359 GB, free: 14.59 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003511/1.075, allocations: 293.9 kB / 1.359 GB, free: 14.4 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 7.739e-05/1.075, allocations: 96.11 kB / 1.36 GB, free: 14.3 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.987e-05/1.075, allocations: 5.922 kB / 1.36 GB, free: 14.29 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.05e-05/1.075, allocations: 2.203 kB / 1.36 GB, free: 14.29 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.984e-05/1.075, allocations: 20.08 kB / 1.36 GB, free: 14.29 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.593e-05/1.075, allocations: 10.41 kB / 1.36 GB, free: 14.28 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001424/1.075, allocations: 153.9 kB / 1.36 GB, free: 14.18 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/1.075, allocations: 0 / 1.36 GB, free: 14.18 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003685/1.076, allocations: 74.56 kB / 1.36 GB, free: 14.16 MB / 1.061 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 (samTri.y,$whenCondition6,$whenCondition7,$whenCondition4,$whenCondition5,$whenCondition2,$whenCondition3,$whenCondition1,halPerRat.tOnSam.y,halPerRat.tOffSam.y,tOnSig1.booPul.y,tOnSig2.booPul.y,tOff.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001916/1.076, allocations: 114.2 kB / 1.36 GB, free: 14.07 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0006531/1.076, allocations: 421.5 kB / 1.36 GB, free: 13.78 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 3.848e-06/1.076, allocations: 4.062 kB / 1.36 GB, free: 13.78 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.000126/1.076, allocations: 67.58 kB / 1.36 GB, free: 13.76 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004674/1.077, allocations: 58.12 kB / 1.36 GB, free: 13.74 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006867/1.078, allocations: 417.5 kB / 1.361 GB, free: 13.45 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003902/1.078, allocations: 0.7357 MB / 1.362 GB, free: 12.75 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.574e-05/1.078, allocations: 25.12 kB / 1.362 GB, free: 12.74 MB / 1.061 GB Notification: Performance of SimCode: time 3.81e-07/1.078, allocations: 4 kB / 1.362 GB, free: 12.73 MB / 1.061 GB Notification: Performance of Templates: time 0.006224/1.084, allocations: 3.367 MB / 1.365 GB, free: 12.38 MB / 1.061 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio.sim & ./Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_HalfPeriodRatio.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio.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: 12.173793119000038]