Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.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.0014/0.0014, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.0015/0.0015, allocations: 213 kB / 23.04 MB, free: 5.07 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.475/1.475, allocations: 230.6 MB / 256.8 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.749/2.749, allocations: 476.7 MB / 0.7714 GB, free: 4.305 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",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.002018/0.002018, allocations: 65.34 kB / 1.118 GB, free: 40.37 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3078/0.3098, allocations: 169.9 MB / 1.284 GB, free: 11.79 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002114/0.3119, allocations: 0.8402 MB / 1.285 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001764/0.3137, allocations: 1.32 MB / 1.286 GB, free: 9.613 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.458e-05/0.3138, allocations: 4 kB / 1.286 GB, free: 9.609 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 4.002e-05/0.3138, allocations: 7.875 kB / 1.286 GB, free: 9.602 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 8.083e-05/0.3139, allocations: 19.78 kB / 1.286 GB, free: 9.582 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008193/0.3147, allocations: 331.3 kB / 1.287 GB, free: 9.266 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003409/0.315, allocations: 291.5 kB / 1.287 GB, free: 8.98 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001168/0.3152, allocations: 29.62 kB / 1.287 GB, free: 8.949 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001481/0.3153, allocations: 127.7 kB / 1.287 GB, free: 8.824 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001953/0.3155, allocations: 111.6 kB / 1.287 GB, free: 8.715 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.398e-05/0.3156, allocations: 24 kB / 1.287 GB, free: 8.691 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 9.047e-05/0.3156, allocations: 43.98 kB / 1.287 GB, free: 8.648 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.819e-05/0.3157, allocations: 23.92 kB / 1.287 GB, free: 8.625 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001246/0.3158, allocations: 107.7 kB / 1.287 GB, free: 8.52 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003086/0.3161, allocations: 266.7 kB / 1.288 GB, free: 8.262 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.3161, allocations: 0 / 1.288 GB, free: 8.262 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.402e-06/0.3161, allocations: 0 / 1.288 GB, free: 8.262 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.44e-06/0.3161, allocations: 0 / 1.288 GB, free: 8.262 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0006594/0.3168, allocations: 458.9 kB / 1.288 GB, free: 7.766 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.3168, allocations: 8.031 kB / 1.288 GB, free: 7.758 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.778e-05/0.3168, allocations: 16.06 kB / 1.288 GB, free: 7.742 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.447e-05/0.3169, allocations: 38.73 kB / 1.288 GB, free: 7.695 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.309e-05/0.3169, allocations: 24.84 kB / 1.288 GB, free: 7.672 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001255/0.3171, allocations: 122.8 kB / 1.288 GB, free: 7.527 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.53e-05/0.3171, allocations: 12 kB / 1.288 GB, free: 7.516 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.966e-05/0.3171, allocations: 23.98 kB / 1.288 GB, free: 7.492 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001772/0.3173, allocations: 95.09 kB / 1.288 GB, free: 7.395 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.635e-06/0.3173, allocations: 0 / 1.288 GB, free: 7.395 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.05e-05/0.3173, allocations: 0 / 1.288 GB, free: 7.395 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/0.3173, allocations: 4 kB / 1.288 GB, free: 7.391 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001035/0.3174, allocations: 47.97 kB / 1.288 GB, free: 7.344 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007114/0.3182, allocations: 471.3 kB / 1.289 GB, free: 6.84 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002299/0.3184, allocations: 62.62 kB / 1.289 GB, free: 6.77 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.82e-05/0.3184, allocations: 28.91 kB / 1.289 GB, free: 6.738 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.014e-05/0.3185, allocations: 3.938 kB / 1.289 GB, free: 6.734 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000259/0.3187, allocations: 126.7 kB / 1.289 GB, free: 6.602 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=14): time 1.463e-06/0.3187, allocations: 0 / 1.289 GB, free: 6.602 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14): time 0.0003833/0.3191, allocations: 173.5 kB / 1.289 GB, free: 6.426 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.128e-05/0.3192, allocations: 55.41 kB / 1.289 GB, free: 6.359 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001526/0.3193, allocations: 157.3 kB / 1.289 GB, free: 6.199 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.737e-05/0.3194, allocations: 37.7 kB / 1.289 GB, free: 6.156 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001028/0.3195, allocations: 112 kB / 1.29 GB, free: 6.043 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.92e-05/0.3195, allocations: 31.84 kB / 1.29 GB, free: 6.012 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001379/0.3196, allocations: 73.61 kB / 1.29 GB, free: 5.934 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000142/0.3198, allocations: 330.8 kB / 1.29 GB, free: 5.602 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002097/0.32, allocations: 95.94 kB / 1.29 GB, free: 5.508 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002376/0.3202, allocations: 144.1 kB / 1.29 GB, free: 5.348 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000329/0.3205, allocations: 257.3 kB / 1.29 GB, free: 5.059 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.3205, allocations: 0 / 1.29 GB, free: 5.059 MB / 0.9825 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006976/0.3212, allocations: 414.3 kB / 1.291 GB, free: 4.629 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 8.498e-05/0.3213, allocations: 105.1 kB / 1.291 GB, free: 4.508 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.75e-06/0.3213, allocations: 0 / 1.291 GB, free: 4.508 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.3214, allocations: 4 kB / 1.291 GB, free: 4.504 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.937e-05/0.3214, allocations: 8 kB / 1.291 GB, free: 4.496 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.36e-05/0.3214, allocations: 11.92 kB / 1.291 GB, free: 4.484 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004821/0.3219, allocations: 87.98 kB / 1.291 GB, free: 4.398 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.617e-05/0.322, allocations: 15.98 kB / 1.291 GB, free: 4.383 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booToInt1.y,booToInt.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y,integerSwitch.y,integerSwitch.u3,integerSwitch.u1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * 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.0001354/0.3221, allocations: 138.3 kB / 1.291 GB, free: 4.238 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.587e-05/0.3221, allocations: 19.84 kB / 1.291 GB, free: 4.219 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.511e-05/0.3222, allocations: 12.78 kB / 1.291 GB, free: 4.207 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-06/0.3222, allocations: 0 / 1.291 GB, free: 4.207 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.3222, allocations: 8 kB / 1.291 GB, free: 4.199 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.3222, allocations: 0 / 1.291 GB, free: 4.199 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001903/0.3224, allocations: 184.6 kB / 1.291 GB, free: 3.977 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.3224, allocations: 7.984 kB / 1.291 GB, free: 3.969 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.437e-05/0.3224, allocations: 11.94 kB / 1.291 GB, free: 3.957 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.3224, allocations: 4 kB / 1.291 GB, free: 3.953 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.229e-05/0.3224, allocations: 3.984 kB / 1.291 GB, free: 3.949 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.3224, allocations: 0 / 1.291 GB, free: 3.949 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3224, allocations: 0 / 1.291 GB, free: 3.949 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002368/0.3227, allocations: 172.9 kB / 1.292 GB, free: 3.762 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.958e-05/0.3227, allocations: 11.91 kB / 1.292 GB, free: 3.75 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.106e-05/0.3227, allocations: 4 kB / 1.292 GB, free: 3.746 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.049e-05/0.3227, allocations: 0 / 1.292 GB, free: 3.746 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.969e-05/0.3228, allocations: 15.97 kB / 1.292 GB, free: 3.73 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.708e-06/0.3228, allocations: 7.938 kB / 1.292 GB, free: 3.723 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 8.694e-05/0.3229, allocations: 118.5 kB / 1.292 GB, free: 3.609 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.3229, allocations: 0 / 1.292 GB, free: 3.609 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002718/0.3231, allocations: 55.88 kB / 1.292 GB, free: 3.555 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,booPul2.y,booPul3.y,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0005545/0.3237, allocations: 0.7151 MB / 1.293 GB, free: 2.812 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004956/0.3242, allocations: 342 kB / 1.293 GB, free: 2.441 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.3242, allocations: 384 / 1.293 GB, free: 2.441 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 8.39e-05/0.3243, allocations: 47.92 kB / 1.293 GB, free: 2.395 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002774/0.3245, allocations: 31.92 kB / 1.293 GB, free: 2.363 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002854/0.3274, allocations: 2.244 MB / 1.295 GB, free: 15.98 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003265/0.3277, allocations: 0.7162 MB / 1.296 GB, free: 15.24 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 5.169e-05/0.3278, allocations: 16.59 kB / 1.296 GB, free: 15.23 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.939e-05/0.3278, allocations: 43.42 kB / 1.296 GB, free: 15.18 MB / 0.9981 GB Notification: Performance of SimCode: time 5.61e-07/0.3278, allocations: 0 / 1.296 GB, free: 15.18 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02638/0.3542, allocations: 4.41 MB / 1.3 GB, free: 10.95 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.67, allocations: 6.25 kB / 1.3 GB, free: 10.94 MB / 0.9981 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Integers_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Integers_Validation_Switch.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 18.287933741987217] Failed to read output from testmodel.py, exit status != 0: 12.343855581013486 11.843598508 11.524264905 Calling exit ...