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.001628/0.001628, allocations: 109.1 kB / 18.94 MB, free: 2.812 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.002456/0.002456, allocations: 216.7 kB / 22.26 MB, free: 5.18 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.59/1.59, allocations: 230.6 MB / 256 MB, free: 7.988 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.312/3.312, allocations: 0.505 GB / 0.8101 GB, free: 22.07 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.002074/0.002074, allocations: 67.33 kB / 1.177 GB, free: 17.26 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3888/0.3909, allocations: 180.2 MB / 1.353 GB, free: 8.594 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio): time 0.002805/0.3937, allocations: 1.185 MB / 1.354 GB, free: 7.41 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.002279/0.396, allocations: 1.44 MB / 1.355 GB, free: 5.957 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000117/0.3961, allocations: 0 / 1.355 GB, free: 5.957 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 8.054e-05/0.3962, allocations: 19.73 kB / 1.355 GB, free: 5.938 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001692/0.3963, allocations: 59.58 kB / 1.356 GB, free: 5.879 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009656/0.3973, allocations: 390.4 kB / 1.356 GB, free: 5.508 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0005633/0.3979, allocations: 459.1 kB / 1.356 GB, free: 5.059 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001978/0.3981, allocations: 71.62 kB / 1.356 GB, free: 4.988 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000227/0.3983, allocations: 179.5 kB / 1.357 GB, free: 4.812 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002635/0.3985, allocations: 163.4 kB / 1.357 GB, free: 4.652 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 7.534e-05/0.3986, allocations: 48 kB / 1.357 GB, free: 4.605 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001262/0.3987, allocations: 63.98 kB / 1.357 GB, free: 4.543 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 5.845e-05/0.3988, allocations: 51.84 kB / 1.357 GB, free: 4.492 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0002026/0.399, allocations: 171.3 kB / 1.357 GB, free: 4.324 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0006024/0.3996, allocations: 0.4907 MB / 1.358 GB, free: 3.832 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.3996, allocations: 0 / 1.358 GB, free: 3.832 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.943e-06/0.3996, allocations: 4 kB / 1.358 GB, free: 3.828 MB / 1.045 GB Notification: Performance of Transformations before backend: time 9.036e-06/0.3996, allocations: 0 / 1.358 GB, free: 3.828 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.0009703/0.4006, allocations: 0.5505 MB / 1.358 GB, free: 3.227 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 5.6e-05/0.4007, allocations: 12.03 kB / 1.358 GB, free: 3.215 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.808e-05/0.4007, allocations: 46.73 kB / 1.358 GB, free: 3.16 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.329e-05/0.4008, allocations: 32.78 kB / 1.358 GB, free: 3.129 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003546/0.4012, allocations: 230.1 kB / 1.358 GB, free: 2.879 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.132e-05/0.4012, allocations: 24.36 kB / 1.358 GB, free: 2.855 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.311e-05/0.4012, allocations: 24.38 kB / 1.358 GB, free: 2.832 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002695/0.4015, allocations: 141.8 kB / 1.359 GB, free: 2.688 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.4015, allocations: 0 / 1.359 GB, free: 2.688 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.797e-05/0.4015, allocations: 7.984 kB / 1.359 GB, free: 2.68 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.214e-06/0.4015, allocations: 4 kB / 1.359 GB, free: 2.676 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001758/0.4017, allocations: 95.84 kB / 1.359 GB, free: 2.582 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001047/0.4028, allocations: 0.6629 MB / 1.359 GB, free: 1.875 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000209/0.403, allocations: 106.5 kB / 1.359 GB, free: 1.762 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.691e-05/0.4031, allocations: 45.09 kB / 1.359 GB, free: 1.715 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.792e-05/0.4031, allocations: 7.969 kB / 1.359 GB, free: 1.707 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00033/0.4034, allocations: 151.3 kB / 1.36 GB, free: 1.547 MB / 1.045 GB Notification: Performance of pre-optimization done (n=20): time 1.473e-06/0.4034, allocations: 0 / 1.36 GB, free: 1.547 MB / 1.045 GB Notification: Performance of matching and sorting (n=20): time 0.0005379/0.404, allocations: 247.3 kB / 1.36 GB, free: 1.301 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.453e-05/0.404, allocations: 59.39 kB / 1.36 GB, free: 1.23 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002319/0.4043, allocations: 211 kB / 1.36 GB, free: 1.016 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 5.322e-05/0.4043, allocations: 37.7 kB / 1.36 GB, free: 0.9727 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001316/0.4044, allocations: 144.6 kB / 1.36 GB, free: 0.8281 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 5.519e-05/0.4045, allocations: 59.52 kB / 1.36 GB, free: 0.7695 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001594/0.4047, allocations: 89.66 kB / 1.36 GB, free: 0.6758 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001586/0.4048, allocations: 330.8 kB / 1.361 GB, free: 352 kB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002755/0.4051, allocations: 131.9 kB / 1.361 GB, free: 220 kB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003376/0.4054, allocations: 209.2 kB / 1.361 GB, free: 15.98 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004423/0.4059, allocations: 338.3 kB / 1.361 GB, free: 15.59 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.4059, allocations: 0 / 1.361 GB, free: 15.59 MB / 1.061 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0009588/0.4068, allocations: 0.4982 MB / 1.362 GB, free: 15.07 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 9.881e-05/0.4069, allocations: 110.6 kB / 1.362 GB, free: 14.95 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.4069, allocations: 3.938 kB / 1.362 GB, free: 14.94 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.124e-05/0.407, allocations: 4.25 kB / 1.362 GB, free: 14.94 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001239/0.4071, allocations: 27.98 kB / 1.362 GB, free: 14.91 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.645e-05/0.4071, allocations: 7.938 kB / 1.362 GB, free: 14.9 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005168/0.4076, allocations: 87.8 kB / 1.362 GB, free: 14.82 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.799e-05/0.4077, allocations: 23.92 kB / 1.362 GB, free: 14.79 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.0001988/0.4079, allocations: 157.7 kB / 1.362 GB, free: 14.63 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.669e-05/0.4079, allocations: 23.84 kB / 1.362 GB, free: 14.61 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003549/0.4083, allocations: 205.5 kB / 1.362 GB, free: 14.39 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.4083, allocations: 4 kB / 1.362 GB, free: 14.39 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.4083, allocations: 0 / 1.362 GB, free: 14.39 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.4083, allocations: 0 / 1.362 GB, free: 14.39 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006935/0.409, allocations: 0.5324 MB / 1.363 GB, free: 13.81 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.409, allocations: 0 / 1.363 GB, free: 13.81 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.118e-05/0.409, allocations: 19.98 kB / 1.363 GB, free: 13.79 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.409, allocations: 0 / 1.363 GB, free: 13.79 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.6e-05/0.409, allocations: 8 kB / 1.363 GB, free: 13.78 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.409, allocations: 0 / 1.363 GB, free: 13.78 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.169e-06/0.4091, allocations: 3.938 kB / 1.363 GB, free: 13.78 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000336/0.4094, allocations: 292.7 kB / 1.363 GB, free: 13.48 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.877e-05/0.4094, allocations: 27.84 kB / 1.363 GB, free: 13.45 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.943e-05/0.4095, allocations: 4 kB / 1.363 GB, free: 13.45 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.661e-05/0.4095, allocations: 8 kB / 1.363 GB, free: 13.44 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.969e-05/0.4096, allocations: 19.91 kB / 1.363 GB, free: 13.42 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.378e-05/0.4096, allocations: 8 kB / 1.363 GB, free: 13.41 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001407/0.4097, allocations: 152.4 kB / 1.364 GB, free: 13.26 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.4097, allocations: 0 / 1.364 GB, free: 13.26 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003657/0.4101, allocations: 75.88 kB / 1.364 GB, free: 13.19 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.0006861/0.4108, allocations: 0.8326 MB / 1.364 GB, free: 12.33 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0006435/0.4114, allocations: 430 kB / 1.365 GB, free: 11.87 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.4114, allocations: 4 kB / 1.365 GB, free: 11.87 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001339/0.4116, allocations: 67.92 kB / 1.365 GB, free: 11.8 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004586/0.412, allocations: 57.95 kB / 1.365 GB, free: 11.75 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003975/0.416, allocations: 2.88 MB / 1.368 GB, free: 8.703 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004013/0.4164, allocations: 0.7359 MB / 1.368 GB, free: 7.941 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001085/0.4165, allocations: 26.08 kB / 1.368 GB, free: 7.918 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001149/0.4166, allocations: 71.41 kB / 1.369 GB, free: 7.848 MB / 1.061 GB Notification: Performance of SimCode: time 1.613e-06/0.4166, allocations: 0 / 1.369 GB, free: 7.848 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03536/0.452, allocations: 6.121 MB / 1.375 GB, free: 1.934 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/11.48, allocations: 3.984 kB / 1.375 GB, free: 1.93 MB / 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: 18.76681495899993]