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.001348/0.001348, allocations: 97.92 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.00206/0.00206, allocations: 219.8 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.49/1.49, allocations: 230.6 MB / 256.8 MB, free: 7.781 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.739/2.739, allocations: 476.8 MB / 0.7715 GB, free: 3.898 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.002038/0.002038, allocations: 64.14 kB / 1.118 GB, free: 39.66 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3365/0.3386, allocations: 170 MB / 1.284 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002146/0.3407, allocations: 0.8137 MB / 1.285 GB, free: 9.871 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001773/0.3425, allocations: 1.293 MB / 1.286 GB, free: 8.566 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.846e-05/0.3426, allocations: 4 kB / 1.286 GB, free: 8.562 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 4.613e-05/0.3426, allocations: 11.81 kB / 1.286 GB, free: 8.551 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 8.982e-05/0.3427, allocations: 27.78 kB / 1.286 GB, free: 8.523 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008583/0.3435, allocations: 332.6 kB / 1.287 GB, free: 8.207 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003441/0.3439, allocations: 287.5 kB / 1.287 GB, free: 7.926 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001185/0.344, allocations: 31.03 kB / 1.287 GB, free: 7.895 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000149/0.3442, allocations: 119.8 kB / 1.287 GB, free: 7.777 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001855/0.3443, allocations: 107.7 kB / 1.287 GB, free: 7.672 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 5.526e-05/0.3444, allocations: 28 kB / 1.287 GB, free: 7.645 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001007/0.3445, allocations: 43.98 kB / 1.287 GB, free: 7.602 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.278e-05/0.3445, allocations: 19.92 kB / 1.287 GB, free: 7.582 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001272/0.3447, allocations: 99.67 kB / 1.287 GB, free: 7.484 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003652/0.345, allocations: 274.6 kB / 1.287 GB, free: 7.219 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.345, allocations: 0 / 1.287 GB, free: 7.219 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.224e-06/0.345, allocations: 0 / 1.287 GB, free: 7.219 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.612e-06/0.345, allocations: 0 / 1.287 GB, free: 7.219 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.0007078/0.3457, allocations: 458.9 kB / 1.288 GB, free: 6.723 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/0.3458, allocations: 8.031 kB / 1.288 GB, free: 6.715 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.576e-05/0.3458, allocations: 4.188 kB / 1.288 GB, free: 6.711 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.614e-05/0.3458, allocations: 38.75 kB / 1.288 GB, free: 6.664 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.361e-05/0.3459, allocations: 28.83 kB / 1.288 GB, free: 6.637 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001408/0.3461, allocations: 129.9 kB / 1.288 GB, free: 6.488 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.641e-05/0.3461, allocations: 12 kB / 1.288 GB, free: 6.477 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.879e-05/0.3461, allocations: 20 kB / 1.288 GB, free: 6.457 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001808/0.3463, allocations: 89.59 kB / 1.288 GB, free: 6.363 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.635e-06/0.3463, allocations: 0 / 1.288 GB, free: 6.363 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.504e-05/0.3463, allocations: 8 kB / 1.288 GB, free: 6.355 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.3463, allocations: 0 / 1.288 GB, free: 6.355 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001031/0.3464, allocations: 39.98 kB / 1.288 GB, free: 6.316 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007048/0.3472, allocations: 419.4 kB / 1.289 GB, free: 5.863 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002402/0.3474, allocations: 74.56 kB / 1.289 GB, free: 5.781 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.661e-05/0.3474, allocations: 32.84 kB / 1.289 GB, free: 5.746 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.403e-05/0.3475, allocations: 3.938 kB / 1.289 GB, free: 5.742 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002522/0.3477, allocations: 115.5 kB / 1.289 GB, free: 5.617 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=14): time 1.753e-06/0.3477, allocations: 0 / 1.289 GB, free: 5.617 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14): time 0.0003773/0.3481, allocations: 178.8 kB / 1.289 GB, free: 5.438 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.555e-05/0.3481, allocations: 55.41 kB / 1.289 GB, free: 5.371 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001573/0.3483, allocations: 161 kB / 1.289 GB, free: 5.207 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.59e-05/0.3483, allocations: 33.7 kB / 1.289 GB, free: 5.168 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.926e-05/0.3484, allocations: 120 kB / 1.289 GB, free: 5.047 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.907e-05/0.3485, allocations: 27.84 kB / 1.289 GB, free: 5.02 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001411/0.3486, allocations: 69.67 kB / 1.29 GB, free: 4.945 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001583/0.3488, allocations: 326.8 kB / 1.29 GB, free: 4.617 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002666/0.349, allocations: 185 kB / 1.29 GB, free: 4.418 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003089/0.3493, allocations: 231 kB / 1.29 GB, free: 4.152 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003311/0.3497, allocations: 265 kB / 1.29 GB, free: 3.855 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.3497, allocations: 0 / 1.29 GB, free: 3.855 MB / 0.9825 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000737/0.3504, allocations: 495.5 kB / 1.291 GB, free: 3.328 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 9.199e-05/0.3505, allocations: 101.1 kB / 1.291 GB, free: 3.211 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.3505, allocations: 0 / 1.291 GB, free: 3.211 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.104e-05/0.3505, allocations: 4 kB / 1.291 GB, free: 3.207 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.552e-05/0.3506, allocations: 11.94 kB / 1.291 GB, free: 3.195 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.072e-05/0.3506, allocations: 8.172 kB / 1.291 GB, free: 3.188 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004677/0.3511, allocations: 87.8 kB / 1.291 GB, free: 3.102 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.689e-05/0.3511, allocations: 19.98 kB / 1.291 GB, free: 3.082 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.0001575/0.3513, allocations: 142.2 kB / 1.291 GB, free: 2.934 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.721e-05/0.3513, allocations: 19.83 kB / 1.291 GB, free: 2.914 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.87e-05/0.3514, allocations: 20.77 kB / 1.291 GB, free: 2.895 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.3514, allocations: 0 / 1.291 GB, free: 2.895 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.3514, allocations: 4 kB / 1.291 GB, free: 2.891 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.3514, allocations: 4 kB / 1.291 GB, free: 2.887 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002107/0.3516, allocations: 176.6 kB / 1.292 GB, free: 2.672 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.3516, allocations: 0 / 1.292 GB, free: 2.672 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.68e-05/0.3516, allocations: 8 kB / 1.292 GB, free: 2.664 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.203e-06/0.3516, allocations: 7.984 kB / 1.292 GB, free: 2.656 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.165e-05/0.3516, allocations: 4 kB / 1.292 GB, free: 2.652 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.3516, allocations: 0 / 1.292 GB, free: 2.652 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.3516, allocations: 0 / 1.292 GB, free: 2.652 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002667/0.3519, allocations: 178.5 kB / 1.292 GB, free: 2.461 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 2.35e-05/0.3519, allocations: 11.91 kB / 1.292 GB, free: 2.449 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.256e-05/0.352, allocations: 4 kB / 1.292 GB, free: 2.445 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.319e-05/0.352, allocations: 4 kB / 1.292 GB, free: 2.441 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.013e-05/0.352, allocations: 15.97 kB / 1.292 GB, free: 2.426 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.021e-05/0.3521, allocations: 7.938 kB / 1.292 GB, free: 2.418 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001021/0.3522, allocations: 118.3 kB / 1.292 GB, free: 2.305 MB / 0.9825 GB Notification: Performance of sort global known variables: time 6e-08/0.3522, allocations: 0 / 1.292 GB, free: 2.305 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002829/0.3524, allocations: 51.94 kB / 1.292 GB, free: 2.254 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.0006619/0.3531, allocations: 0.7177 MB / 1.293 GB, free: 1.508 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005975/0.3537, allocations: 427.2 kB / 1.293 GB, free: 1.035 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.3537, allocations: 0 / 1.293 GB, free: 1.035 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 8.758e-05/0.3538, allocations: 51.16 kB / 1.293 GB, free: 0.9883 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002864/0.3541, allocations: 33.25 kB / 1.293 GB, free: 0.9609 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003276/0.3574, allocations: 2.61 MB / 1.296 GB, free: 14.14 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001061/0.3575, allocations: 102.6 kB / 1.296 GB, free: 14.02 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 5.199e-05/0.3575, allocations: 12.61 kB / 1.296 GB, free: 14 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.094e-05/0.3576, allocations: 39.42 kB / 1.296 GB, free: 13.96 MB / 0.9981 GB Notification: Performance of SimCode: time 7.11e-07/0.3576, allocations: 4 kB / 1.296 GB, free: 13.96 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02623/0.3838, allocations: 4.684 MB / 1.3 GB, free: 9.492 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.59/11.98, allocations: 7.016 kB / 1.3 GB, free: 9.488 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.542669845977798] Failed to read output from testmodel.py, exit status != 0: 12.643576698028482 12.152148891 11.803737838 Calling exit ...