Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001273/0.001273, allocations: 117.4 kB / 17.17 MB, free: 5.977 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.001392/0.001392, allocations: 214.3 kB / 20.13 MB, free: 3.035 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.51/1.51, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.017/3.017, allocations: 0.5003 GB / 0.8026 GB, free: 6.711 MB / 0.6387 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.Reals.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,fileNamePrefix="Buildings_latest_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.002059/0.002059, allocations: 75.88 kB / 1.165 GB, free: 392 kB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9707/0.9727, allocations: 178.9 MB / 1.34 GB, free: 16.23 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002/0.9747, allocations: 0.7883 MB / 1.341 GB, free: 15.72 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0014/0.9761, allocations: 1.183 MB / 1.342 GB, free: 14.86 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.542e-05/0.9762, allocations: 5.25 kB / 1.342 GB, free: 14.86 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.499e-05/0.9762, allocations: 9.047 kB / 1.342 GB, free: 14.85 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 8.5e-05/0.9763, allocations: 19.2 kB / 1.342 GB, free: 14.83 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004875/0.9768, allocations: 131.1 kB / 1.342 GB, free: 14.77 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002031/0.977, allocations: 131.5 kB / 1.342 GB, free: 14.71 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001018/0.9771, allocations: 10.42 kB / 1.342 GB, free: 14.71 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001107/0.9772, allocations: 55.3 kB / 1.342 GB, free: 14.68 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000115/0.9773, allocations: 49.88 kB / 1.343 GB, free: 14.66 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.808e-05/0.9774, allocations: 18.44 kB / 1.343 GB, free: 14.66 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 7.613e-05/0.9774, allocations: 25.12 kB / 1.343 GB, free: 14.65 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.452e-05/0.9775, allocations: 17.62 kB / 1.343 GB, free: 14.64 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 6.61e-05/0.9775, allocations: 43.78 kB / 1.343 GB, free: 14.62 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002062/0.9777, allocations: 118.5 kB / 1.343 GB, free: 14.58 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.85e-06/0.9777, allocations: 0.7969 kB / 1.343 GB, free: 14.58 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.513e-06/0.9777, allocations: 0 / 1.343 GB, free: 14.58 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.19e-06/0.9777, allocations: 1.094 kB / 1.343 GB, free: 14.58 MB / 1.061 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.0006146/0.9784, allocations: 431.4 kB / 1.343 GB, free: 14.16 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.712e-05/0.9784, allocations: 10.05 kB / 1.343 GB, free: 14.16 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.996e-05/0.9784, allocations: 2.188 kB / 1.343 GB, free: 14.16 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.99e-05/0.9784, allocations: 36.16 kB / 1.343 GB, free: 14.11 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.524e-05/0.9785, allocations: 10.89 kB / 1.343 GB, free: 14.11 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.529e-05/0.9786, allocations: 181.8 kB / 1.343 GB, free: 13.9 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.514e-05/0.9786, allocations: 8.234 kB / 1.343 GB, free: 13.89 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.284e-05/0.9786, allocations: 5.406 kB / 1.343 GB, free: 13.89 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002638/0.9789, allocations: 87.39 kB / 1.343 GB, free: 13.84 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.9789, allocations: 0.7969 kB / 1.343 GB, free: 13.84 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.18e-05/0.9789, allocations: 5.422 kB / 1.343 GB, free: 13.84 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.9789, allocations: 0 / 1.343 GB, free: 13.84 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003182/0.9792, allocations: 67.53 kB / 1.344 GB, free: 13.83 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004146/0.9796, allocations: 332.5 kB / 1.344 GB, free: 13.53 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001962/0.9798, allocations: 52.95 kB / 1.344 GB, free: 13.5 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001612/0.98, allocations: 40.08 kB / 1.344 GB, free: 13.48 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.873e-05/0.98, allocations: 1.938 kB / 1.344 GB, free: 13.48 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002984/0.9803, allocations: 95 kB / 1.344 GB, free: 13.43 MB / 1.061 GB Notification: Performance of pre-optimization done (n=6): time 1.232e-06/0.9803, allocations: 0 / 1.344 GB, free: 13.43 MB / 1.061 GB Notification: Performance of matching and sorting (n=6): time 0.0006559/0.981, allocations: 168.2 kB / 1.344 GB, free: 13.36 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.097e-05/0.981, allocations: 56.78 kB / 1.344 GB, free: 13.3 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.644e-05/0.9811, allocations: 120.8 kB / 1.344 GB, free: 13.19 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.963e-05/0.9811, allocations: 28.45 kB / 1.344 GB, free: 13.16 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 4.756e-05/0.9811, allocations: 98.09 kB / 1.344 GB, free: 13.06 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.042e-05/0.9812, allocations: 19.92 kB / 1.345 GB, free: 13.05 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.62e-05/0.9812, allocations: 34.78 kB / 1.345 GB, free: 13.02 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 4.63e-05/0.9813, allocations: 319 kB / 1.345 GB, free: 12.71 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002267/0.9815, allocations: 66.36 kB / 1.345 GB, free: 12.69 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002182/0.9817, allocations: 76.14 kB / 1.345 GB, free: 12.65 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003719/0.9821, allocations: 147.6 kB / 1.345 GB, free: 12.57 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.9821, allocations: 1.469 kB / 1.345 GB, free: 12.57 MB / 1.061 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005559/0.9827, allocations: 216.3 kB / 1.345 GB, free: 12.46 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 4.103e-05/0.9827, allocations: 35.78 kB / 1.345 GB, free: 12.43 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.9827, allocations: 4.062 kB / 1.345 GB, free: 12.43 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/0.9827, allocations: 1.891 kB / 1.345 GB, free: 12.43 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001463/0.9829, allocations: 24.53 kB / 1.345 GB, free: 12.42 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.9829, allocations: 5.188 kB / 1.345 GB, free: 12.41 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002463/0.9831, allocations: 35.56 kB / 1.345 GB, free: 12.41 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.544e-05/0.9831, allocations: 6.641 kB / 1.345 GB, free: 12.41 MB / 1.061 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 7.937e-05/0.9832, allocations: 125.2 kB / 1.346 GB, free: 12.29 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.613e-05/0.9832, allocations: 7.016 kB / 1.346 GB, free: 12.29 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.031e-05/0.9833, allocations: 14.3 kB / 1.346 GB, free: 12.27 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.9833, allocations: 1.859 kB / 1.346 GB, free: 12.27 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.9833, allocations: 0.9375 kB / 1.346 GB, free: 12.27 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.9833, allocations: 0 / 1.346 GB, free: 12.27 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001305/0.9834, allocations: 184 kB / 1.346 GB, free: 12.07 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.9834, allocations: 1.688 kB / 1.346 GB, free: 12.07 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00011/0.9835, allocations: 15.72 kB / 1.346 GB, free: 12.07 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.9835, allocations: 4.875 kB / 1.346 GB, free: 12.07 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.738e-06/0.9835, allocations: 1.828 kB / 1.346 GB, free: 12.07 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.9835, allocations: 0 / 1.346 GB, free: 12.07 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.9835, allocations: 1.375 kB / 1.346 GB, free: 12.07 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004036/0.9839, allocations: 155.9 kB / 1.346 GB, free: 11.97 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.711e-05/0.984, allocations: 91.2 kB / 1.346 GB, free: 11.87 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.893e-05/0.984, allocations: 1.906 kB / 1.346 GB, free: 11.87 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.021e-05/0.9841, allocations: 12.28 kB / 1.346 GB, free: 11.87 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.441e-05/0.9841, allocations: 10.2 kB / 1.346 GB, free: 11.86 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.844e-06/0.9841, allocations: 2.078 kB / 1.346 GB, free: 11.86 MB / 1.061 GB Notification: Performance of sorting global known variables: time 4.433e-05/0.9842, allocations: 94.94 kB / 1.346 GB, free: 11.79 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.9842, allocations: 0 / 1.346 GB, free: 11.79 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002575/0.9844, allocations: 21.27 kB / 1.346 GB, free: 11.79 MB / 1.061 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.0006508/0.9851, allocations: 0.6977 MB / 1.347 GB, free: 11.16 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0005201/0.9856, allocations: 181 kB / 1.347 GB, free: 11.06 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.9856, allocations: 0 / 1.347 GB, free: 11.06 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001944/0.9858, allocations: 46.83 kB / 1.347 GB, free: 11.05 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002479/0.986, allocations: 17.39 kB / 1.347 GB, free: 11.05 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002353/0.9884, allocations: 1.644 MB / 1.349 GB, free: 9.711 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001621/0.9886, allocations: 0.6902 MB / 1.349 GB, free: 9.016 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 4.485e-05/0.9886, allocations: 3.375 kB / 1.349 GB, free: 9.016 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.434e-05/0.9887, allocations: 20.53 kB / 1.349 GB, free: 9 MB / 1.061 GB Notification: Performance of SimCode: time 7.92e-07/0.9887, allocations: 1.344 kB / 1.349 GB, free: 9 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02144/1.01, allocations: 2.742 MB / 1.352 GB, free: 8.512 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.929/9.939, allocations: 10.95 kB / 1.352 GB, free: 8.504 MB / 1.061 GB " [Timeout remaining time 290] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Switch.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 840.0] [Calling os._exit(0), Time elapsed: 16.45158538100077] Failed to read output from testmodel.py, exit status != 0: 10.06564916903153 10.086453025 9.104867956 Calling exit ...