Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Reals.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.001879/0.001879, 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.001947/0.001947, 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.573/1.573, allocations: 230.6 MB / 256.8 MB, free: 7.965 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.816/2.816, allocations: 476.7 MB / 0.7714 GB, free: 4.254 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.Reals.Validation.Switch,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Reals_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.002015/0.002015, allocations: 66.98 kB / 1.118 GB, free: 40.39 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4452/0.4472, allocations: 170 MB / 1.284 GB, free: 11.66 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002977/0.4502, allocations: 0.7997 MB / 1.285 GB, free: 10.86 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002432/0.4526, allocations: 1.188 MB / 1.286 GB, free: 9.664 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.402e-05/0.4527, allocations: 0 / 1.286 GB, free: 9.664 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.741e-05/0.4528, allocations: 3.938 kB / 1.286 GB, free: 9.66 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 9.626e-05/0.4528, allocations: 15.86 kB / 1.286 GB, free: 9.645 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005497/0.4534, allocations: 133.8 kB / 1.286 GB, free: 9.516 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002345/0.4536, allocations: 135.7 kB / 1.286 GB, free: 9.383 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001118/0.4537, allocations: 11.98 kB / 1.286 GB, free: 9.371 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001153/0.4539, allocations: 47.91 kB / 1.286 GB, free: 9.324 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001259/0.454, allocations: 59.8 kB / 1.287 GB, free: 9.266 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.646e-05/0.454, allocations: 12 kB / 1.287 GB, free: 9.254 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.505e-05/0.4541, allocations: 20 kB / 1.287 GB, free: 9.234 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 9.923e-05/0.4542, allocations: 15.92 kB / 1.287 GB, free: 9.219 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 8.066e-05/0.4543, allocations: 47.83 kB / 1.287 GB, free: 9.172 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002254/0.4545, allocations: 119.8 kB / 1.287 GB, free: 9.059 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.4545, allocations: 8 kB / 1.287 GB, free: 9.051 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.733e-06/0.4545, allocations: 0 / 1.287 GB, free: 9.051 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.011e-06/0.4545, allocations: 0 / 1.287 GB, free: 9.051 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.0007934/0.4553, allocations: 359.6 kB / 1.287 GB, free: 8.66 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.4553, allocations: 8.031 kB / 1.287 GB, free: 8.652 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.456e-05/0.4554, allocations: 192 / 1.287 GB, free: 8.652 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.265e-05/0.4554, allocations: 38.73 kB / 1.287 GB, free: 8.605 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.731e-05/0.4555, allocations: 12.89 kB / 1.287 GB, free: 8.594 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001714/0.4556, allocations: 110.5 kB / 1.287 GB, free: 8.461 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.378e-05/0.4557, allocations: 8.375 kB / 1.287 GB, free: 8.453 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.002e-05/0.4557, allocations: 4.375 kB / 1.287 GB, free: 8.449 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003437/0.456, allocations: 81.95 kB / 1.287 GB, free: 8.363 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.456, allocations: 0 / 1.287 GB, free: 8.363 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.294e-05/0.4561, allocations: 0 / 1.287 GB, free: 8.363 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.4561, allocations: 3.938 kB / 1.287 GB, free: 8.359 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004261/0.4565, allocations: 75.92 kB / 1.287 GB, free: 8.285 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006265/0.4571, allocations: 307.7 kB / 1.288 GB, free: 7.941 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002521/0.4574, allocations: 46.55 kB / 1.288 GB, free: 7.887 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002208/0.4576, allocations: 52.84 kB / 1.288 GB, free: 7.832 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.482e-05/0.4576, allocations: 4 kB / 1.288 GB, free: 7.828 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004325/0.458, allocations: 91.34 kB / 1.288 GB, free: 7.727 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=6): time 1.583e-06/0.458, allocations: 0 / 1.288 GB, free: 7.727 MB / 0.9825 GB Notification: Performance of matching and sorting (n=6): time 0.0008467/0.4589, allocations: 161.5 kB / 1.288 GB, free: 7.562 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.154e-05/0.459, allocations: 59.41 kB / 1.288 GB, free: 7.492 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001526/0.4591, allocations: 127.6 kB / 1.288 GB, free: 7.355 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.987e-05/0.4591, allocations: 25.7 kB / 1.288 GB, free: 7.324 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.281e-05/0.4592, allocations: 92.09 kB / 1.288 GB, free: 7.23 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.351e-05/0.4593, allocations: 23.89 kB / 1.288 GB, free: 7.207 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.426e-05/0.4594, allocations: 29.7 kB / 1.288 GB, free: 7.172 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0002335/0.4596, allocations: 322.8 kB / 1.289 GB, free: 6.848 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000298/0.4599, allocations: 59.94 kB / 1.289 GB, free: 6.789 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003337/0.4602, allocations: 82.52 kB / 1.289 GB, free: 6.699 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005036/0.4607, allocations: 144.1 kB / 1.289 GB, free: 6.543 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.4607, allocations: 0 / 1.289 GB, free: 6.543 MB / 0.9825 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000749/0.4615, allocations: 219.2 kB / 1.289 GB, free: 6.316 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 6.06e-05/0.4615, allocations: 40.12 kB / 1.289 GB, free: 6.273 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.4616, allocations: 4.25 kB / 1.289 GB, free: 6.27 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.04e-05/0.4616, allocations: 4 kB / 1.289 GB, free: 6.266 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001837/0.4618, allocations: 19.98 kB / 1.289 GB, free: 6.246 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.17e-05/0.4618, allocations: 8 kB / 1.289 GB, free: 6.238 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002584/0.462, allocations: 47.95 kB / 1.289 GB, free: 6.191 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.705e-05/0.4621, allocations: 7.984 kB / 1.289 GB, free: 6.184 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * 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.0001128/0.4622, allocations: 118.6 kB / 1.289 GB, free: 6.059 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.065e-05/0.4622, allocations: 11.94 kB / 1.289 GB, free: 6.047 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.114e-05/0.4622, allocations: 8.375 kB / 1.289 GB, free: 6.039 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.4622, allocations: 4 kB / 1.289 GB, free: 6.035 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.4622, allocations: 0 / 1.289 GB, free: 6.035 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.4622, allocations: 7.938 kB / 1.289 GB, free: 6.027 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001603/0.4624, allocations: 156.6 kB / 1.29 GB, free: 5.832 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.4624, allocations: 0 / 1.29 GB, free: 5.832 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001025/0.4625, allocations: 15.98 kB / 1.29 GB, free: 5.816 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.754e-06/0.4625, allocations: 0 / 1.29 GB, free: 5.816 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.658e-06/0.4625, allocations: 0 / 1.29 GB, free: 5.816 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.097e-06/0.4625, allocations: 4 kB / 1.29 GB, free: 5.812 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.4625, allocations: 0 / 1.29 GB, free: 5.812 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004094/0.4629, allocations: 160.9 kB / 1.29 GB, free: 5.637 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.559e-05/0.4629, allocations: 7.938 kB / 1.29 GB, free: 5.629 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.76e-05/0.463, allocations: 0 / 1.29 GB, free: 5.629 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.992e-05/0.463, allocations: 11.98 kB / 1.29 GB, free: 5.617 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.077e-05/0.4631, allocations: 7.984 kB / 1.29 GB, free: 5.609 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.906e-06/0.4631, allocations: 4 kB / 1.29 GB, free: 5.605 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.754e-05/0.4632, allocations: 104.2 kB / 1.29 GB, free: 5.504 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.4632, allocations: 0 / 1.29 GB, free: 5.504 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002838/0.4634, allocations: 20 kB / 1.29 GB, free: 5.484 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: 3 ($whenCondition1,$whenCondition2,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0008879/0.4643, allocations: 0.6865 MB / 1.291 GB, free: 4.77 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005082/0.4648, allocations: 179.4 kB / 1.291 GB, free: 4.582 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.4648, allocations: 0 / 1.291 GB, free: 4.582 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001832/0.465, allocations: 48.08 kB / 1.291 GB, free: 4.535 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002289/0.4653, allocations: 15.98 kB / 1.291 GB, free: 4.52 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002567/0.4678, allocations: 1.649 MB / 1.292 GB, free: 2.77 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004124/0.4682, allocations: 0.6885 MB / 1.293 GB, free: 2.055 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.328e-05/0.4683, allocations: 8 kB / 1.293 GB, free: 2.047 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.719e-05/0.4683, allocations: 27.36 kB / 1.293 GB, free: 2.02 MB / 0.9825 GB Notification: Performance of SimCode: time 4.3e-07/0.4683, allocations: 0 / 1.293 GB, free: 2.02 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02739/0.4957, allocations: 2.832 MB / 1.296 GB, free: 15.34 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.39/11.89, allocations: 8.594 kB / 1.296 GB, free: 15.34 MB / 0.9981 GB " [Timeout remaining time 287] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_Switch.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 18.826953176001552] Failed to read output from testmodel.py, exit status != 0: 12.657814873033203 12.07796293 11.618277052 Calling exit ...