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.001282/0.001282, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001507/0.001507, allocations: 220.2 kB / 22.26 MB, free: 5.125 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.496/1.496, allocations: 230.6 MB / 256 MB, free: 7.961 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.221/3.221, allocations: 0.49 GB / 0.7951 GB, free: 33.27 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.002965/0.002965, allocations: 73.17 kB / 1.154 GB, free: 25.72 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4139/0.4168, allocations: 176.1 MB / 1.326 GB, free: 1.953 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio): time 0.00239/0.4192, allocations: 1.187 MB / 1.327 GB, free: 0.7695 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001868/0.4211, allocations: 1.447 MB / 1.328 GB, free: 15.31 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001001/0.4212, allocations: 4 kB / 1.328 GB, free: 15.3 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 5.565e-05/0.4213, allocations: 19.73 kB / 1.329 GB, free: 15.29 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.000158/0.4214, allocations: 59.56 kB / 1.329 GB, free: 15.23 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008785/0.4223, allocations: 379.2 kB / 1.329 GB, free: 14.86 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0004903/0.4228, allocations: 459.2 kB / 1.329 GB, free: 14.41 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001921/0.423, allocations: 83.53 kB / 1.329 GB, free: 14.33 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001935/0.4232, allocations: 175.5 kB / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002427/0.4234, allocations: 159.4 kB / 1.33 GB, free: 14 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 6.659e-05/0.4235, allocations: 48 kB / 1.33 GB, free: 13.95 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001145/0.4236, allocations: 59.98 kB / 1.33 GB, free: 13.89 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 5.203e-05/0.4236, allocations: 51.77 kB / 1.33 GB, free: 13.84 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001736/0.4238, allocations: 171.3 kB / 1.33 GB, free: 13.68 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.000524/0.4243, allocations: 498.6 kB / 1.331 GB, free: 13.19 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.4243, allocations: 4 kB / 1.331 GB, free: 13.18 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.393e-06/0.4243, allocations: 0 / 1.331 GB, free: 13.18 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.942e-06/0.4244, allocations: 0 / 1.331 GB, free: 13.18 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.0008376/0.4252, allocations: 0.549 MB / 1.331 GB, free: 12.58 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.798e-05/0.4252, allocations: 8.031 kB / 1.331 GB, free: 12.57 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.28e-05/0.4253, allocations: 46.73 kB / 1.331 GB, free: 12.52 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.128e-05/0.4254, allocations: 40.73 kB / 1.331 GB, free: 12.48 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003405/0.4257, allocations: 226.1 kB / 1.331 GB, free: 12.23 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.886e-05/0.4257, allocations: 16.38 kB / 1.331 GB, free: 12.22 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.619e-05/0.4258, allocations: 36.36 kB / 1.331 GB, free: 12.18 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000259/0.4261, allocations: 141.8 kB / 1.332 GB, free: 12.04 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.4261, allocations: 3.938 kB / 1.332 GB, free: 12.04 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.681e-05/0.4261, allocations: 8 kB / 1.332 GB, free: 12.03 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.034e-06/0.4261, allocations: 4 kB / 1.332 GB, free: 12.02 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001724/0.4263, allocations: 91.89 kB / 1.332 GB, free: 11.93 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001008/0.4273, allocations: 0.659 MB / 1.332 GB, free: 11.23 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001962/0.4275, allocations: 106.5 kB / 1.332 GB, free: 11.12 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.577e-05/0.4276, allocations: 48.84 kB / 1.332 GB, free: 11.07 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.399e-05/0.4276, allocations: 4 kB / 1.332 GB, free: 11.06 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002998/0.4279, allocations: 144.6 kB / 1.333 GB, free: 10.91 MB / 1.029 GB Notification: Performance of pre-optimization done (n=20): time 1.563e-06/0.4279, allocations: 0 / 1.333 GB, free: 10.91 MB / 1.029 GB Notification: Performance of matching and sorting (n=20): time 0.000487/0.4284, allocations: 258.8 kB / 1.333 GB, free: 10.65 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.456e-05/0.4284, allocations: 55.41 kB / 1.333 GB, free: 10.59 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000222/0.4286, allocations: 222.7 kB / 1.333 GB, free: 10.36 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 6.372e-05/0.4287, allocations: 41.69 kB / 1.333 GB, free: 10.31 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001229/0.4288, allocations: 136.6 kB / 1.333 GB, free: 10.17 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 5.397e-05/0.4289, allocations: 59.52 kB / 1.333 GB, free: 10.11 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001568/0.429, allocations: 81.66 kB / 1.333 GB, free: 10.03 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001498/0.4292, allocations: 342.8 kB / 1.334 GB, free: 9.684 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002557/0.4294, allocations: 131.9 kB / 1.334 GB, free: 9.555 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003098/0.4298, allocations: 209.3 kB / 1.334 GB, free: 9.316 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004204/0.4302, allocations: 334.3 kB / 1.334 GB, free: 8.938 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.4302, allocations: 4 kB / 1.334 GB, free: 8.934 MB / 1.029 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0008182/0.431, allocations: 0.4982 MB / 1.335 GB, free: 8.41 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 9.904e-05/0.4311, allocations: 101.1 kB / 1.335 GB, free: 8.293 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.839e-06/0.4311, allocations: 4 kB / 1.335 GB, free: 8.289 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.918e-05/0.4311, allocations: 4 kB / 1.335 GB, free: 8.285 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000119/0.4312, allocations: 23.98 kB / 1.335 GB, free: 8.262 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.129e-05/0.4313, allocations: 7.938 kB / 1.335 GB, free: 8.254 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004586/0.4317, allocations: 92.03 kB / 1.335 GB, free: 8.164 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.209e-05/0.4318, allocations: 23.98 kB / 1.335 GB, free: 8.141 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.0001723/0.4319, allocations: 153.8 kB / 1.335 GB, free: 7.98 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.025e-05/0.432, allocations: 23.86 kB / 1.335 GB, free: 7.957 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003809/0.4323, allocations: 203.4 kB / 1.336 GB, free: 7.75 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.4324, allocations: 0 / 1.336 GB, free: 7.75 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.4324, allocations: 0 / 1.336 GB, free: 7.75 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/0.4324, allocations: 3.984 kB / 1.336 GB, free: 7.746 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007093/0.4331, allocations: 0.5338 MB / 1.336 GB, free: 7.164 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.674e-06/0.4331, allocations: 0 / 1.336 GB, free: 7.164 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.211e-05/0.4331, allocations: 12 kB / 1.336 GB, free: 7.152 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.13e-06/0.4331, allocations: 3.984 kB / 1.336 GB, free: 7.148 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.553e-05/0.4332, allocations: 12 kB / 1.336 GB, free: 7.137 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.4332, allocations: 4 kB / 1.336 GB, free: 7.133 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/0.4332, allocations: 7.875 kB / 1.336 GB, free: 7.125 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003448/0.4335, allocations: 293 kB / 1.336 GB, free: 6.824 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.951e-05/0.4335, allocations: 11.91 kB / 1.336 GB, free: 6.812 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.374e-05/0.4336, allocations: 11.98 kB / 1.336 GB, free: 6.801 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.262e-05/0.4336, allocations: 0 / 1.336 GB, free: 6.801 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.262e-05/0.4337, allocations: 23.86 kB / 1.336 GB, free: 6.777 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.707e-05/0.4337, allocations: 16 kB / 1.336 GB, free: 6.762 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001571/0.4339, allocations: 144.6 kB / 1.337 GB, free: 6.621 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.21e-07/0.4339, allocations: 0 / 1.337 GB, free: 6.621 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003526/0.4342, allocations: 71.94 kB / 1.337 GB, free: 6.551 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.000734/0.435, allocations: 0.8485 MB / 1.337 GB, free: 5.676 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0006156/0.4356, allocations: 413.9 kB / 1.338 GB, free: 5.234 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.4356, allocations: 4 kB / 1.338 GB, free: 5.23 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001111/0.4357, allocations: 69.8 kB / 1.338 GB, free: 5.164 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004432/0.4361, allocations: 66.61 kB / 1.338 GB, free: 5.102 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003841/0.44, allocations: 2.882 MB / 1.341 GB, free: 2.055 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003972/0.4404, allocations: 0.7398 MB / 1.342 GB, free: 1.289 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 9.852e-05/0.4405, allocations: 21.95 kB / 1.342 GB, free: 1.266 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001265/0.4406, allocations: 71.41 kB / 1.342 GB, free: 1.195 MB / 1.029 GB Notification: Performance of SimCode: time 1.413e-06/0.4406, allocations: 0 / 1.342 GB, free: 1.195 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03674/0.4773, allocations: 6.13 MB / 1.348 GB, free: 11.28 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.44, allocations: 11.31 kB / 1.348 GB, free: 11.27 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 & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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: 18.520390973000758]