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.00195/0.00195, allocations: 108.4 kB / 16.46 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.002115/0.002115, 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.479/1.479, allocations: 230.6 MB / 252.8 MB, free: 8.957 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.362/3.362, allocations: 0.49 GB / 0.7916 GB, free: 33.5 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.002134/0.002134, allocations: 69.25 kB / 1.149 GB, free: 26.48 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3421/0.3442, allocations: 176.1 MB / 1.321 GB, free: 3.406 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio): time 0.0032/0.3474, allocations: 1.183 MB / 1.322 GB, free: 2.223 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002571/0.35, allocations: 1.432 MB / 1.323 GB, free: 0.7773 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000205/0.3502, allocations: 4 kB / 1.323 GB, free: 0.7734 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 9.058e-05/0.3503, allocations: 23.67 kB / 1.323 GB, free: 0.75 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.000253/0.3505, allocations: 59.58 kB / 1.323 GB, free: 0.6914 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.001275/0.3518, allocations: 379.9 kB / 1.324 GB, free: 336 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0007053/0.3525, allocations: 459.2 kB / 1.324 GB, free: 15.88 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002185/0.3527, allocations: 77.22 kB / 1.324 GB, free: 15.8 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003223/0.3531, allocations: 179.5 kB / 1.325 GB, free: 15.62 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003074/0.3534, allocations: 159.4 kB / 1.325 GB, free: 15.47 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.0001014/0.3535, allocations: 48 kB / 1.325 GB, free: 15.42 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001487/0.3536, allocations: 63.98 kB / 1.325 GB, free: 15.36 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 6.697e-05/0.3537, allocations: 47.8 kB / 1.325 GB, free: 15.31 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0002269/0.3539, allocations: 171.3 kB / 1.325 GB, free: 15.14 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0006558/0.3546, allocations: 498.5 kB / 1.325 GB, free: 14.66 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.3546, allocations: 0 / 1.325 GB, free: 14.66 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.623e-06/0.3546, allocations: 0 / 1.325 GB, free: 14.66 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.442e-05/0.3546, allocations: 3.938 kB / 1.325 GB, free: 14.65 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.001221/0.3558, allocations: 0.6282 MB / 1.326 GB, free: 13.95 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.868e-05/0.3559, allocations: 11.98 kB / 1.326 GB, free: 13.94 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.238e-05/0.3559, allocations: 50.73 kB / 1.326 GB, free: 13.88 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001265/0.3561, allocations: 36.75 kB / 1.326 GB, free: 13.85 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004645/0.3565, allocations: 283.9 kB / 1.326 GB, free: 13.53 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.419e-05/0.3566, allocations: 16.38 kB / 1.326 GB, free: 13.52 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.305e-05/0.3566, allocations: 24.38 kB / 1.326 GB, free: 13.49 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003624/0.357, allocations: 153.7 kB / 1.327 GB, free: 13.34 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.357, allocations: 0 / 1.327 GB, free: 13.34 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.366e-05/0.357, allocations: 11.94 kB / 1.327 GB, free: 13.32 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.357, allocations: 4 kB / 1.327 GB, free: 13.32 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001911/0.3572, allocations: 87.95 kB / 1.327 GB, free: 13.23 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00122/0.3584, allocations: 0.7067 MB / 1.327 GB, free: 12.48 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002284/0.3587, allocations: 98.55 kB / 1.327 GB, free: 12.37 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.571e-05/0.3588, allocations: 48.83 kB / 1.328 GB, free: 12.32 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.117e-05/0.3588, allocations: 0 / 1.328 GB, free: 12.32 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002658/0.3591, allocations: 147.2 kB / 1.328 GB, free: 12.16 MB / 1.029 GB Notification: Performance of pre-optimization done (n=20): time 2.154e-06/0.3591, allocations: 0 / 1.328 GB, free: 12.16 MB / 1.029 GB Notification: Performance of matching and sorting (n=20): time 0.0005371/0.3596, allocations: 251.2 kB / 1.328 GB, free: 11.91 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.07e-05/0.3597, allocations: 59.41 kB / 1.328 GB, free: 11.84 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002899/0.36, allocations: 218.7 kB / 1.328 GB, free: 11.62 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 5.879e-05/0.36, allocations: 37.7 kB / 1.328 GB, free: 11.58 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001891/0.3602, allocations: 144.5 kB / 1.328 GB, free: 11.43 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 6.729e-05/0.3603, allocations: 51.59 kB / 1.328 GB, free: 11.38 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002123/0.3605, allocations: 85.67 kB / 1.328 GB, free: 11.29 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000245/0.3607, allocations: 334.8 kB / 1.329 GB, free: 10.96 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003226/0.361, allocations: 131.9 kB / 1.329 GB, free: 10.83 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003891/0.3614, allocations: 209.3 kB / 1.329 GB, free: 10.59 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004818/0.3619, allocations: 338.4 kB / 1.329 GB, free: 10.21 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.3619, allocations: 0 / 1.329 GB, free: 10.21 MB / 1.029 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0009687/0.3629, allocations: 0.4982 MB / 1.33 GB, free: 9.684 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001058/0.363, allocations: 105.1 kB / 1.33 GB, free: 9.562 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.363, allocations: 4.234 kB / 1.33 GB, free: 9.559 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.982e-05/0.363, allocations: 8 kB / 1.33 GB, free: 9.551 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001392/0.3632, allocations: 19.94 kB / 1.33 GB, free: 9.531 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.596e-05/0.3632, allocations: 7.984 kB / 1.33 GB, free: 9.523 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005595/0.3637, allocations: 91.73 kB / 1.33 GB, free: 9.434 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.183e-05/0.3638, allocations: 23.98 kB / 1.33 GB, free: 9.41 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.000304/0.3641, allocations: 154.4 kB / 1.33 GB, free: 9.25 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.105e-05/0.3642, allocations: 19.86 kB / 1.33 GB, free: 9.23 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004472/0.3646, allocations: 207.4 kB / 1.331 GB, free: 9.02 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.396e-06/0.3646, allocations: 11.92 kB / 1.331 GB, free: 9.008 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.3646, allocations: 0 / 1.331 GB, free: 9.008 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.3646, allocations: 0 / 1.331 GB, free: 9.008 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009553/0.3656, allocations: 0.5585 MB / 1.331 GB, free: 8.395 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.3656, allocations: 4 kB / 1.331 GB, free: 8.391 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.184e-05/0.3657, allocations: 23.92 kB / 1.331 GB, free: 8.367 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.636e-06/0.3657, allocations: 0 / 1.331 GB, free: 8.367 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.792e-05/0.3657, allocations: 4 kB / 1.331 GB, free: 8.363 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.355e-06/0.3657, allocations: 0 / 1.331 GB, free: 8.363 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/0.3657, allocations: 3.938 kB / 1.331 GB, free: 8.359 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004858/0.3662, allocations: 297.4 kB / 1.331 GB, free: 8.055 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 9.82e-05/0.3663, allocations: 96.95 kB / 1.332 GB, free: 7.941 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.766e-05/0.3663, allocations: 8 kB / 1.332 GB, free: 7.934 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001298/0.3665, allocations: 4 kB / 1.332 GB, free: 7.93 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.976e-05/0.3665, allocations: 19.92 kB / 1.332 GB, free: 7.91 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.247e-05/0.3666, allocations: 7.984 kB / 1.332 GB, free: 7.902 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0002468/0.3668, allocations: 152.6 kB / 1.332 GB, free: 7.754 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.01e-07/0.3668, allocations: 0 / 1.332 GB, free: 7.754 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0005771/0.3674, allocations: 67.89 kB / 1.332 GB, free: 7.688 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.001091/0.3685, allocations: 0.8466 MB / 1.333 GB, free: 6.812 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0009172/0.3694, allocations: 421.9 kB / 1.333 GB, free: 6.363 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3694, allocations: 0 / 1.333 GB, free: 6.363 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001727/0.3696, allocations: 67.91 kB / 1.333 GB, free: 6.297 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006664/0.3702, allocations: 60.33 kB / 1.333 GB, free: 6.238 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005804/0.376, allocations: 2.885 MB / 1.336 GB, free: 3.191 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000817/0.3769, allocations: 0.7359 MB / 1.337 GB, free: 2.43 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001318/0.377, allocations: 26.08 kB / 1.337 GB, free: 2.406 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000162/0.3771, allocations: 71.41 kB / 1.337 GB, free: 2.336 MB / 1.029 GB Notification: Performance of SimCode: time 1.823e-06/0.3771, allocations: 4 kB / 1.337 GB, free: 2.332 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0346/0.4117, allocations: 5.961 MB / 1.343 GB, free: 12.61 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.544/8.956, allocations: 7.734 kB / 1.343 GB, free: 12.6 MB / 1.045 GB " [Timeout remaining time 291] (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: 15.769907301058993]