Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001834/0.001834, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.00253/0.00253, allocations: 218.8 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.541/1.541, allocations: 230.6 MB / 256.8 MB, free: 7.992 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.144/3.144, allocations: 0.49 GB / 0.7959 GB, free: 33.44 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_Buildings_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,fileNamePrefix="Buildings_12_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.002003/0.002003, allocations: 67.19 kB / 1.155 GB, free: 25.68 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3689/0.3709, allocations: 176.1 MB / 1.327 GB, free: 1.922 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002022/0.3729, allocations: 0.8053 MB / 1.327 GB, free: 1.121 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001786/0.3747, allocations: 1.194 MB / 1.329 GB, free: 15.91 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.506e-05/0.3748, allocations: 0 / 1.329 GB, free: 15.91 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.322e-05/0.3748, allocations: 7.922 kB / 1.329 GB, free: 15.91 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.887e-05/0.3749, allocations: 11.88 kB / 1.329 GB, free: 15.89 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005251/0.3754, allocations: 138.6 kB / 1.329 GB, free: 15.76 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002134/0.3756, allocations: 127.8 kB / 1.329 GB, free: 15.64 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 9.25e-05/0.3757, allocations: 11.98 kB / 1.329 GB, free: 15.62 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 9.923e-05/0.3758, allocations: 55.78 kB / 1.329 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001156/0.3759, allocations: 55.86 kB / 1.329 GB, free: 15.52 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.518e-05/0.3759, allocations: 8 kB / 1.329 GB, free: 15.51 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.377e-05/0.376, allocations: 27.98 kB / 1.329 GB, free: 15.48 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.101e-05/0.376, allocations: 7.938 kB / 1.329 GB, free: 15.47 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 7.604e-05/0.3761, allocations: 51.83 kB / 1.329 GB, free: 15.42 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002014/0.3763, allocations: 119.8 kB / 1.329 GB, free: 15.3 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.3763, allocations: 0 / 1.329 GB, free: 15.3 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.924e-06/0.3763, allocations: 4 kB / 1.329 GB, free: 15.3 MB / 1.029 GB Notification: Performance of Transformations before backend: time 8.676e-06/0.3763, allocations: 4 kB / 1.329 GB, free: 15.3 MB / 1.029 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.0006928/0.377, allocations: 345.3 kB / 1.33 GB, free: 14.92 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.3771, allocations: 12.03 kB / 1.33 GB, free: 14.91 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.475e-05/0.3771, allocations: 192 / 1.33 GB, free: 14.91 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.34e-05/0.3771, allocations: 34.73 kB / 1.33 GB, free: 14.87 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.768e-05/0.3772, allocations: 12.89 kB / 1.33 GB, free: 14.86 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000112/0.3773, allocations: 118.4 kB / 1.33 GB, free: 14.71 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.404e-05/0.3773, allocations: 8.375 kB / 1.33 GB, free: 14.71 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.452e-05/0.3773, allocations: 4.375 kB / 1.33 GB, free: 14.7 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002865/0.3776, allocations: 81.95 kB / 1.33 GB, free: 14.62 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.3776, allocations: 3.938 kB / 1.33 GB, free: 14.61 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.036e-05/0.3776, allocations: 0 / 1.33 GB, free: 14.61 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.3776, allocations: 0 / 1.33 GB, free: 14.61 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003139/0.3779, allocations: 79.91 kB / 1.33 GB, free: 14.54 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005143/0.3784, allocations: 307.6 kB / 1.33 GB, free: 14.19 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002069/0.3787, allocations: 50.53 kB / 1.33 GB, free: 14.13 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001676/0.3788, allocations: 44.92 kB / 1.33 GB, free: 14.09 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.571e-05/0.3788, allocations: 0 / 1.33 GB, free: 14.09 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003413/0.3792, allocations: 107.3 kB / 1.33 GB, free: 13.97 MB / 1.029 GB Notification: Performance of pre-optimization done (n=6): time 1.012e-06/0.3792, allocations: 0 / 1.33 GB, free: 13.97 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.0006389/0.3798, allocations: 161.5 kB / 1.331 GB, free: 13.8 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.243e-05/0.3799, allocations: 51.41 kB / 1.331 GB, free: 13.74 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001154/0.38, allocations: 133.9 kB / 1.331 GB, free: 13.6 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.211e-05/0.38, allocations: 29.7 kB / 1.331 GB, free: 13.57 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.768e-05/0.3801, allocations: 96.08 kB / 1.331 GB, free: 13.47 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.318e-05/0.3801, allocations: 19.91 kB / 1.331 GB, free: 13.45 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.474e-05/0.3802, allocations: 29.7 kB / 1.331 GB, free: 13.41 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001482/0.3803, allocations: 322.8 kB / 1.331 GB, free: 13.09 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00023/0.3806, allocations: 55.95 kB / 1.331 GB, free: 13.04 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002285/0.3808, allocations: 86.45 kB / 1.331 GB, free: 12.94 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003834/0.3812, allocations: 144.2 kB / 1.331 GB, free: 12.79 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.3812, allocations: 0 / 1.331 GB, free: 12.79 MB / 1.029 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005722/0.3818, allocations: 219.2 kB / 1.332 GB, free: 12.56 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.919e-05/0.3818, allocations: 37.69 kB / 1.332 GB, free: 12.52 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.668e-06/0.3818, allocations: 0 / 1.332 GB, free: 12.52 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.3818, allocations: 4 kB / 1.332 GB, free: 12.51 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001381/0.382, allocations: 15.92 kB / 1.332 GB, free: 12.5 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.406e-06/0.382, allocations: 4 kB / 1.332 GB, free: 12.49 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002381/0.3822, allocations: 43.95 kB / 1.332 GB, free: 12.45 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.822e-05/0.3822, allocations: 11.98 kB / 1.332 GB, free: 12.44 MB / 1.029 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.0001249/0.3824, allocations: 118.3 kB / 1.332 GB, free: 12.31 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.718e-05/0.3824, allocations: 7.953 kB / 1.332 GB, free: 12.3 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.995e-05/0.3824, allocations: 8.375 kB / 1.332 GB, free: 12.29 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.3824, allocations: 0 / 1.332 GB, free: 12.29 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.3824, allocations: 7.984 kB / 1.332 GB, free: 12.29 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.3824, allocations: 0 / 1.332 GB, free: 12.29 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001662/0.3826, allocations: 160.6 kB / 1.332 GB, free: 12.09 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.3826, allocations: 0 / 1.332 GB, free: 12.09 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001064/0.3827, allocations: 19.97 kB / 1.332 GB, free: 12.07 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.3827, allocations: 0 / 1.332 GB, free: 12.07 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.059e-05/0.3827, allocations: 3.984 kB / 1.332 GB, free: 12.06 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.3827, allocations: 0 / 1.332 GB, free: 12.06 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.3827, allocations: 3.938 kB / 1.332 GB, free: 12.06 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000441/0.3832, allocations: 157.2 kB / 1.332 GB, free: 11.89 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.767e-05/0.3832, allocations: 11.95 kB / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.752e-05/0.3832, allocations: 0 / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.73e-05/0.3833, allocations: 11.98 kB / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.589e-05/0.3833, allocations: 7.984 kB / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.097e-06/0.3833, allocations: 4 kB / 1.332 GB, free: 11.85 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.137e-05/0.3834, allocations: 99.27 kB / 1.332 GB, free: 11.75 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3834, allocations: 96 / 1.332 GB, free: 11.75 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002291/0.3836, allocations: 23.94 kB / 1.332 GB, free: 11.73 MB / 1.029 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.0008665/0.3845, allocations: 0.6904 MB / 1.333 GB, free: 11.01 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000555/0.3851, allocations: 171.2 kB / 1.333 GB, free: 10.83 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.3851, allocations: 0 / 1.333 GB, free: 10.83 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001934/0.3853, allocations: 48.08 kB / 1.333 GB, free: 10.79 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002657/0.3855, allocations: 19.92 kB / 1.333 GB, free: 10.77 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002925/0.3884, allocations: 1.641 MB / 1.335 GB, free: 9.023 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004381/0.3889, allocations: 0.6885 MB / 1.336 GB, free: 8.309 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 5.272e-05/0.3889, allocations: 8 kB / 1.336 GB, free: 8.301 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.867e-05/0.389, allocations: 23.42 kB / 1.336 GB, free: 8.277 MB / 1.029 GB Notification: Performance of SimCode: time 1.072e-06/0.389, allocations: 0 / 1.336 GB, free: 8.277 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02376/0.4128, allocations: 2.842 MB / 1.338 GB, free: 5.594 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.35/11.77, allocations: 6.297 kB / 1.338 GB, free: 5.59 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Switch.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 18.67341755196685] Failed to read output from testmodel.py, exit status != 0: 11.933754088997375 11.961443512 11.580298661 Calling exit ...