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.001643/0.001643, allocations: 108 kB / 16.45 MB, free: 6.453 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.001898/0.001898, allocations: 216.2 kB / 19.43 MB, free: 3.625 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.568/1.568, allocations: 230.6 MB / 252.8 MB, free: 8.926 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.387/3.387, allocations: 0.505 GB / 0.8066 GB, free: 23.05 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.002344/0.002344, allocations: 78.84 kB / 1.172 GB, free: 17.68 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3569/0.3592, allocations: 180.2 MB / 1.348 GB, free: 10.1 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio): time 0.002461/0.3617, allocations: 1.185 MB / 1.349 GB, free: 8.914 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001957/0.3636, allocations: 1.444 MB / 1.35 GB, free: 7.457 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.43e-05/0.3637, allocations: 0 / 1.35 GB, free: 7.457 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 5.53e-05/0.3638, allocations: 23.67 kB / 1.35 GB, free: 7.434 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001621/0.3639, allocations: 55.58 kB / 1.35 GB, free: 7.379 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008997/0.3648, allocations: 374.7 kB / 1.351 GB, free: 7.02 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0005479/0.3654, allocations: 471.1 kB / 1.351 GB, free: 6.559 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001719/0.3655, allocations: 71.03 kB / 1.351 GB, free: 6.488 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000204/0.3658, allocations: 179.5 kB / 1.351 GB, free: 6.312 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002328/0.366, allocations: 159.4 kB / 1.352 GB, free: 6.156 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 6.816e-05/0.3661, allocations: 44 kB / 1.352 GB, free: 6.113 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001237/0.3662, allocations: 63.98 kB / 1.352 GB, free: 6.051 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 5.667e-05/0.3662, allocations: 55.77 kB / 1.352 GB, free: 5.996 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001874/0.3664, allocations: 163.4 kB / 1.352 GB, free: 5.836 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0005517/0.367, allocations: 0.4908 MB / 1.352 GB, free: 5.344 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.367, allocations: 0 / 1.352 GB, free: 5.344 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.733e-06/0.367, allocations: 0 / 1.352 GB, free: 5.344 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.701e-06/0.367, allocations: 4 kB / 1.352 GB, free: 5.34 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.0009263/0.3679, allocations: 0.6243 MB / 1.353 GB, free: 4.645 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/0.368, allocations: 15.98 kB / 1.353 GB, free: 4.629 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.395e-05/0.368, allocations: 46.73 kB / 1.353 GB, free: 4.574 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.797e-05/0.3681, allocations: 28.8 kB / 1.353 GB, free: 4.547 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004096/0.3685, allocations: 287.9 kB / 1.353 GB, free: 4.227 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.997e-05/0.3685, allocations: 20.36 kB / 1.353 GB, free: 4.207 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.18e-05/0.3686, allocations: 32.38 kB / 1.353 GB, free: 4.176 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002692/0.3689, allocations: 149.7 kB / 1.354 GB, free: 4.023 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.3689, allocations: 0 / 1.354 GB, free: 4.023 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.238e-05/0.3689, allocations: 7.984 kB / 1.354 GB, free: 4.016 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.063e-06/0.3689, allocations: 4 kB / 1.354 GB, free: 4.012 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000174/0.3691, allocations: 88.56 kB / 1.354 GB, free: 3.926 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001077/0.3702, allocations: 0.6989 MB / 1.354 GB, free: 3.176 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002021/0.3704, allocations: 102.5 kB / 1.354 GB, free: 3.066 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.867e-05/0.3704, allocations: 44.84 kB / 1.354 GB, free: 3.02 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.478e-05/0.3705, allocations: 8.25 kB / 1.354 GB, free: 3.012 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002718/0.3707, allocations: 149 kB / 1.355 GB, free: 2.855 MB / 1.045 GB Notification: Performance of pre-optimization done (n=20): time 1.523e-06/0.3707, allocations: 0 / 1.355 GB, free: 2.855 MB / 1.045 GB Notification: Performance of matching and sorting (n=20): time 0.0005421/0.3713, allocations: 246.9 kB / 1.355 GB, free: 2.609 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.319e-05/0.3713, allocations: 59.41 kB / 1.355 GB, free: 2.539 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002337/0.3716, allocations: 218.9 kB / 1.355 GB, free: 2.312 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 5.438e-05/0.3716, allocations: 37.7 kB / 1.355 GB, free: 2.27 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001292/0.3718, allocations: 140.5 kB / 1.355 GB, free: 2.129 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 5.367e-05/0.3718, allocations: 51.59 kB / 1.355 GB, free: 2.078 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001728/0.372, allocations: 85.66 kB / 1.355 GB, free: 1.988 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001638/0.3721, allocations: 338.8 kB / 1.356 GB, free: 1.648 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002779/0.3724, allocations: 127.9 kB / 1.356 GB, free: 1.523 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003452/0.3728, allocations: 217.3 kB / 1.356 GB, free: 1.277 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000463/0.3732, allocations: 326.4 kB / 1.356 GB, free: 0.9062 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.3732, allocations: 0 / 1.356 GB, free: 0.9062 MB / 1.045 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0008858/0.3741, allocations: 0.5022 MB / 1.357 GB, free: 388 kB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 8.724e-05/0.3742, allocations: 101.1 kB / 1.357 GB, free: 268 kB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/0.3742, allocations: 7.938 kB / 1.357 GB, free: 260 kB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.604e-05/0.3742, allocations: 4 kB / 1.357 GB, free: 256 kB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000119/0.3744, allocations: 23.92 kB / 1.357 GB, free: 232 kB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.257e-06/0.3744, allocations: 4 kB / 1.357 GB, free: 228 kB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005238/0.3749, allocations: 91.98 kB / 1.357 GB, free: 136 kB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.765e-05/0.375, allocations: 24.03 kB / 1.357 GB, free: 112 kB / 1.045 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.0001892/0.3751, allocations: 161.7 kB / 1.357 GB, free: 15.94 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.273e-05/0.3752, allocations: 19.86 kB / 1.357 GB, free: 15.92 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003555/0.3755, allocations: 203.4 kB / 1.358 GB, free: 15.72 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.3755, allocations: 8 kB / 1.358 GB, free: 15.71 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.3755, allocations: 0 / 1.358 GB, free: 15.71 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.3755, allocations: 0 / 1.358 GB, free: 15.71 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007126/0.3763, allocations: 0.5736 MB / 1.358 GB, free: 15.08 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3763, allocations: 0 / 1.358 GB, free: 15.08 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.339e-05/0.3763, allocations: 15.94 kB / 1.358 GB, free: 15.07 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.3763, allocations: 0 / 1.358 GB, free: 15.07 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.581e-05/0.3763, allocations: 7.984 kB / 1.358 GB, free: 15.06 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.676e-06/0.3763, allocations: 4 kB / 1.358 GB, free: 15.05 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.3763, allocations: 7.938 kB / 1.358 GB, free: 15.05 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003487/0.3767, allocations: 289.2 kB / 1.358 GB, free: 14.75 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 7.12e-05/0.3768, allocations: 92.97 kB / 1.358 GB, free: 14.64 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.728e-05/0.3768, allocations: 4 kB / 1.358 GB, free: 14.64 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.094e-05/0.3769, allocations: 7.984 kB / 1.358 GB, free: 14.63 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.666e-05/0.3769, allocations: 15.92 kB / 1.358 GB, free: 14.61 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.701e-05/0.3769, allocations: 8 kB / 1.359 GB, free: 14.61 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001452/0.3771, allocations: 152.4 kB / 1.359 GB, free: 14.46 MB / 1.061 GB Notification: Performance of sort global known variables: time 1e-07/0.3771, allocations: 7.938 kB / 1.359 GB, free: 14.45 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003742/0.3775, allocations: 75.88 kB / 1.359 GB, free: 14.38 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.0007746/0.3782, allocations: 0.831 MB / 1.36 GB, free: 13.52 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0006882/0.3789, allocations: 429.9 kB / 1.36 GB, free: 13.06 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.3789, allocations: 0 / 1.36 GB, free: 13.06 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001209/0.379, allocations: 69.8 kB / 1.36 GB, free: 12.99 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004786/0.3795, allocations: 61.09 kB / 1.36 GB, free: 12.93 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003956/0.3835, allocations: 2.885 MB / 1.363 GB, free: 9.887 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003713/0.3838, allocations: 0.7398 MB / 1.364 GB, free: 9.121 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 7.677e-05/0.3839, allocations: 17.95 kB / 1.364 GB, free: 9.102 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001158/0.384, allocations: 72.97 kB / 1.364 GB, free: 9.031 MB / 1.061 GB Notification: Performance of SimCode: time 4.31e-07/0.384, allocations: 3.938 kB / 1.364 GB, free: 9.027 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03247/0.4165, allocations: 5.97 MB / 1.37 GB, free: 3.293 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.503/8.919, allocations: 17.73 kB / 1.37 GB, free: 3.277 MB / 1.061 GB " [Timeout remaining time 291] (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: 15.958113417960703]