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.001419/0.001419, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.001669/0.001669, allocations: 218.9 kB / 23.04 MB, free: 5.078 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.545/1.545, allocations: 230.6 MB / 256.8 MB, free: 8.004 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.295/3.295, allocations: 0.49 GB / 0.7959 GB, free: 33.3 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="cs",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="cs",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.002398/0.002398, allocations: 59.09 kB / 1.155 GB, free: 25.77 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4044/0.4068, allocations: 176.1 MB / 1.327 GB, free: 1.969 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio): time 0.00246/0.4093, allocations: 1.19 MB / 1.328 GB, free: 0.7812 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001896/0.4111, allocations: 1.447 MB / 1.329 GB, free: 15.32 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.002e-05/0.4112, allocations: 4 kB / 1.329 GB, free: 15.32 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 5.551e-05/0.4113, allocations: 19.73 kB / 1.329 GB, free: 15.3 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001395/0.4114, allocations: 63.5 kB / 1.329 GB, free: 15.23 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008916/0.4123, allocations: 367.9 kB / 1.33 GB, free: 14.88 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0005158/0.4128, allocations: 463.1 kB / 1.33 GB, free: 14.43 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001698/0.413, allocations: 79.59 kB / 1.33 GB, free: 14.35 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001937/0.4132, allocations: 175.5 kB / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002313/0.4134, allocations: 163.4 kB / 1.331 GB, free: 14.02 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 6.631e-05/0.4135, allocations: 48 kB / 1.331 GB, free: 13.97 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001078/0.4136, allocations: 59.98 kB / 1.331 GB, free: 13.91 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 5.682e-05/0.4137, allocations: 55.77 kB / 1.331 GB, free: 13.86 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001707/0.4138, allocations: 167.3 kB / 1.331 GB, free: 13.69 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.000519/0.4144, allocations: 0.4907 MB / 1.331 GB, free: 13.2 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/0.4144, allocations: 0 / 1.331 GB, free: 13.2 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.673e-06/0.4144, allocations: 0 / 1.331 GB, free: 13.2 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.871e-06/0.4144, allocations: 0 / 1.331 GB, free: 13.2 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.0007929/0.4152, allocations: 0.5529 MB / 1.332 GB, free: 12.59 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.604e-05/0.4152, allocations: 8.031 kB / 1.332 GB, free: 12.59 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.398e-05/0.4152, allocations: 4.188 kB / 1.332 GB, free: 12.58 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.602e-05/0.4153, allocations: 50.73 kB / 1.332 GB, free: 12.52 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.519e-05/0.4153, allocations: 36.75 kB / 1.332 GB, free: 12.49 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003245/0.4157, allocations: 222.1 kB / 1.332 GB, free: 12.25 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.316e-05/0.4157, allocations: 20.38 kB / 1.332 GB, free: 12.23 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.245e-05/0.4158, allocations: 24.38 kB / 1.332 GB, free: 12.2 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002609/0.416, allocations: 157.5 kB / 1.332 GB, free: 12.04 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.416, allocations: 3.984 kB / 1.332 GB, free: 12.04 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.836e-05/0.4161, allocations: 8 kB / 1.332 GB, free: 12.03 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.4161, allocations: 7.938 kB / 1.332 GB, free: 12.02 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001725/0.4162, allocations: 83.95 kB / 1.332 GB, free: 11.94 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001028/0.4173, allocations: 0.659 MB / 1.333 GB, free: 11.24 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001903/0.4175, allocations: 106.5 kB / 1.333 GB, free: 11.12 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.564e-05/0.4175, allocations: 44.84 kB / 1.333 GB, free: 11.08 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.821e-05/0.4176, allocations: 4 kB / 1.333 GB, free: 11.07 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002893/0.4179, allocations: 143.2 kB / 1.333 GB, free: 10.92 MB / 1.029 GB Notification: Performance of pre-optimization done (n=20): time 1.593e-06/0.4179, allocations: 0 / 1.333 GB, free: 10.92 MB / 1.029 GB Notification: Performance of matching and sorting (n=20): time 0.0004835/0.4183, allocations: 251 kB / 1.334 GB, free: 10.67 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.07e-05/0.4184, allocations: 67.39 kB / 1.334 GB, free: 10.59 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002204/0.4186, allocations: 214.7 kB / 1.334 GB, free: 10.37 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 5.456e-05/0.4187, allocations: 41.69 kB / 1.334 GB, free: 10.32 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001148/0.4188, allocations: 136.6 kB / 1.334 GB, free: 10.19 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 6.424e-05/0.4188, allocations: 59.52 kB / 1.334 GB, free: 10.13 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001614/0.419, allocations: 85.66 kB / 1.334 GB, free: 10.04 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001482/0.4192, allocations: 334.8 kB / 1.335 GB, free: 9.703 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002748/0.4194, allocations: 131.9 kB / 1.335 GB, free: 9.574 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003482/0.4198, allocations: 221.7 kB / 1.335 GB, free: 9.324 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004328/0.4202, allocations: 334.4 kB / 1.335 GB, free: 8.945 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.4202, allocations: 4 kB / 1.335 GB, free: 8.941 MB / 1.029 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0008608/0.4211, allocations: 0.4982 MB / 1.336 GB, free: 8.418 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 8.337e-05/0.4212, allocations: 105.1 kB / 1.336 GB, free: 8.297 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.4212, allocations: 4 kB / 1.336 GB, free: 8.293 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.996e-05/0.4212, allocations: 8 kB / 1.336 GB, free: 8.285 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001184/0.4213, allocations: 23.92 kB / 1.336 GB, free: 8.262 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.247e-06/0.4213, allocations: 4 kB / 1.336 GB, free: 8.258 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005136/0.4218, allocations: 92.03 kB / 1.336 GB, free: 8.168 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.339e-05/0.4219, allocations: 23.98 kB / 1.336 GB, free: 8.145 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.0001737/0.4221, allocations: 149.7 kB / 1.336 GB, free: 7.988 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.488e-05/0.4221, allocations: 23.91 kB / 1.336 GB, free: 7.965 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003492/0.4224, allocations: 205.4 kB / 1.336 GB, free: 7.758 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.4224, allocations: 4 kB / 1.336 GB, free: 7.754 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.4224, allocations: 0 / 1.336 GB, free: 7.754 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.4225, allocations: 7.922 kB / 1.336 GB, free: 7.746 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006798/0.4231, allocations: 0.5286 MB / 1.337 GB, free: 7.168 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-06/0.4231, allocations: 0 / 1.337 GB, free: 7.168 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.505e-05/0.4232, allocations: 15.94 kB / 1.337 GB, free: 7.152 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.412e-06/0.4232, allocations: 7.984 kB / 1.337 GB, free: 7.145 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.183e-05/0.4232, allocations: 0 / 1.337 GB, free: 7.145 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.902e-06/0.4232, allocations: 11.94 kB / 1.337 GB, free: 7.133 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.4232, allocations: 0 / 1.337 GB, free: 7.133 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003538/0.4236, allocations: 293 kB / 1.337 GB, free: 6.832 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.184e-05/0.4236, allocations: 19.86 kB / 1.337 GB, free: 6.812 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.71e-05/0.4236, allocations: 3.984 kB / 1.337 GB, free: 6.809 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.186e-05/0.4237, allocations: 11.94 kB / 1.337 GB, free: 6.797 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.461e-05/0.4238, allocations: 15.97 kB / 1.337 GB, free: 6.781 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.416e-05/0.4238, allocations: 8 kB / 1.337 GB, free: 6.773 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001444/0.4239, allocations: 152.6 kB / 1.337 GB, free: 6.625 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.4239, allocations: 0 / 1.337 GB, free: 6.625 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003597/0.4243, allocations: 67.89 kB / 1.337 GB, free: 6.559 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.0007028/0.425, allocations: 0.8391 MB / 1.338 GB, free: 5.691 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000642/0.4256, allocations: 425.9 kB / 1.339 GB, free: 5.238 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.4256, allocations: 0 / 1.339 GB, free: 5.238 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001177/0.4257, allocations: 69.8 kB / 1.339 GB, free: 5.172 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000465/0.4262, allocations: 64.27 kB / 1.339 GB, free: 5.109 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003885/0.4301, allocations: 2.883 MB / 1.342 GB, free: 2.062 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003576/0.4305, allocations: 0.7359 MB / 1.342 GB, free: 1.301 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 8.641e-05/0.4305, allocations: 21.95 kB / 1.342 GB, free: 1.277 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001148/0.4307, allocations: 71.41 kB / 1.342 GB, free: 1.207 MB / 1.029 GB Notification: Performance of SimCode: time 5.92e-07/0.4307, allocations: 0 / 1.342 GB, free: 1.207 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02786/0.4585, allocations: 6.16 MB / 1.348 GB, free: 11.29 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/11.86, allocations: 10.11 kB / 1.348 GB, free: 11.28 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] [Calling os._exit(0), Time elapsed: 19.1561547589954] Failed to read output from testmodel.py, exit status != 0: 12.028676639019977 12.048025767 11.629833621 Calling exit ...