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.001608/0.001608, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001813/0.001813, allocations: 213.6 kB / 22.99 MB, free: 4.945 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.527/1.527, allocations: 230.6 MB / 256.8 MB, free: 7.785 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.315/3.315, allocations: 0.5107 GB / 0.8166 GB, free: 17.77 MB / 0.6231 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.002162/0.002162, allocations: 67.73 kB / 1.187 GB, free: 13.51 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3352/0.3374, allocations: 181.9 MB / 1.365 GB, free: 13.54 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio): time 0.002656/0.34, allocations: 1.098 MB / 1.366 GB, free: 12.44 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002196/0.3422, allocations: 1.421 MB / 1.367 GB, free: 11 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000141/0.3424, allocations: 3.938 kB / 1.367 GB, free: 11 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 6.516e-05/0.3424, allocations: 19.73 kB / 1.367 GB, free: 10.98 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001897/0.3426, allocations: 55.58 kB / 1.367 GB, free: 10.93 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.001037/0.3437, allocations: 379.4 kB / 1.368 GB, free: 10.56 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.000646/0.3443, allocations: 467.1 kB / 1.368 GB, free: 10.11 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000189/0.3445, allocations: 67.61 kB / 1.368 GB, free: 10.04 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002911/0.3448, allocations: 179.5 kB / 1.368 GB, free: 9.859 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002913/0.3451, allocations: 143.4 kB / 1.368 GB, free: 9.719 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 9.64e-05/0.3452, allocations: 48 kB / 1.368 GB, free: 9.672 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001355/0.3453, allocations: 60 kB / 1.368 GB, free: 9.613 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 5.659e-05/0.3454, allocations: 43.84 kB / 1.368 GB, free: 9.57 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001953/0.3456, allocations: 155.4 kB / 1.369 GB, free: 9.418 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0005846/0.3461, allocations: 498.3 kB / 1.369 GB, free: 8.93 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.3462, allocations: 0 / 1.369 GB, free: 8.93 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.373e-06/0.3462, allocations: 3.938 kB / 1.369 GB, free: 8.926 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.135e-05/0.3462, allocations: 4 kB / 1.369 GB, free: 8.922 MB / 1.061 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.0009846/0.3471, allocations: 0.5451 MB / 1.37 GB, free: 8.324 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.3472, allocations: 12.03 kB / 1.37 GB, free: 8.312 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001042/0.3473, allocations: 32.78 kB / 1.37 GB, free: 8.281 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004315/0.3477, allocations: 225.9 kB / 1.37 GB, free: 8.035 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.585e-05/0.3478, allocations: 24.36 kB / 1.37 GB, free: 8.012 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.551e-05/0.3478, allocations: 32.31 kB / 1.37 GB, free: 7.98 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002797/0.3481, allocations: 142 kB / 1.37 GB, free: 7.836 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.3481, allocations: 3.938 kB / 1.37 GB, free: 7.832 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.807e-05/0.3481, allocations: 4 kB / 1.37 GB, free: 7.828 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.706e-06/0.3481, allocations: 7.984 kB / 1.37 GB, free: 7.82 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001739/0.3483, allocations: 91.97 kB / 1.37 GB, free: 7.73 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001009/0.3493, allocations: 0.5348 MB / 1.371 GB, free: 7.164 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000199/0.3495, allocations: 106.4 kB / 1.371 GB, free: 7.051 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.828e-05/0.3496, allocations: 49.08 kB / 1.371 GB, free: 7 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.662e-05/0.3496, allocations: 7.984 kB / 1.371 GB, free: 6.992 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003065/0.3499, allocations: 153.1 kB / 1.371 GB, free: 6.832 MB / 1.061 GB Notification: Performance of pre-optimization done (n=20): time 2.014e-06/0.3499, allocations: 4 kB / 1.371 GB, free: 6.828 MB / 1.061 GB Notification: Performance of matching and sorting (n=20): time 0.0005153/0.3505, allocations: 252 kB / 1.371 GB, free: 6.578 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.238e-05/0.3505, allocations: 59.39 kB / 1.371 GB, free: 6.508 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002212/0.3507, allocations: 208.2 kB / 1.372 GB, free: 6.293 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 5.072e-05/0.3508, allocations: 41.64 kB / 1.372 GB, free: 6.246 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001303/0.3509, allocations: 144.5 kB / 1.372 GB, free: 6.102 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 5.066e-05/0.351, allocations: 51.58 kB / 1.372 GB, free: 6.051 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001538/0.3511, allocations: 85.66 kB / 1.372 GB, free: 5.961 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001563/0.3513, allocations: 330.8 kB / 1.372 GB, free: 5.629 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003389/0.3516, allocations: 225 kB / 1.372 GB, free: 5.391 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004036/0.352, allocations: 307.5 kB / 1.373 GB, free: 5.039 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000457/0.3525, allocations: 338.4 kB / 1.373 GB, free: 4.656 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.857e-06/0.3525, allocations: 7.938 kB / 1.373 GB, free: 4.648 MB / 1.061 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0009516/0.3534, allocations: 0.5931 MB / 1.374 GB, free: 4.012 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 9.119e-05/0.3535, allocations: 97.09 kB / 1.374 GB, free: 3.898 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/0.3535, allocations: 4 kB / 1.374 GB, free: 3.895 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.333e-05/0.3536, allocations: 4 kB / 1.374 GB, free: 3.891 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001271/0.3537, allocations: 27.92 kB / 1.374 GB, free: 3.863 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.037e-06/0.3537, allocations: 4 kB / 1.374 GB, free: 3.859 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004756/0.3542, allocations: 96 kB / 1.374 GB, free: 3.766 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.857e-05/0.3542, allocations: 23.97 kB / 1.374 GB, free: 3.742 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.0001809/0.3544, allocations: 150.1 kB / 1.374 GB, free: 3.586 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.945e-05/0.3544, allocations: 15.91 kB / 1.374 GB, free: 3.57 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000368/0.3548, allocations: 207.3 kB / 1.374 GB, free: 3.363 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.239e-06/0.3548, allocations: 4 kB / 1.374 GB, free: 3.359 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.3548, allocations: 0 / 1.374 GB, free: 3.359 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.253e-06/0.3548, allocations: 7.984 kB / 1.374 GB, free: 3.352 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000654/0.3555, allocations: 493.9 kB / 1.375 GB, free: 2.832 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.3555, allocations: 3.938 kB / 1.375 GB, free: 2.828 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.032e-05/0.3555, allocations: 16 kB / 1.375 GB, free: 2.812 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.3555, allocations: 3.938 kB / 1.375 GB, free: 2.809 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.62e-05/0.3556, allocations: 7.984 kB / 1.375 GB, free: 2.801 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.3556, allocations: 0 / 1.375 GB, free: 2.801 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.3556, allocations: 0 / 1.375 GB, free: 2.801 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000364/0.3559, allocations: 297.2 kB / 1.375 GB, free: 2.496 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.391e-05/0.356, allocations: 23.8 kB / 1.375 GB, free: 2.473 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.532e-05/0.356, allocations: 0 / 1.375 GB, free: 2.473 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.846e-05/0.3561, allocations: 11.98 kB / 1.375 GB, free: 2.461 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.565e-05/0.3561, allocations: 15.98 kB / 1.375 GB, free: 2.445 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.418e-05/0.3561, allocations: 7.984 kB / 1.375 GB, free: 2.438 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001644/0.3563, allocations: 155 kB / 1.375 GB, free: 2.285 MB / 1.061 GB Notification: Performance of sort global known variables: time 6e-08/0.3563, allocations: 0 / 1.375 GB, free: 2.285 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003654/0.3567, allocations: 71.83 kB / 1.375 GB, free: 2.215 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.0001764/0.3568, allocations: 111.2 kB / 1.375 GB, free: 2.094 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0007421/0.3576, allocations: 0.511 MB / 1.376 GB, free: 1.527 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.3576, allocations: 4 kB / 1.376 GB, free: 1.523 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001318/0.3577, allocations: 73.91 kB / 1.376 GB, free: 1.453 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004638/0.3582, allocations: 60.27 kB / 1.376 GB, free: 1.395 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007418/0.3589, allocations: 400.4 kB / 1.376 GB, free: 0.9766 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001406/0.3591, allocations: 125.9 kB / 1.376 GB, free: 0.832 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.538e-05/0.3591, allocations: 27.44 kB / 1.377 GB, free: 0.8047 MB / 1.061 GB Notification: Performance of SimCode: time 5.61e-07/0.3591, allocations: 0 / 1.377 GB, free: 0.8047 MB / 1.061 GB Notification: Performance of Templates: time 0.005992/0.3651, allocations: 3.443 MB / 1.38 GB, free: 13.39 MB / 1.076 GB " [Timeout remaining time 300] 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: 11.534657206851989]