Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Logical.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.001749/0.001749, 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.002208/0.002208, allocations: 215.3 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.503/1.503, allocations: 230.6 MB / 256.8 MB, free: 7.98 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.854/2.854, allocations: 476.7 MB / 0.7714 GB, free: 4.246 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.Logical.Validation.Switch,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Logical_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.002321/0.002321, allocations: 66.61 kB / 1.118 GB, free: 40.36 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3462/0.3485, allocations: 170 MB / 1.284 GB, free: 11.69 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002295/0.3508, allocations: 0.7034 MB / 1.285 GB, free: 10.99 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002152/0.353, allocations: 1.301 MB / 1.286 GB, free: 9.676 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.56e-05/0.353, allocations: 4 kB / 1.286 GB, free: 9.672 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.911e-05/0.3531, allocations: 11.88 kB / 1.286 GB, free: 9.66 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 8.839e-05/0.3532, allocations: 15.86 kB / 1.286 GB, free: 9.645 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008526/0.354, allocations: 314.3 kB / 1.286 GB, free: 9.344 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003406/0.3544, allocations: 255.5 kB / 1.287 GB, free: 9.094 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001095/0.3545, allocations: 16.19 kB / 1.287 GB, free: 9.074 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001637/0.3546, allocations: 103.9 kB / 1.287 GB, free: 8.973 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002029/0.3548, allocations: 95.73 kB / 1.287 GB, free: 8.879 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 5.205e-05/0.3549, allocations: 20 kB / 1.287 GB, free: 8.859 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 8.609e-05/0.355, allocations: 28 kB / 1.287 GB, free: 8.832 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.715e-05/0.355, allocations: 19.98 kB / 1.287 GB, free: 8.812 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001251/0.3551, allocations: 87.73 kB / 1.287 GB, free: 8.727 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003175/0.3554, allocations: 219.6 kB / 1.287 GB, free: 8.516 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.3554, allocations: 3.938 kB / 1.287 GB, free: 8.512 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.643e-06/0.3554, allocations: 0 / 1.287 GB, free: 8.512 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.104e-05/0.3555, allocations: 0 / 1.287 GB, free: 8.512 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006514/0.3561, allocations: 423.1 kB / 1.288 GB, free: 8.051 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.114e-05/0.3562, allocations: 12.02 kB / 1.288 GB, free: 8.039 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.492e-05/0.3562, allocations: 4.125 kB / 1.288 GB, free: 8.035 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.233e-05/0.3562, allocations: 38.75 kB / 1.288 GB, free: 7.988 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.327e-05/0.3563, allocations: 8.938 kB / 1.288 GB, free: 7.98 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001206/0.3564, allocations: 122.4 kB / 1.288 GB, free: 7.836 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.993e-05/0.3564, allocations: 12.36 kB / 1.288 GB, free: 7.824 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.556e-05/0.3565, allocations: 16.38 kB / 1.288 GB, free: 7.809 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001374/0.3566, allocations: 61.8 kB / 1.288 GB, free: 7.742 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.3566, allocations: 0 / 1.288 GB, free: 7.742 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.02e-05/0.3566, allocations: 0 / 1.288 GB, free: 7.742 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.628e-06/0.3566, allocations: 0 / 1.288 GB, free: 7.742 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.741e-05/0.3567, allocations: 23.92 kB / 1.288 GB, free: 7.719 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007042/0.3574, allocations: 391.5 kB / 1.288 GB, free: 7.293 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 9.588e-05/0.3575, allocations: 30.56 kB / 1.288 GB, free: 7.254 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.522e-05/0.3575, allocations: 20.8 kB / 1.288 GB, free: 7.23 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.419e-05/0.3575, allocations: 4 kB / 1.288 GB, free: 7.227 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002868/0.3578, allocations: 103.3 kB / 1.288 GB, free: 7.113 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=10): time 1.713e-06/0.3578, allocations: 0 / 1.288 GB, free: 7.113 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10): time 0.0004444/0.3583, allocations: 137.5 kB / 1.289 GB, free: 6.973 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.803e-05/0.3584, allocations: 59.41 kB / 1.289 GB, free: 6.902 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001652/0.3585, allocations: 124.6 kB / 1.289 GB, free: 6.773 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 6.742e-05/0.3586, allocations: 45.69 kB / 1.289 GB, free: 6.723 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001531/0.3587, allocations: 100.1 kB / 1.289 GB, free: 6.621 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.635e-05/0.3588, allocations: 19.92 kB / 1.289 GB, free: 6.602 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002131/0.359, allocations: 66.05 kB / 1.289 GB, free: 6.531 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0002019/0.3592, allocations: 322.8 kB / 1.289 GB, free: 6.207 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003205/0.3595, allocations: 91.94 kB / 1.289 GB, free: 6.117 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003706/0.3599, allocations: 141.9 kB / 1.29 GB, free: 5.957 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004651/0.3603, allocations: 242.5 kB / 1.29 GB, free: 5.684 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.3603, allocations: 0 / 1.29 GB, free: 5.684 MB / 0.9825 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.00101/0.3614, allocations: 390.4 kB / 1.29 GB, free: 5.277 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001091/0.3615, allocations: 103.9 kB / 1.29 GB, free: 5.16 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.3615, allocations: 0 / 1.29 GB, free: 5.16 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.774e-05/0.3615, allocations: 4 kB / 1.29 GB, free: 5.156 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.64e-05/0.3615, allocations: 0 / 1.29 GB, free: 5.156 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.222e-05/0.3615, allocations: 8 kB / 1.29 GB, free: 5.148 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006028/0.3621, allocations: 87.98 kB / 1.29 GB, free: 5.062 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.841e-05/0.3622, allocations: 15.98 kB / 1.29 GB, free: 5.047 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: 13 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,logicalSwitch.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * 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.000199/0.3624, allocations: 137.7 kB / 1.29 GB, free: 4.902 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.132e-05/0.3624, allocations: 11.95 kB / 1.29 GB, free: 4.891 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.109e-05/0.3625, allocations: 12.38 kB / 1.29 GB, free: 4.879 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.3625, allocations: 0 / 1.29 GB, free: 4.879 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.662e-06/0.3625, allocations: 0 / 1.29 GB, free: 4.879 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.3625, allocations: 0 / 1.29 GB, free: 4.879 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002346/0.3627, allocations: 164.6 kB / 1.291 GB, free: 4.676 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.3627, allocations: 0 / 1.291 GB, free: 4.676 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.365e-05/0.3627, allocations: 4 kB / 1.291 GB, free: 4.672 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.474e-06/0.3627, allocations: 0 / 1.291 GB, free: 4.672 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.664e-05/0.3628, allocations: 7.984 kB / 1.291 GB, free: 4.664 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.404e-06/0.3628, allocations: 0 / 1.291 GB, free: 4.664 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.3628, allocations: 7.938 kB / 1.291 GB, free: 4.656 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003038/0.3631, allocations: 140.9 kB / 1.291 GB, free: 4.5 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 2.244e-05/0.3631, allocations: 7.891 kB / 1.291 GB, free: 4.492 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.486e-05/0.3631, allocations: 7.984 kB / 1.291 GB, free: 4.484 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.44e-05/0.3632, allocations: 0 / 1.291 GB, free: 4.484 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.151e-05/0.3632, allocations: 11.98 kB / 1.291 GB, free: 4.473 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.182e-05/0.3633, allocations: 4 kB / 1.291 GB, free: 4.469 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001068/0.3634, allocations: 99.27 kB / 1.291 GB, free: 4.371 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.9e-07/0.3634, allocations: 7.938 kB / 1.291 GB, free: 4.363 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0004745/0.3638, allocations: 39.94 kB / 1.291 GB, free: 4.324 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: 10 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,booPul3.y,logicalSwitch.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * 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.0007573/0.3646, allocations: 0.6827 MB / 1.292 GB, free: 3.613 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0006908/0.3653, allocations: 318.2 kB / 1.292 GB, free: 3.266 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3653, allocations: 0 / 1.292 GB, free: 3.266 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001023/0.3654, allocations: 31.92 kB / 1.292 GB, free: 3.234 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004018/0.3658, allocations: 23.97 kB / 1.292 GB, free: 3.211 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004071/0.3699, allocations: 2.082 MB / 1.294 GB, free: 0.9883 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004761/0.3703, allocations: 0.6924 MB / 1.295 GB, free: 276 kB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.835e-05/0.3704, allocations: 8.422 kB / 1.295 GB, free: 268 kB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.829e-05/0.3704, allocations: 31.42 kB / 1.295 GB, free: 236 kB / 0.9825 GB Notification: Performance of SimCode: time 5e-07/0.3704, allocations: 0 / 1.295 GB, free: 236 kB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02888/0.3993, allocations: 4.002 MB / 1.299 GB, free: 12.4 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.15/11.55, allocations: 7.391 kB / 1.299 GB, free: 12.39 MB / 0.9981 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Logical_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Logical_Validation_Switch.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 18.42892503400799] Failed to read output from testmodel.py, exit status != 0: 12.316071623004973 11.737321945 11.376695528 Calling exit ...