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.001393/0.001393, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001635/0.001635, allocations: 212 kB / 22.24 MB, free: 5.262 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.537/1.537, allocations: 230.6 MB / 256 MB, free: 7.797 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.46/3.46, allocations: 0.5107 GB / 0.8158 GB, free: 17.8 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: "" <> buildModelFMU(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_HalfPeriodRatio",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_HalfPeriodRatio",fmuType="me",version="2.0",platforms={"static"}) [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.002215/0.002215, allocations: 62 kB / 1.186 GB, free: 13.78 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3623/0.3645, allocations: 181.9 MB / 1.363 GB, free: 14.11 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio): time 0.002631/0.3671, allocations: 1.093 MB / 1.364 GB, free: 13.02 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002219/0.3694, allocations: 1.425 MB / 1.366 GB, free: 11.58 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001355/0.3695, allocations: 4 kB / 1.366 GB, free: 11.58 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 6.31e-05/0.3696, allocations: 19.69 kB / 1.366 GB, free: 11.56 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001763/0.3697, allocations: 59.56 kB / 1.366 GB, free: 11.5 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009511/0.3707, allocations: 380.7 kB / 1.366 GB, free: 11.14 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0005751/0.3713, allocations: 459.2 kB / 1.367 GB, free: 10.69 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001812/0.3714, allocations: 71.59 kB / 1.367 GB, free: 10.61 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002467/0.3717, allocations: 179.5 kB / 1.367 GB, free: 10.44 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002605/0.3719, allocations: 143.4 kB / 1.367 GB, free: 10.3 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 8.375e-05/0.372, allocations: 51.94 kB / 1.367 GB, free: 10.25 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001188/0.3721, allocations: 59.98 kB / 1.367 GB, free: 10.19 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 5.648e-05/0.3722, allocations: 55.77 kB / 1.367 GB, free: 10.13 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001796/0.3724, allocations: 143.5 kB / 1.367 GB, free: 9.992 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0005648/0.3729, allocations: 498.6 kB / 1.368 GB, free: 9.504 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.373, allocations: 4 kB / 1.368 GB, free: 9.5 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.192e-06/0.373, allocations: 0 / 1.368 GB, free: 9.5 MB / 1.061 GB Notification: Performance of Transformations before backend: time 9.528e-06/0.373, allocations: 0 / 1.368 GB, free: 9.5 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.0008952/0.3739, allocations: 0.5529 MB / 1.368 GB, free: 8.895 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.3739, allocations: 11.97 kB / 1.368 GB, free: 8.883 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.636e-05/0.374, allocations: 46.73 kB / 1.368 GB, free: 8.828 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.932e-05/0.374, allocations: 32.8 kB / 1.369 GB, free: 8.797 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003676/0.3744, allocations: 229.9 kB / 1.369 GB, free: 8.547 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.169e-05/0.3744, allocations: 16.38 kB / 1.369 GB, free: 8.531 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.75e-05/0.3745, allocations: 32.36 kB / 1.369 GB, free: 8.5 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002674/0.3748, allocations: 145.8 kB / 1.369 GB, free: 8.352 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.3748, allocations: 0 / 1.369 GB, free: 8.352 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.583e-05/0.3748, allocations: 4 kB / 1.369 GB, free: 8.348 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.582e-06/0.3748, allocations: 4 kB / 1.369 GB, free: 8.344 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001684/0.375, allocations: 91.95 kB / 1.369 GB, free: 8.254 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001019/0.376, allocations: 0.581 MB / 1.37 GB, free: 7.629 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002031/0.3762, allocations: 98.55 kB / 1.37 GB, free: 7.523 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.837e-05/0.3763, allocations: 49.09 kB / 1.37 GB, free: 7.473 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.11e-05/0.3763, allocations: 0 / 1.37 GB, free: 7.473 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002925/0.3766, allocations: 161.2 kB / 1.37 GB, free: 7.305 MB / 1.061 GB Notification: Performance of pre-optimization done (n=20): time 1.483e-06/0.3766, allocations: 0 / 1.37 GB, free: 7.305 MB / 1.061 GB Notification: Performance of matching and sorting (n=20): time 0.000497/0.3771, allocations: 253.4 kB / 1.37 GB, free: 7.051 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.103e-05/0.3771, allocations: 59.41 kB / 1.37 GB, free: 6.98 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002211/0.3774, allocations: 203.2 kB / 1.37 GB, free: 6.77 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 5.414e-05/0.3774, allocations: 45.62 kB / 1.37 GB, free: 6.719 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.000127/0.3775, allocations: 148.5 kB / 1.371 GB, free: 6.57 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 4.705e-05/0.3776, allocations: 47.58 kB / 1.371 GB, free: 6.523 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001562/0.3777, allocations: 89.66 kB / 1.371 GB, free: 6.43 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001613/0.3779, allocations: 334.8 kB / 1.371 GB, free: 6.094 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003293/0.3782, allocations: 225 kB / 1.371 GB, free: 5.855 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003754/0.3786, allocations: 302.4 kB / 1.372 GB, free: 5.508 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004643/0.3791, allocations: 334.4 kB / 1.372 GB, free: 5.129 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.3791, allocations: 3.938 kB / 1.372 GB, free: 5.125 MB / 1.061 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0009499/0.38, allocations: 0.597 MB / 1.372 GB, free: 4.484 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 8.63e-05/0.3801, allocations: 109.1 kB / 1.373 GB, free: 4.359 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.702e-06/0.3801, allocations: 0 / 1.373 GB, free: 4.359 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.954e-05/0.3801, allocations: 7.938 kB / 1.373 GB, free: 4.352 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001215/0.3803, allocations: 27.92 kB / 1.373 GB, free: 4.324 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.167e-06/0.3803, allocations: 4 kB / 1.373 GB, free: 4.32 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005058/0.3808, allocations: 91.97 kB / 1.373 GB, free: 4.23 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.453e-05/0.3809, allocations: 23.98 kB / 1.373 GB, free: 4.207 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.0002438/0.3811, allocations: 156.2 kB / 1.373 GB, free: 4.047 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.27e-05/0.3811, allocations: 15.91 kB / 1.373 GB, free: 4.031 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005126/0.3816, allocations: 213.9 kB / 1.373 GB, free: 3.82 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.3817, allocations: 0 / 1.373 GB, free: 3.82 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.3817, allocations: 4 kB / 1.373 GB, free: 3.816 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.3817, allocations: 4 kB / 1.373 GB, free: 3.812 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009614/0.3826, allocations: 0.5052 MB / 1.374 GB, free: 3.258 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.3826, allocations: 7.922 kB / 1.374 GB, free: 3.25 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.47e-05/0.3827, allocations: 16 kB / 1.374 GB, free: 3.234 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.887e-06/0.3827, allocations: 0 / 1.374 GB, free: 3.234 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.865e-05/0.3827, allocations: 4 kB / 1.374 GB, free: 3.23 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.916e-05/0.3828, allocations: 4 kB / 1.374 GB, free: 3.227 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.542e-06/0.3828, allocations: 7.922 kB / 1.374 GB, free: 3.219 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005195/0.3833, allocations: 293.3 kB / 1.374 GB, free: 2.918 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 5.021e-05/0.3833, allocations: 31.72 kB / 1.374 GB, free: 2.887 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.756e-05/0.3834, allocations: 0 / 1.374 GB, free: 2.887 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001392/0.3835, allocations: 12 kB / 1.374 GB, free: 2.875 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.036e-05/0.3836, allocations: 19.91 kB / 1.374 GB, free: 2.855 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.023e-05/0.3836, allocations: 8 kB / 1.374 GB, free: 2.848 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0002114/0.3838, allocations: 155 kB / 1.374 GB, free: 2.695 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3838, allocations: 0 / 1.374 GB, free: 2.695 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0006302/0.3844, allocations: 67.89 kB / 1.374 GB, free: 2.629 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.0009864/0.3854, allocations: 0.8389 MB / 1.375 GB, free: 1.762 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.001065/0.3865, allocations: 0.5035 MB / 1.375 GB, free: 1.203 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 5.11e-06/0.3865, allocations: 4 kB / 1.375 GB, free: 1.199 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001971/0.3867, allocations: 67.91 kB / 1.376 GB, free: 1.133 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007607/0.3875, allocations: 66.94 kB / 1.376 GB, free: 1.07 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006418/0.3939, allocations: 3.267 MB / 1.379 GB, free: 13.57 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002027/0.3941, allocations: 129.9 kB / 1.379 GB, free: 13.42 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0001243/0.3942, allocations: 25.94 kB / 1.379 GB, free: 13.4 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001667/0.3944, allocations: 67.42 kB / 1.379 GB, free: 13.33 MB / 1.076 GB Notification: Performance of SimCode: time 7.01e-07/0.3944, allocations: 0 / 1.379 GB, free: 13.33 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04901/0.4434, allocations: 6.958 MB / 1.386 GB, free: 6.637 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/12.21, allocations: 0 / 1.386 GB, free: 6.637 MB / 1.076 GB " [Timeout remaining time 288] (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio_res.csv --start-time 0 --stop-time 1 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_HalfPeriodRatio.fmu > Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio_res.csv","/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: 19.501391687896103]