Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001564/0.001564, 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.001932/0.001932, allocations: 217.9 kB / 23.04 MB, free: 5.074 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.479/1.479, allocations: 230.6 MB / 256.8 MB, free: 7.992 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.297/3.297, allocations: 0.5003 GB / 0.8061 GB, free: 26.8 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.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_latest_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.002037/0.002037, allocations: 70.89 kB / 1.171 GB, free: 19.81 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3508/0.3529, allocations: 179 MB / 1.345 GB, free: 472 kB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002128/0.355, allocations: 0.8367 MB / 1.346 GB, free: 15.62 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001761/0.3568, allocations: 1.322 MB / 1.347 GB, free: 14.29 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.624e-05/0.3568, allocations: 0 / 1.347 GB, free: 14.29 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.943e-05/0.3569, allocations: 7.875 kB / 1.347 GB, free: 14.28 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 8.821e-05/0.3569, allocations: 23.78 kB / 1.347 GB, free: 14.25 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008497/0.3578, allocations: 333.4 kB / 1.348 GB, free: 13.94 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0003327/0.3581, allocations: 283.5 kB / 1.348 GB, free: 13.66 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000134/0.3583, allocations: 33.61 kB / 1.348 GB, free: 13.62 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000151/0.3584, allocations: 119.7 kB / 1.348 GB, free: 13.51 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001928/0.3586, allocations: 111.7 kB / 1.348 GB, free: 13.4 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 4.499e-05/0.3586, allocations: 24 kB / 1.348 GB, free: 13.38 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 9.307e-05/0.3587, allocations: 43.98 kB / 1.348 GB, free: 13.33 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 3.856e-05/0.3588, allocations: 35.8 kB / 1.348 GB, free: 13.3 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001216/0.3589, allocations: 107.7 kB / 1.349 GB, free: 13.19 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0003364/0.3592, allocations: 267.3 kB / 1.349 GB, free: 12.93 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.3592, allocations: 0 / 1.349 GB, free: 12.93 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.092e-06/0.3592, allocations: 0 / 1.349 GB, free: 12.93 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.202e-06/0.3592, allocations: 0 / 1.349 GB, free: 12.93 MB / 1.045 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.0006505/0.3599, allocations: 464.2 kB / 1.349 GB, free: 12.43 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.3599, allocations: 12.03 kB / 1.349 GB, free: 12.42 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.837e-05/0.36, allocations: 192 / 1.349 GB, free: 12.42 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.332e-05/0.36, allocations: 42.73 kB / 1.349 GB, free: 12.37 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.075e-05/0.3601, allocations: 20.89 kB / 1.349 GB, free: 12.35 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001215/0.3602, allocations: 137.5 kB / 1.349 GB, free: 12.19 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.399e-05/0.3602, allocations: 8 kB / 1.349 GB, free: 12.18 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.74e-05/0.3603, allocations: 20 kB / 1.349 GB, free: 12.16 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001789/0.3604, allocations: 97.58 kB / 1.35 GB, free: 12.06 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.076e-06/0.3605, allocations: 0 / 1.35 GB, free: 12.06 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.176e-05/0.3605, allocations: 0 / 1.35 GB, free: 12.06 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.294e-06/0.3605, allocations: 4 kB / 1.35 GB, free: 12.06 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001054/0.3606, allocations: 47.97 kB / 1.35 GB, free: 12.01 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007221/0.3613, allocations: 479.4 kB / 1.35 GB, free: 11.5 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002281/0.3615, allocations: 66.67 kB / 1.35 GB, free: 11.43 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.53e-05/0.3616, allocations: 24.84 kB / 1.35 GB, free: 11.4 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.319e-05/0.3616, allocations: 11.88 kB / 1.35 GB, free: 11.39 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002478/0.3618, allocations: 107.3 kB / 1.35 GB, free: 11.27 MB / 1.045 GB Notification: Performance of pre-optimization done (n=14): time 1.452e-06/0.3618, allocations: 4 kB / 1.35 GB, free: 11.27 MB / 1.045 GB Notification: Performance of matching and sorting (n=14): time 0.0003964/0.3622, allocations: 169.5 kB / 1.35 GB, free: 11.09 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.782e-05/0.3623, allocations: 59.34 kB / 1.35 GB, free: 11.02 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001565/0.3624, allocations: 166.7 kB / 1.351 GB, free: 10.85 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 4.665e-05/0.3625, allocations: 33.7 kB / 1.351 GB, free: 10.81 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 9.698e-05/0.3626, allocations: 112.1 kB / 1.351 GB, free: 10.7 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.941e-05/0.3626, allocations: 27.8 kB / 1.351 GB, free: 10.67 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001429/0.3628, allocations: 81.66 kB / 1.351 GB, free: 10.59 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.000147/0.3629, allocations: 322.8 kB / 1.351 GB, free: 10.26 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002048/0.3631, allocations: 91.95 kB / 1.351 GB, free: 10.17 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00024/0.3634, allocations: 142.5 kB / 1.351 GB, free: 10.01 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003291/0.3637, allocations: 260.4 kB / 1.352 GB, free: 9.719 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.3637, allocations: 0 / 1.352 GB, free: 9.719 MB / 1.045 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006822/0.3644, allocations: 402.5 kB / 1.352 GB, free: 9.301 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 8.647e-05/0.3645, allocations: 106.6 kB / 1.352 GB, free: 9.18 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.3645, allocations: 0 / 1.352 GB, free: 9.18 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.294e-05/0.3645, allocations: 4 kB / 1.352 GB, free: 9.176 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.51e-05/0.3646, allocations: 15.92 kB / 1.352 GB, free: 9.16 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.336e-06/0.3646, allocations: 7.938 kB / 1.352 GB, free: 9.152 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004848/0.3651, allocations: 91.88 kB / 1.352 GB, free: 9.062 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.271e-05/0.3651, allocations: 15.98 kB / 1.352 GB, free: 9.047 MB / 1.045 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.0001437/0.3652, allocations: 137.8 kB / 1.352 GB, free: 8.902 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.476e-05/0.3653, allocations: 15.88 kB / 1.352 GB, free: 8.887 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.129e-05/0.3653, allocations: 12.78 kB / 1.352 GB, free: 8.867 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.3653, allocations: 0 / 1.352 GB, free: 8.867 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.3653, allocations: 4 kB / 1.352 GB, free: 8.863 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.3653, allocations: 7.938 kB / 1.352 GB, free: 8.855 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002013/0.3655, allocations: 200.5 kB / 1.353 GB, free: 8.617 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.3655, allocations: 0 / 1.353 GB, free: 8.617 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.742e-05/0.3656, allocations: 8 kB / 1.353 GB, free: 8.609 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.057e-06/0.3656, allocations: 4 kB / 1.353 GB, free: 8.605 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.949e-06/0.3656, allocations: 0 / 1.353 GB, free: 8.605 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.3656, allocations: 0 / 1.353 GB, free: 8.605 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.3656, allocations: 0 / 1.353 GB, free: 8.605 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002581/0.3658, allocations: 163.6 kB / 1.353 GB, free: 8.43 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 2.457e-05/0.3659, allocations: 15.89 kB / 1.353 GB, free: 8.414 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.436e-05/0.3659, allocations: 8 kB / 1.353 GB, free: 8.406 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.053e-05/0.3659, allocations: 3.938 kB / 1.353 GB, free: 8.402 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.633e-05/0.366, allocations: 11.98 kB / 1.353 GB, free: 8.391 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.133e-05/0.366, allocations: 7.984 kB / 1.353 GB, free: 8.383 MB / 1.045 GB Notification: Performance of sorting global known variables: time 9.038e-05/0.3661, allocations: 111.3 kB / 1.353 GB, free: 8.273 MB / 1.045 GB Notification: Performance of sort global known variables: time 7.1e-08/0.3661, allocations: 0 / 1.353 GB, free: 8.273 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002785/0.3663, allocations: 55.92 kB / 1.353 GB, free: 8.219 MB / 1.045 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.0006238/0.367, allocations: 0.7075 MB / 1.354 GB, free: 7.484 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0005539/0.3675, allocations: 338.1 kB / 1.354 GB, free: 7.117 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3675, allocations: 0 / 1.354 GB, free: 7.117 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 9.524e-05/0.3676, allocations: 56.27 kB / 1.354 GB, free: 7.062 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002885/0.3679, allocations: 29.3 kB / 1.354 GB, free: 7.035 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003002/0.3709, allocations: 2.264 MB / 1.356 GB, free: 4.633 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003581/0.3713, allocations: 0.7122 MB / 1.357 GB, free: 3.895 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 4.586e-05/0.3713, allocations: 12.64 kB / 1.357 GB, free: 3.883 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.008e-05/0.3714, allocations: 39.42 kB / 1.357 GB, free: 3.844 MB / 1.045 GB Notification: Performance of SimCode: time 6.32e-07/0.3714, allocations: 0 / 1.357 GB, free: 3.844 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02543/0.3968, allocations: 4.424 MB / 1.361 GB, free: 15.58 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/11.67, allocations: 2.469 kB / 1.361 GB, free: 15.58 MB / 1.061 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Switch.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 840.0] [Calling os._exit(0), Time elapsed: 18.581970279978123] Failed to read output from testmodel.py, exit status != 0: 11.832732056966051 11.857991235 11.494160138 Calling exit ...