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.0018/0.0018, allocations: 103.6 kB / 18.95 MB, free: 2.66 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.002661/0.002661, allocations: 220.9 kB / 22.25 MB, free: 5.258 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.531/1.531, allocations: 230.6 MB / 256 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.485/3.485, allocations: 0.505 GB / 0.8101 GB, free: 23.55 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.002872/0.002872, allocations: 66.03 kB / 1.177 GB, free: 16.68 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3729/0.3758, allocations: 180.2 MB / 1.353 GB, free: 7.945 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio): time 0.002845/0.3786, allocations: 1.09 MB / 1.354 GB, free: 6.852 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.002416/0.3811, allocations: 1.428 MB / 1.355 GB, free: 5.41 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001623/0.3812, allocations: 0 / 1.355 GB, free: 5.41 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 7.511e-05/0.3813, allocations: 23.67 kB / 1.355 GB, free: 5.387 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.000201/0.3815, allocations: 59.56 kB / 1.355 GB, free: 5.328 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009647/0.3825, allocations: 379 kB / 1.356 GB, free: 4.969 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0005432/0.383, allocations: 467.1 kB / 1.356 GB, free: 4.512 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002096/0.3832, allocations: 75.61 kB / 1.356 GB, free: 4.438 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000207/0.3834, allocations: 179.5 kB / 1.356 GB, free: 4.262 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002466/0.3837, allocations: 163.4 kB / 1.357 GB, free: 4.102 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 7.762e-05/0.3837, allocations: 48 kB / 1.357 GB, free: 4.055 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000134/0.3839, allocations: 52 kB / 1.357 GB, free: 4.004 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 6.301e-05/0.3839, allocations: 59.77 kB / 1.357 GB, free: 3.945 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001821/0.3841, allocations: 143.5 kB / 1.357 GB, free: 3.805 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0006036/0.3847, allocations: 498.6 kB / 1.357 GB, free: 3.316 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3847, allocations: 0 / 1.357 GB, free: 3.316 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.793e-06/0.3847, allocations: 4 kB / 1.357 GB, free: 3.312 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.163e-05/0.3847, allocations: 0 / 1.357 GB, free: 3.312 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.0009651/0.3857, allocations: 0.5542 MB / 1.358 GB, free: 2.707 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.501e-05/0.3857, allocations: 15.97 kB / 1.358 GB, free: 2.691 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.961e-05/0.3858, allocations: 54.66 kB / 1.358 GB, free: 2.629 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.758e-05/0.3859, allocations: 32.73 kB / 1.358 GB, free: 2.598 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003787/0.3863, allocations: 222.1 kB / 1.358 GB, free: 2.355 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.742e-05/0.3863, allocations: 24.36 kB / 1.358 GB, free: 2.332 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.868e-05/0.3864, allocations: 24.38 kB / 1.358 GB, free: 2.309 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002953/0.3867, allocations: 145.8 kB / 1.358 GB, free: 2.16 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.3867, allocations: 4 kB / 1.358 GB, free: 2.156 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.142e-05/0.3867, allocations: 11.98 kB / 1.358 GB, free: 2.145 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.377e-06/0.3867, allocations: 0 / 1.358 GB, free: 2.145 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001727/0.3869, allocations: 83.97 kB / 1.358 GB, free: 2.062 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001055/0.3879, allocations: 0.5771 MB / 1.359 GB, free: 1.441 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002092/0.3882, allocations: 102.5 kB / 1.359 GB, free: 1.332 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.082e-05/0.3882, allocations: 48.83 kB / 1.359 GB, free: 1.281 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.708e-05/0.3883, allocations: 7.984 kB / 1.359 GB, free: 1.273 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003207/0.3886, allocations: 147.2 kB / 1.359 GB, free: 1.117 MB / 1.045 GB Notification: Performance of pre-optimization done (n=20): time 1.864e-06/0.3886, allocations: 0 / 1.359 GB, free: 1.117 MB / 1.045 GB Notification: Performance of matching and sorting (n=20): time 0.0005176/0.3891, allocations: 251.6 kB / 1.36 GB, free: 0.8672 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.183e-05/0.3892, allocations: 59.39 kB / 1.36 GB, free: 0.7969 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002195/0.3894, allocations: 215 kB / 1.36 GB, free: 0.5781 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 5.697e-05/0.3895, allocations: 33.7 kB / 1.36 GB, free: 0.5391 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001221/0.3896, allocations: 144.5 kB / 1.36 GB, free: 404 kB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 6.204e-05/0.3896, allocations: 63.45 kB / 1.36 GB, free: 340 kB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001572/0.3898, allocations: 85.66 kB / 1.36 GB, free: 248 kB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001779/0.39, allocations: 330.8 kB / 1.36 GB, free: 15.91 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003353/0.3903, allocations: 233 kB / 1.361 GB, free: 15.66 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004103/0.3907, allocations: 310.4 kB / 1.361 GB, free: 15.31 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004659/0.3912, allocations: 338.3 kB / 1.361 GB, free: 14.93 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.3912, allocations: 0 / 1.361 GB, free: 14.93 MB / 1.061 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.000947/0.3921, allocations: 0.597 MB / 1.362 GB, free: 14.29 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001007/0.3922, allocations: 101.1 kB / 1.362 GB, free: 14.17 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.3922, allocations: 4 kB / 1.362 GB, free: 14.16 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.272e-05/0.3923, allocations: 4 kB / 1.362 GB, free: 14.16 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001377/0.3924, allocations: 27.92 kB / 1.362 GB, free: 14.13 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.054e-05/0.3924, allocations: 4 kB / 1.362 GB, free: 14.13 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004848/0.3929, allocations: 88.05 kB / 1.362 GB, free: 14.04 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.449e-05/0.393, allocations: 27.97 kB / 1.362 GB, free: 14.02 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.0001832/0.3932, allocations: 153.7 kB / 1.362 GB, free: 13.86 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.165e-05/0.3932, allocations: 19.86 kB / 1.362 GB, free: 13.84 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003792/0.3936, allocations: 209.2 kB / 1.363 GB, free: 13.62 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.3936, allocations: 8 kB / 1.363 GB, free: 13.61 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.3936, allocations: 3.938 kB / 1.363 GB, free: 13.61 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.3936, allocations: 3.984 kB / 1.363 GB, free: 13.61 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007116/0.3943, allocations: 0.513 MB / 1.363 GB, free: 13.04 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.3943, allocations: 0 / 1.363 GB, free: 13.04 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.065e-05/0.3944, allocations: 15.94 kB / 1.363 GB, free: 13.03 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.3944, allocations: 0 / 1.363 GB, free: 13.03 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.636e-05/0.3944, allocations: 7.984 kB / 1.363 GB, free: 13.02 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/0.3944, allocations: 4 kB / 1.363 GB, free: 13.02 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.3944, allocations: 3.938 kB / 1.363 GB, free: 13.01 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003575/0.3948, allocations: 293.1 kB / 1.363 GB, free: 12.71 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.113e-05/0.3948, allocations: 15.86 kB / 1.363 GB, free: 12.7 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.236e-05/0.3948, allocations: 11.98 kB / 1.363 GB, free: 12.68 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.495e-05/0.3949, allocations: 3.938 kB / 1.363 GB, free: 12.68 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.71e-05/0.3949, allocations: 27.86 kB / 1.363 GB, free: 12.65 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.624e-05/0.395, allocations: 11.98 kB / 1.363 GB, free: 12.64 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001517/0.3951, allocations: 152.4 kB / 1.364 GB, free: 12.49 MB / 1.061 GB Notification: Performance of sort global known variables: time 8.1e-08/0.3951, allocations: 0 / 1.364 GB, free: 12.49 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003592/0.3955, allocations: 71.89 kB / 1.364 GB, free: 12.42 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.0007354/0.3962, allocations: 0.836 MB / 1.364 GB, free: 11.56 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0007401/0.3969, allocations: 0.4991 MB / 1.365 GB, free: 11 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 4.439e-06/0.397, allocations: 4 kB / 1.365 GB, free: 11 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001259/0.3971, allocations: 71.91 kB / 1.365 GB, free: 10.93 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004664/0.3975, allocations: 61.41 kB / 1.365 GB, free: 10.87 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004286/0.4018, allocations: 3.273 MB / 1.368 GB, free: 7.363 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001399/0.402, allocations: 130 kB / 1.368 GB, free: 7.219 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 7.837e-05/0.4021, allocations: 21.94 kB / 1.368 GB, free: 7.199 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001106/0.4022, allocations: 71.41 kB / 1.368 GB, free: 7.129 MB / 1.061 GB Notification: Performance of SimCode: time 5.21e-07/0.4022, allocations: 0 / 1.368 GB, free: 7.129 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03697/0.4391, allocations: 6.969 MB / 1.375 GB, free: 428 kB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.41/11.85, allocations: 18.19 kB / 1.375 GB, free: 412 kB / 1.061 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.1112405009917]