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.001659/0.001659, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.001516/0.001516, allocations: 217.3 kB / 23.03 MB, free: 4.922 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.797 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.904/2.904, allocations: 476.8 MB / 0.7715 GB, free: 3.871 MB / 0.6231 GB " [Timeout remaining time 176] 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.002005/0.002005, allocations: 67.97 kB / 1.118 GB, free: 39.76 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3323/0.3343, allocations: 170 MB / 1.284 GB, free: 10.6 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.0026/0.3369, allocations: 0.7586 MB / 1.285 GB, free: 9.836 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001886/0.3388, allocations: 1.165 MB / 1.286 GB, free: 8.66 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.144e-05/0.3389, allocations: 4 kB / 1.286 GB, free: 8.656 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.753e-05/0.3389, allocations: 7.875 kB / 1.286 GB, free: 8.648 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 9.553e-05/0.339, allocations: 15.84 kB / 1.286 GB, free: 8.633 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000576/0.3396, allocations: 137.7 kB / 1.286 GB, free: 8.5 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002351/0.3398, allocations: 123.8 kB / 1.286 GB, free: 8.379 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001078/0.3399, allocations: 17.38 kB / 1.286 GB, free: 8.363 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001384/0.3401, allocations: 55.84 kB / 1.286 GB, free: 8.309 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001213/0.3402, allocations: 43.89 kB / 1.286 GB, free: 8.266 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.44e-05/0.3402, allocations: 12 kB / 1.286 GB, free: 8.254 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 9.616e-05/0.3403, allocations: 35.91 kB / 1.286 GB, free: 8.219 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.491e-05/0.3404, allocations: 15.92 kB / 1.286 GB, free: 8.203 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 8.229e-05/0.3405, allocations: 39.84 kB / 1.287 GB, free: 8.164 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002662/0.3407, allocations: 123.2 kB / 1.287 GB, free: 8.047 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.3407, allocations: 3.938 kB / 1.287 GB, free: 8.043 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.242e-06/0.3407, allocations: 0 / 1.287 GB, free: 8.043 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 9.889e-06/0.3407, allocations: 0 / 1.287 GB, free: 8.043 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.0007682/0.3415, allocations: 347.8 kB / 1.287 GB, free: 7.664 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.66e-05/0.3416, allocations: 12.03 kB / 1.287 GB, free: 7.652 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.644e-05/0.3416, allocations: 192 / 1.287 GB, free: 7.652 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.019e-05/0.3416, allocations: 30.75 kB / 1.287 GB, free: 7.613 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.02e-05/0.3417, allocations: 12.89 kB / 1.287 GB, free: 7.602 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001376/0.3418, allocations: 124 kB / 1.287 GB, free: 7.457 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.073e-05/0.3418, allocations: 8.375 kB / 1.287 GB, free: 7.449 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.191e-05/0.3419, allocations: 8.312 kB / 1.287 GB, free: 7.441 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002848/0.3421, allocations: 81.95 kB / 1.287 GB, free: 7.355 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.3422, allocations: 0 / 1.287 GB, free: 7.355 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.535e-05/0.3422, allocations: 3.984 kB / 1.287 GB, free: 7.352 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.3422, allocations: 0 / 1.287 GB, free: 7.352 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003204/0.3425, allocations: 75.92 kB / 1.287 GB, free: 7.277 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004961/0.343, allocations: 279.8 kB / 1.288 GB, free: 6.961 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002193/0.3432, allocations: 54.47 kB / 1.288 GB, free: 6.898 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001631/0.3434, allocations: 40.91 kB / 1.288 GB, free: 6.855 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.499e-05/0.3434, allocations: 4 kB / 1.288 GB, free: 6.852 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003301/0.3437, allocations: 99.36 kB / 1.288 GB, free: 6.742 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=6): time 1.502e-06/0.3437, allocations: 0 / 1.288 GB, free: 6.742 MB / 0.9825 GB Notification: Performance of matching and sorting (n=6): time 0.0006492/0.3444, allocations: 165.5 kB / 1.288 GB, free: 6.574 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.14e-05/0.3444, allocations: 55.41 kB / 1.288 GB, free: 6.508 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001354/0.3446, allocations: 122.1 kB / 1.288 GB, free: 6.375 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.491e-05/0.3446, allocations: 29.7 kB / 1.288 GB, free: 6.34 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.139e-05/0.3447, allocations: 96.19 kB / 1.288 GB, free: 6.242 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.667e-05/0.3447, allocations: 19.86 kB / 1.288 GB, free: 6.223 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.547e-05/0.3448, allocations: 29.7 kB / 1.288 GB, free: 6.188 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001619/0.345, allocations: 326.8 kB / 1.289 GB, free: 5.859 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002538/0.3452, allocations: 89.64 kB / 1.289 GB, free: 5.766 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002595/0.3455, allocations: 120.2 kB / 1.289 GB, free: 5.633 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003975/0.3459, allocations: 144.2 kB / 1.289 GB, free: 5.477 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3459, allocations: 0 / 1.289 GB, free: 5.477 MB / 0.9825 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0006237/0.3465, allocations: 244.9 kB / 1.289 GB, free: 5.219 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 5.212e-05/0.3466, allocations: 45.62 kB / 1.289 GB, free: 5.168 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.3466, allocations: 0 / 1.289 GB, free: 5.168 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.97e-05/0.3466, allocations: 4 kB / 1.289 GB, free: 5.164 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001417/0.3467, allocations: 11.98 kB / 1.289 GB, free: 5.152 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.035e-05/0.3467, allocations: 4 kB / 1.289 GB, free: 5.148 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002474/0.347, allocations: 43.88 kB / 1.289 GB, free: 5.105 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.552e-05/0.347, allocations: 8 kB / 1.289 GB, free: 5.098 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.0001136/0.3471, allocations: 121.7 kB / 1.289 GB, free: 4.969 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.483e-05/0.3471, allocations: 11.95 kB / 1.289 GB, free: 4.957 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.347e-05/0.3472, allocations: 8.359 kB / 1.289 GB, free: 4.949 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.3472, allocations: 4 kB / 1.289 GB, free: 4.945 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.3472, allocations: 0 / 1.289 GB, free: 4.945 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.3472, allocations: 0 / 1.289 GB, free: 4.945 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001582/0.3473, allocations: 152.7 kB / 1.29 GB, free: 4.754 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.3473, allocations: 0 / 1.29 GB, free: 4.754 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001109/0.3475, allocations: 19.98 kB / 1.29 GB, free: 4.734 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.3475, allocations: 0 / 1.29 GB, free: 4.734 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.277e-06/0.3475, allocations: 0 / 1.29 GB, free: 4.734 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.3475, allocations: 0 / 1.29 GB, free: 4.734 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.3475, allocations: 4 kB / 1.29 GB, free: 4.73 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004252/0.3479, allocations: 165.2 kB / 1.29 GB, free: 4.551 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.381e-05/0.3479, allocations: 3.953 kB / 1.29 GB, free: 4.547 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.266e-05/0.3479, allocations: 11.98 kB / 1.29 GB, free: 4.535 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.615e-05/0.348, allocations: 7.984 kB / 1.29 GB, free: 4.527 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.559e-05/0.3481, allocations: 11.98 kB / 1.29 GB, free: 4.516 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.358e-06/0.3481, allocations: 4 kB / 1.29 GB, free: 4.512 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.343e-05/0.3481, allocations: 93.89 kB / 1.29 GB, free: 4.422 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.3481, allocations: 0 / 1.29 GB, free: 4.422 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002363/0.3484, allocations: 20 kB / 1.29 GB, free: 4.402 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.0008059/0.3492, allocations: 0.6943 MB / 1.291 GB, free: 3.68 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005378/0.3497, allocations: 201 kB / 1.291 GB, free: 3.465 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.3497, allocations: 0 / 1.291 GB, free: 3.465 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001849/0.3499, allocations: 52.12 kB / 1.291 GB, free: 3.414 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002587/0.3502, allocations: 23.86 kB / 1.291 GB, free: 3.391 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002686/0.3529, allocations: 1.753 MB / 1.293 GB, free: 1.508 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.659e-05/0.3529, allocations: 71.28 kB / 1.293 GB, free: 1.418 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.99e-05/0.353, allocations: 7.984 kB / 1.293 GB, free: 1.41 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.959e-05/0.353, allocations: 23.44 kB / 1.293 GB, free: 1.387 MB / 0.9825 GB Notification: Performance of SimCode: time 3.21e-07/0.353, allocations: 4 kB / 1.293 GB, free: 1.383 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02636/0.3794, allocations: 2.986 MB / 1.296 GB, free: 14.57 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.83/12.21, allocations: 8.766 kB / 1.296 GB, free: 14.57 MB / 0.9981 GB " [Timeout remaining time 288] (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: 19.198570118984208] Failed to read output from testmodel.py, exit status != 0: 12.995263610035181 12.395395508 12.051166476 Calling exit ...