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.001561/0.001561, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.001758/0.001758, allocations: 223.9 kB / 23.03 MB, free: 4.945 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.534/1.534, allocations: 230.6 MB / 256.8 MB, free: 7.789 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.289/3.289, allocations: 0.49 GB / 0.7959 GB, free: 35.52 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.001961/0.001961, allocations: 68.5 kB / 1.155 GB, free: 25.5 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3912/0.3932, allocations: 176.1 MB / 1.327 GB, free: 1.523 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio): time 0.002473/0.3957, allocations: 1.1 MB / 1.328 GB, free: 440 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002058/0.3977, allocations: 1.424 MB / 1.329 GB, free: 14.99 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001364/0.3979, allocations: 4 kB / 1.329 GB, free: 14.99 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 7.74e-05/0.3979, allocations: 23.67 kB / 1.329 GB, free: 14.96 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001902/0.3981, allocations: 55.58 kB / 1.329 GB, free: 14.91 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.001108/0.3992, allocations: 376.5 kB / 1.33 GB, free: 14.55 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0006663/0.3999, allocations: 467.1 kB / 1.33 GB, free: 14.09 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002525/0.4001, allocations: 75.61 kB / 1.33 GB, free: 14.02 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002763/0.4004, allocations: 179.6 kB / 1.33 GB, free: 13.84 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002772/0.4007, allocations: 163.3 kB / 1.33 GB, free: 13.68 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 8.198e-05/0.4008, allocations: 48 kB / 1.33 GB, free: 13.63 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001323/0.4009, allocations: 59.98 kB / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 7.542e-05/0.401, allocations: 51.78 kB / 1.331 GB, free: 13.52 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001965/0.4012, allocations: 143.5 kB / 1.331 GB, free: 13.38 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0006712/0.4019, allocations: 0.4946 MB / 1.331 GB, free: 12.89 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.4019, allocations: 4 kB / 1.331 GB, free: 12.88 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.003e-06/0.4019, allocations: 0 / 1.331 GB, free: 12.88 MB / 1.029 GB Notification: Performance of Transformations before backend: time 9.237e-06/0.4019, allocations: 4 kB / 1.331 GB, free: 12.88 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.0009913/0.4029, allocations: 0.5451 MB / 1.332 GB, free: 12.28 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.393e-05/0.4029, allocations: 8.031 kB / 1.332 GB, free: 12.27 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.753e-05/0.4029, allocations: 4.188 kB / 1.332 GB, free: 12.27 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.563e-05/0.403, allocations: 46.73 kB / 1.332 GB, free: 12.21 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.237e-05/0.4031, allocations: 40.73 kB / 1.332 GB, free: 12.18 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003496/0.4034, allocations: 222.1 kB / 1.332 GB, free: 11.93 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.324e-05/0.4034, allocations: 24.36 kB / 1.332 GB, free: 11.91 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.673e-05/0.4035, allocations: 28.38 kB / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002784/0.4038, allocations: 145.5 kB / 1.332 GB, free: 11.73 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.4038, allocations: 4 kB / 1.332 GB, free: 11.73 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.4038, allocations: 7.984 kB / 1.332 GB, free: 11.72 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.141e-05/0.4038, allocations: 4 kB / 1.332 GB, free: 11.72 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001792/0.404, allocations: 87.97 kB / 1.332 GB, free: 11.63 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00109/0.4051, allocations: 0.5693 MB / 1.333 GB, free: 11.02 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002149/0.4053, allocations: 98.55 kB / 1.333 GB, free: 10.91 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.782e-05/0.4054, allocations: 56.83 kB / 1.333 GB, free: 10.86 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.77e-05/0.4054, allocations: 4 kB / 1.333 GB, free: 10.85 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003719/0.4058, allocations: 152.4 kB / 1.333 GB, free: 10.69 MB / 1.029 GB Notification: Performance of pre-optimization done (n=20): time 2.414e-06/0.4058, allocations: 0 / 1.333 GB, free: 10.69 MB / 1.029 GB Notification: Performance of matching and sorting (n=20): time 0.0005515/0.4064, allocations: 251.2 kB / 1.333 GB, free: 10.44 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.547e-05/0.4064, allocations: 63.39 kB / 1.333 GB, free: 10.37 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002536/0.4067, allocations: 210.7 kB / 1.334 GB, free: 10.15 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 5.522e-05/0.4067, allocations: 41.7 kB / 1.334 GB, free: 10.1 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001413/0.4069, allocations: 144.5 kB / 1.334 GB, free: 9.957 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 5.566e-05/0.4069, allocations: 55.53 kB / 1.334 GB, free: 9.902 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001696/0.4071, allocations: 81.67 kB / 1.334 GB, free: 9.816 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000162/0.4073, allocations: 334.8 kB / 1.334 GB, free: 9.48 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003371/0.4076, allocations: 229 kB / 1.334 GB, free: 9.238 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003926/0.408, allocations: 321 kB / 1.335 GB, free: 8.875 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004372/0.4084, allocations: 334.4 kB / 1.335 GB, free: 8.496 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.4084, allocations: 0 / 1.335 GB, free: 8.496 MB / 1.029 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0009558/0.4094, allocations: 0.597 MB / 1.336 GB, free: 7.855 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 8.734e-05/0.4095, allocations: 105 kB / 1.336 GB, free: 7.734 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.4095, allocations: 4 kB / 1.336 GB, free: 7.73 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.891e-05/0.4095, allocations: 4 kB / 1.336 GB, free: 7.727 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001511/0.4097, allocations: 23.92 kB / 1.336 GB, free: 7.703 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.272e-05/0.4097, allocations: 4 kB / 1.336 GB, free: 7.699 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005032/0.4102, allocations: 88.05 kB / 1.336 GB, free: 7.613 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.865e-05/0.4102, allocations: 27.97 kB / 1.336 GB, free: 7.586 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.0002034/0.4104, allocations: 153.7 kB / 1.336 GB, free: 7.426 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.198e-05/0.4105, allocations: 19.86 kB / 1.336 GB, free: 7.406 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003697/0.4108, allocations: 207.3 kB / 1.336 GB, free: 7.195 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.4108, allocations: 8 kB / 1.336 GB, free: 7.188 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.4108, allocations: 0 / 1.336 GB, free: 7.188 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.213e-06/0.4109, allocations: 7.922 kB / 1.336 GB, free: 7.18 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000699/0.4116, allocations: 0.5105 MB / 1.337 GB, free: 6.621 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.4116, allocations: 0 / 1.337 GB, free: 6.621 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.789e-05/0.4116, allocations: 11.94 kB / 1.337 GB, free: 6.609 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-06/0.4116, allocations: 4 kB / 1.337 GB, free: 6.605 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.422e-05/0.4116, allocations: 3.984 kB / 1.337 GB, free: 6.602 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.551e-06/0.4116, allocations: 7.938 kB / 1.337 GB, free: 6.594 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/0.4117, allocations: 4 kB / 1.337 GB, free: 6.59 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003462/0.412, allocations: 300.7 kB / 1.337 GB, free: 6.281 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.844e-05/0.412, allocations: 11.91 kB / 1.337 GB, free: 6.27 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.253e-05/0.4121, allocations: 8 kB / 1.337 GB, free: 6.262 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.243e-05/0.4121, allocations: 7.922 kB / 1.337 GB, free: 6.254 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.918e-05/0.4122, allocations: 15.94 kB / 1.337 GB, free: 6.238 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.605e-05/0.4122, allocations: 11.98 kB / 1.337 GB, free: 6.227 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001457/0.4124, allocations: 148.6 kB / 1.337 GB, free: 6.082 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.4124, allocations: 0 / 1.337 GB, free: 6.082 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000378/0.4127, allocations: 67.94 kB / 1.337 GB, free: 6.016 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.0007417/0.4135, allocations: 0.8516 MB / 1.338 GB, free: 5.137 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0007091/0.4142, allocations: 0.5029 MB / 1.339 GB, free: 4.578 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.4142, allocations: 4 kB / 1.339 GB, free: 4.574 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001288/0.4143, allocations: 63.91 kB / 1.339 GB, free: 4.512 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004646/0.4148, allocations: 64.33 kB / 1.339 GB, free: 4.449 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004212/0.419, allocations: 3.268 MB / 1.342 GB, free: 0.9453 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001456/0.4191, allocations: 133.9 kB / 1.342 GB, free: 0.7891 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 8.932e-05/0.4192, allocations: 21.94 kB / 1.342 GB, free: 0.7695 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001266/0.4194, allocations: 71.41 kB / 1.342 GB, free: 0.6992 MB / 1.029 GB Notification: Performance of SimCode: time 1.132e-06/0.4194, allocations: 0 / 1.342 GB, free: 0.6992 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02946/0.4488, allocations: 6.528 MB / 1.349 GB, free: 10.47 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.69/12.14, allocations: 18.55 kB / 1.349 GB, free: 10.46 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.327530174981803] Failed to read output from testmodel.py, exit status != 0: 12.303669385029934 12.334590106 11.927514123 Calling exit ...