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.001347/0.001347, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001549/0.001549, allocations: 217 kB / 22.25 MB, free: 4.855 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.473/1.473, allocations: 230.6 MB / 256 MB, free: 7.801 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.317/3.317, allocations: 0.5107 GB / 0.8158 GB, free: 17.82 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.002048/0.002048, allocations: 66.64 kB / 1.186 GB, free: 13.81 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3875/0.3896, allocations: 181.9 MB / 1.363 GB, free: 14.09 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio): time 0.003325/0.3929, allocations: 1.097 MB / 1.364 GB, free: 12.98 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002902/0.3958, allocations: 1.421 MB / 1.366 GB, free: 11.55 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001394/0.3959, allocations: 4 kB / 1.366 GB, free: 11.55 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 8.227e-05/0.396, allocations: 19.73 kB / 1.366 GB, free: 11.53 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0002287/0.3962, allocations: 63.56 kB / 1.366 GB, free: 11.46 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.001343/0.3976, allocations: 371.3 kB / 1.366 GB, free: 11.11 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0006706/0.3982, allocations: 459.1 kB / 1.367 GB, free: 10.66 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002228/0.3985, allocations: 71.61 kB / 1.367 GB, free: 10.59 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002732/0.3987, allocations: 179.5 kB / 1.367 GB, free: 10.41 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002918/0.399, allocations: 143.4 kB / 1.367 GB, free: 10.27 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 9.996e-05/0.3991, allocations: 48 kB / 1.367 GB, free: 10.22 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001652/0.3993, allocations: 59.98 kB / 1.367 GB, free: 10.16 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 7.329e-05/0.3994, allocations: 47.84 kB / 1.367 GB, free: 10.12 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0002387/0.3996, allocations: 155.3 kB / 1.367 GB, free: 9.965 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0007744/0.4004, allocations: 0.4908 MB / 1.368 GB, free: 9.473 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.4004, allocations: 0 / 1.368 GB, free: 9.473 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.382e-06/0.4004, allocations: 0 / 1.368 GB, free: 9.473 MB / 1.061 GB Notification: Performance of Transformations before backend: time 7.333e-06/0.4004, allocations: 0 / 1.368 GB, free: 9.473 MB / 1.061 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.001139/0.4015, allocations: 0.549 MB / 1.368 GB, free: 8.871 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.881e-05/0.4016, allocations: 8.031 kB / 1.368 GB, free: 8.863 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.411e-05/0.4017, allocations: 54.73 kB / 1.368 GB, free: 8.801 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001139/0.4018, allocations: 28.8 kB / 1.369 GB, free: 8.773 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004998/0.4023, allocations: 229.9 kB / 1.369 GB, free: 8.523 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.121e-05/0.4023, allocations: 20.38 kB / 1.369 GB, free: 8.504 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.16e-05/0.4024, allocations: 32.36 kB / 1.369 GB, free: 8.473 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003766/0.4028, allocations: 149.8 kB / 1.369 GB, free: 8.32 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.4028, allocations: 0 / 1.369 GB, free: 8.32 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.241e-05/0.4028, allocations: 4 kB / 1.369 GB, free: 8.316 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.666e-06/0.4028, allocations: 4 kB / 1.369 GB, free: 8.312 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002567/0.4031, allocations: 83.97 kB / 1.369 GB, free: 8.23 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001401/0.4045, allocations: 0.5732 MB / 1.37 GB, free: 7.613 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002905/0.4048, allocations: 106.5 kB / 1.37 GB, free: 7.5 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001408/0.4049, allocations: 60.39 kB / 1.37 GB, free: 7.441 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.847e-05/0.4049, allocations: 4 kB / 1.37 GB, free: 7.438 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004497/0.4054, allocations: 143.3 kB / 1.37 GB, free: 7.285 MB / 1.061 GB Notification: Performance of pre-optimization done (n=20): time 2.244e-06/0.4054, allocations: 3.938 kB / 1.37 GB, free: 7.281 MB / 1.061 GB Notification: Performance of matching and sorting (n=20): time 0.0007736/0.4062, allocations: 263.3 kB / 1.37 GB, free: 7.02 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.478e-05/0.4062, allocations: 55.41 kB / 1.37 GB, free: 6.953 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003272/0.4066, allocations: 203.2 kB / 1.37 GB, free: 6.742 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 8.899e-05/0.4067, allocations: 41.7 kB / 1.37 GB, free: 6.695 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001726/0.4068, allocations: 148.5 kB / 1.371 GB, free: 6.547 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 8.575e-05/0.4069, allocations: 55.56 kB / 1.371 GB, free: 6.492 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002336/0.4071, allocations: 85.66 kB / 1.371 GB, free: 6.402 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0002031/0.4074, allocations: 334.8 kB / 1.371 GB, free: 6.066 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005128/0.4079, allocations: 225 kB / 1.371 GB, free: 5.828 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005962/0.4085, allocations: 306.4 kB / 1.372 GB, free: 5.477 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006722/0.4091, allocations: 342.3 kB / 1.372 GB, free: 5.09 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.499e-06/0.4091, allocations: 0 / 1.372 GB, free: 5.09 MB / 1.061 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.001309/0.4104, allocations: 0.5892 MB / 1.372 GB, free: 4.457 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001189/0.4106, allocations: 105.1 kB / 1.373 GB, free: 4.336 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.4106, allocations: 8.25 kB / 1.373 GB, free: 4.328 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.508e-05/0.4106, allocations: 7.938 kB / 1.373 GB, free: 4.32 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001706/0.4108, allocations: 19.94 kB / 1.373 GB, free: 4.301 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.852e-05/0.4108, allocations: 11.92 kB / 1.373 GB, free: 4.289 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007158/0.4115, allocations: 91.69 kB / 1.373 GB, free: 4.199 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.585e-05/0.4116, allocations: 23.98 kB / 1.373 GB, free: 4.176 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.0002505/0.4118, allocations: 155.2 kB / 1.373 GB, free: 4.016 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.381e-05/0.4119, allocations: 19.91 kB / 1.373 GB, free: 3.996 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005231/0.4124, allocations: 213.9 kB / 1.373 GB, free: 3.785 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.4124, allocations: 4 kB / 1.373 GB, free: 3.781 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.4124, allocations: 0 / 1.373 GB, free: 3.781 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.4124, allocations: 0 / 1.373 GB, free: 3.781 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008312/0.4132, allocations: 0.513 MB / 1.374 GB, free: 3.219 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-06/0.4132, allocations: 4 kB / 1.374 GB, free: 3.215 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.153e-05/0.4133, allocations: 11.98 kB / 1.374 GB, free: 3.203 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.34e-06/0.4133, allocations: 8 kB / 1.374 GB, free: 3.195 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.282e-05/0.4133, allocations: 0 / 1.374 GB, free: 3.195 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.4133, allocations: 4 kB / 1.374 GB, free: 3.191 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.4133, allocations: 3.938 kB / 1.374 GB, free: 3.188 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003903/0.4137, allocations: 301.5 kB / 1.374 GB, free: 2.879 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.242e-05/0.4138, allocations: 15.86 kB / 1.374 GB, free: 2.863 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.522e-05/0.4138, allocations: 11.98 kB / 1.374 GB, free: 2.852 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.671e-05/0.4139, allocations: 0 / 1.374 GB, free: 2.852 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.093e-05/0.4139, allocations: 19.91 kB / 1.374 GB, free: 2.832 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.64e-05/0.4139, allocations: 12 kB / 1.374 GB, free: 2.82 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.000163/0.4141, allocations: 147 kB / 1.374 GB, free: 2.676 MB / 1.061 GB Notification: Performance of sort global known variables: time 9e-08/0.4141, allocations: 4 kB / 1.374 GB, free: 2.672 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003926/0.4145, allocations: 71.89 kB / 1.374 GB, free: 2.602 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.0007623/0.4153, allocations: 0.8411 MB / 1.375 GB, free: 1.73 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.001024/0.4163, allocations: 0.503 MB / 1.375 GB, free: 1.172 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.4163, allocations: 0 / 1.375 GB, free: 1.172 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002193/0.4165, allocations: 70.66 kB / 1.376 GB, free: 1.105 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004916/0.417, allocations: 58.02 kB / 1.376 GB, free: 1.051 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004562/0.4216, allocations: 3.279 MB / 1.379 GB, free: 13.54 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001398/0.4217, allocations: 129.8 kB / 1.379 GB, free: 13.39 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 8.555e-05/0.4218, allocations: 21.95 kB / 1.379 GB, free: 13.37 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001133/0.4219, allocations: 71.41 kB / 1.379 GB, free: 13.3 MB / 1.076 GB Notification: Performance of SimCode: time 9.92e-07/0.4219, allocations: 0 / 1.379 GB, free: 13.3 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04937/0.4713, allocations: 6.95 MB / 1.386 GB, free: 6.609 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.86/12.33, allocations: 0 / 1.386 GB, free: 6.609 MB / 1.076 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_HalfPeriodRatio_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 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.mat","/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.21072133909911]