Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001402/0.001402, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001709/0.001709, allocations: 215.2 kB / 22.25 MB, free: 5.082 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.548/1.548, allocations: 230.6 MB / 256 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.399/3.399, allocations: 0.49 GB / 0.7951 GB, free: 33.36 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_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_12_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.002037/0.002037, allocations: 67.91 kB / 1.154 GB, free: 25.76 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3828/0.3848, allocations: 176.1 MB / 1.326 GB, free: 1.918 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio): time 0.002729/0.3876, allocations: 1.191 MB / 1.327 GB, free: 0.7305 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002423/0.39, allocations: 1.443 MB / 1.328 GB, free: 15.27 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001187/0.3901, allocations: 3.938 kB / 1.328 GB, free: 15.27 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 6.633e-05/0.3902, allocations: 19.73 kB / 1.329 GB, free: 15.25 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001552/0.3903, allocations: 59.58 kB / 1.329 GB, free: 15.19 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008889/0.3912, allocations: 385.2 kB / 1.329 GB, free: 14.82 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0004878/0.3917, allocations: 459.2 kB / 1.329 GB, free: 14.38 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001741/0.3919, allocations: 75.59 kB / 1.329 GB, free: 14.3 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001953/0.3921, allocations: 175.5 kB / 1.33 GB, free: 14.12 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002986/0.3924, allocations: 167.4 kB / 1.33 GB, free: 13.96 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 6.601e-05/0.3924, allocations: 47.94 kB / 1.33 GB, free: 13.91 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000115/0.3925, allocations: 63.98 kB / 1.33 GB, free: 13.85 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 4.828e-05/0.3926, allocations: 43.84 kB / 1.33 GB, free: 13.81 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.000188/0.3928, allocations: 179.3 kB / 1.33 GB, free: 13.63 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0005097/0.3933, allocations: 0.4908 MB / 1.331 GB, free: 13.14 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.3933, allocations: 0 / 1.331 GB, free: 13.14 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.282e-06/0.3933, allocations: 0 / 1.331 GB, free: 13.14 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.174e-06/0.3933, allocations: 0 / 1.331 GB, free: 13.14 MB / 1.029 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.0008916/0.3942, allocations: 0.5451 MB / 1.331 GB, free: 12.54 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.3942, allocations: 12.03 kB / 1.331 GB, free: 12.53 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.274e-05/0.3943, allocations: 46.73 kB / 1.331 GB, free: 12.48 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.297e-05/0.3944, allocations: 36.75 kB / 1.331 GB, free: 12.44 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003587/0.3947, allocations: 234.1 kB / 1.331 GB, free: 12.19 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.148e-05/0.3948, allocations: 16.38 kB / 1.331 GB, free: 12.17 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.235e-05/0.3948, allocations: 28.38 kB / 1.331 GB, free: 12.14 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002611/0.3951, allocations: 145.8 kB / 1.332 GB, free: 12 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.3951, allocations: 0 / 1.332 GB, free: 12 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.912e-05/0.3951, allocations: 8 kB / 1.332 GB, free: 11.99 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.3951, allocations: 0 / 1.332 GB, free: 11.99 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000182/0.3953, allocations: 91.95 kB / 1.332 GB, free: 11.9 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001114/0.3964, allocations: 0.6667 MB / 1.332 GB, free: 11.19 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001974/0.3966, allocations: 98.55 kB / 1.332 GB, free: 11.08 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.193e-05/0.3967, allocations: 52.78 kB / 1.332 GB, free: 11.03 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.632e-05/0.3967, allocations: 4 kB / 1.332 GB, free: 11.02 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003102/0.3971, allocations: 143.3 kB / 1.333 GB, free: 10.87 MB / 1.029 GB Notification: Performance of pre-optimization done (n=20): time 1.392e-06/0.3971, allocations: 0 / 1.333 GB, free: 10.87 MB / 1.029 GB Notification: Performance of matching and sorting (n=20): time 0.0005533/0.3976, allocations: 256.1 kB / 1.333 GB, free: 10.62 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.151e-05/0.3977, allocations: 55.41 kB / 1.333 GB, free: 10.55 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002704/0.3979, allocations: 218.7 kB / 1.333 GB, free: 10.32 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 5.09e-05/0.398, allocations: 33.7 kB / 1.333 GB, free: 10.29 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.000136/0.3981, allocations: 144.5 kB / 1.333 GB, free: 10.14 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 6.212e-05/0.3982, allocations: 55.53 kB / 1.333 GB, free: 10.09 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001695/0.3984, allocations: 85.66 kB / 1.333 GB, free: 9.996 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0002521/0.3986, allocations: 342.8 kB / 1.334 GB, free: 9.652 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002732/0.3989, allocations: 127.9 kB / 1.334 GB, free: 9.527 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003328/0.3992, allocations: 209.8 kB / 1.334 GB, free: 9.289 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000487/0.3997, allocations: 346.3 kB / 1.334 GB, free: 8.898 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.3997, allocations: 4 kB / 1.334 GB, free: 8.895 MB / 1.029 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0008682/0.4006, allocations: 0.4943 MB / 1.335 GB, free: 8.375 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001014/0.4007, allocations: 101.1 kB / 1.335 GB, free: 8.258 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-06/0.4007, allocations: 0 / 1.335 GB, free: 8.258 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.087e-05/0.4007, allocations: 7.938 kB / 1.335 GB, free: 8.25 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001224/0.4008, allocations: 32.17 kB / 1.335 GB, free: 8.219 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.344e-05/0.4008, allocations: 7.938 kB / 1.335 GB, free: 8.211 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004644/0.4013, allocations: 83.8 kB / 1.335 GB, free: 8.129 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.087e-05/0.4014, allocations: 27.97 kB / 1.335 GB, free: 8.102 MB / 1.029 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.0001992/0.4016, allocations: 153.8 kB / 1.335 GB, free: 7.941 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.345e-05/0.4016, allocations: 19.86 kB / 1.335 GB, free: 7.922 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003716/0.402, allocations: 207.3 kB / 1.336 GB, free: 7.711 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.402, allocations: 4 kB / 1.336 GB, free: 7.707 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.402, allocations: 0 / 1.336 GB, free: 7.707 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.402, allocations: 3.984 kB / 1.336 GB, free: 7.703 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007541/0.4027, allocations: 0.5341 MB / 1.336 GB, free: 7.121 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.81e-06/0.4027, allocations: 4 kB / 1.336 GB, free: 7.117 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.086e-05/0.4028, allocations: 12 kB / 1.336 GB, free: 7.105 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.42e-06/0.4028, allocations: 4 kB / 1.336 GB, free: 7.102 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.736e-05/0.4028, allocations: 7.984 kB / 1.336 GB, free: 7.094 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.4028, allocations: 0 / 1.336 GB, free: 7.094 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.111e-06/0.4028, allocations: 3.938 kB / 1.336 GB, free: 7.09 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003783/0.4032, allocations: 297 kB / 1.336 GB, free: 6.785 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.882e-05/0.4032, allocations: 15.91 kB / 1.336 GB, free: 6.77 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.183e-05/0.4033, allocations: 7.984 kB / 1.336 GB, free: 6.762 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.659e-05/0.4033, allocations: 8 kB / 1.336 GB, free: 6.754 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.946e-05/0.4034, allocations: 19.88 kB / 1.336 GB, free: 6.734 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.721e-05/0.4034, allocations: 11.98 kB / 1.336 GB, free: 6.723 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001991/0.4036, allocations: 148.6 kB / 1.337 GB, free: 6.578 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.4036, allocations: 0 / 1.337 GB, free: 6.578 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003869/0.404, allocations: 67.94 kB / 1.337 GB, free: 6.512 MB / 1.029 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.0008376/0.4048, allocations: 0.8398 MB / 1.337 GB, free: 5.645 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0007112/0.4056, allocations: 418.2 kB / 1.338 GB, free: 5.199 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 7.203e-06/0.4056, allocations: 7.938 kB / 1.338 GB, free: 5.191 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001262/0.4057, allocations: 63.91 kB / 1.338 GB, free: 5.129 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006504/0.4063, allocations: 74.3 kB / 1.338 GB, free: 5.059 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003866/0.4102, allocations: 2.885 MB / 1.341 GB, free: 2.012 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003742/0.4106, allocations: 0.7398 MB / 1.342 GB, free: 1.246 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 8.073e-05/0.4107, allocations: 17.95 kB / 1.342 GB, free: 1.227 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001125/0.4108, allocations: 67.41 kB / 1.342 GB, free: 1.16 MB / 1.029 GB Notification: Performance of SimCode: time 1.042e-06/0.4108, allocations: 0 / 1.342 GB, free: 1.16 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03525/0.446, allocations: 6.13 MB / 1.348 GB, free: 11.25 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.41/11.86, allocations: 10.39 kB / 1.348 GB, free: 11.25 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_HalfPeriodRatio_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_HalfPeriodRatio.fmu > Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_HalfPeriodRatio.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.070377274183556]