Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Logical.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.001326/0.001326, allocations: 119.6 kB / 17.16 MB, free: 5.914 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.001398/0.001398, allocations: 211 kB / 20.13 MB, free: 2.969 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.515/1.515, allocations: 230.6 MB / 253.5 MB, free: 15.1 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.954/2.954, allocations: 476.7 MB / 0.7678 GB, free: 9.391 MB / 0.6075 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.Logical.Validation.Switch,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Logical_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.002281/0.002281, allocations: 67.91 kB / 1.113 GB, free: 15.83 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.056/1.059, allocations: 169.9 MB / 1.279 GB, free: 11.75 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001978/1.061, allocations: 0.7132 MB / 1.28 GB, free: 11.29 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001773/1.062, allocations: 1.299 MB / 1.281 GB, free: 10.35 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.868e-05/1.062, allocations: 1.062 kB / 1.281 GB, free: 10.35 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.206e-05/1.062, allocations: 4.688 kB / 1.281 GB, free: 10.34 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 9.462e-05/1.062, allocations: 22.2 kB / 1.281 GB, free: 10.33 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008749/1.063, allocations: 314.1 kB / 1.281 GB, free: 10.17 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0003269/1.064, allocations: 251.4 kB / 1.281 GB, free: 10.07 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.937e-05/1.064, allocations: 15.31 kB / 1.281 GB, free: 10.06 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001749/1.064, allocations: 101.3 kB / 1.282 GB, free: 10.02 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001982/1.064, allocations: 95.83 kB / 1.282 GB, free: 9.984 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 6.848e-05/1.064, allocations: 26.42 kB / 1.282 GB, free: 9.98 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001094/1.064, allocations: 32.59 kB / 1.282 GB, free: 9.98 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.849e-05/1.064, allocations: 15.77 kB / 1.282 GB, free: 9.973 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001588/1.065, allocations: 86.72 kB / 1.282 GB, free: 9.93 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003697/1.065, allocations: 224 kB / 1.282 GB, free: 9.855 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/1.065, allocations: 0 / 1.282 GB, free: 9.855 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.813e-06/1.065, allocations: 0 / 1.282 GB, free: 9.855 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 6.262e-06/1.065, allocations: 0 / 1.282 GB, free: 9.855 MB / 0.9981 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.0006987/1.066, allocations: 498.8 kB / 1.283 GB, free: 9.371 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/1.066, allocations: 10.38 kB / 1.283 GB, free: 9.371 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.321e-05/1.066, allocations: 1.828 kB / 1.283 GB, free: 9.371 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.819e-05/1.066, allocations: 37.16 kB / 1.283 GB, free: 9.328 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.931e-05/1.066, allocations: 15.62 kB / 1.283 GB, free: 9.324 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001582/1.066, allocations: 176.2 kB / 1.283 GB, free: 9.121 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.244e-05/1.066, allocations: 8.266 kB / 1.283 GB, free: 9.121 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.695e-05/1.066, allocations: 14.44 kB / 1.283 GB, free: 9.121 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000143/1.066, allocations: 67.34 kB / 1.283 GB, free: 9.07 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/1.066, allocations: 0 / 1.283 GB, free: 9.07 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.046e-05/1.066, allocations: 6.094 kB / 1.283 GB, free: 9.066 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.139e-06/1.066, allocations: 2.125 kB / 1.283 GB, free: 9.066 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.251e-05/1.066, allocations: 25.47 kB / 1.283 GB, free: 9.055 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006321/1.067, allocations: 416.1 kB / 1.283 GB, free: 8.727 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 7.915e-05/1.067, allocations: 35.7 kB / 1.283 GB, free: 8.691 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.877e-05/1.067, allocations: 19.12 kB / 1.283 GB, free: 8.68 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.193e-05/1.067, allocations: 0 / 1.283 GB, free: 8.68 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002052/1.067, allocations: 104.9 kB / 1.283 GB, free: 8.613 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=10): time 1.302e-06/1.067, allocations: 1.312 kB / 1.283 GB, free: 8.613 MB / 0.9981 GB Notification: Performance of matching and sorting (n=10): time 0.0003623/1.068, allocations: 136.4 kB / 1.284 GB, free: 8.551 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.695e-05/1.068, allocations: 58.36 kB / 1.284 GB, free: 8.484 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001428/1.068, allocations: 133.2 kB / 1.284 GB, free: 8.371 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 5.151e-05/1.068, allocations: 36.5 kB / 1.284 GB, free: 8.336 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 9.886e-05/1.068, allocations: 104.6 kB / 1.284 GB, free: 8.238 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.573e-05/1.068, allocations: 20.94 kB / 1.284 GB, free: 8.223 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001393/1.068, allocations: 67.17 kB / 1.284 GB, free: 8.195 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001466/1.068, allocations: 324.7 kB / 1.284 GB, free: 7.875 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002071/1.068, allocations: 86.55 kB / 1.284 GB, free: 7.848 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002515/1.069, allocations: 136 kB / 1.284 GB, free: 7.758 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003133/1.069, allocations: 240.3 kB / 1.285 GB, free: 7.555 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/1.069, allocations: 1.125 kB / 1.285 GB, free: 7.555 MB / 0.9981 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006899/1.07, allocations: 387.9 kB / 1.285 GB, free: 7.336 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 8.641e-05/1.07, allocations: 98.34 kB / 1.285 GB, free: 7.238 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.972e-06/1.07, allocations: 1.344 kB / 1.285 GB, free: 7.238 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.96e-05/1.07, allocations: 6.781 kB / 1.285 GB, free: 7.234 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.715e-05/1.07, allocations: 7.188 kB / 1.285 GB, free: 7.23 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.012e-05/1.07, allocations: 6.844 kB / 1.285 GB, free: 7.227 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005237/1.07, allocations: 85.5 kB / 1.285 GB, free: 7.215 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.154e-05/1.07, allocations: 20.62 kB / 1.285 GB, free: 7.211 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,logicalSwitch.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * 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.000143/1.071, allocations: 128.9 kB / 1.285 GB, free: 7.09 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.054e-05/1.071, allocations: 9 kB / 1.285 GB, free: 7.086 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.425e-05/1.071, allocations: 10.77 kB / 1.285 GB, free: 7.074 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/1.071, allocations: 7.031 kB / 1.285 GB, free: 7.07 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/1.071, allocations: 0 / 1.285 GB, free: 7.07 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.808e-06/1.071, allocations: 0.5156 kB / 1.285 GB, free: 7.07 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000184/1.071, allocations: 191.5 kB / 1.286 GB, free: 6.863 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/1.071, allocations: 0.7969 kB / 1.286 GB, free: 6.863 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.748e-05/1.071, allocations: 10.73 kB / 1.286 GB, free: 6.855 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/1.071, allocations: 1.125 kB / 1.286 GB, free: 6.855 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.119e-05/1.071, allocations: 2.641 kB / 1.286 GB, free: 6.855 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/1.071, allocations: 1.188 kB / 1.286 GB, free: 6.855 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/1.071, allocations: 0 / 1.286 GB, free: 6.855 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002039/1.071, allocations: 142.5 kB / 1.286 GB, free: 6.758 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.497e-05/1.071, allocations: 83.39 kB / 1.286 GB, free: 6.66 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.993e-05/1.071, allocations: 6.547 kB / 1.286 GB, free: 6.656 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.533e-05/1.071, allocations: 1.781 kB / 1.286 GB, free: 6.656 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.854e-05/1.071, allocations: 7.5 kB / 1.286 GB, free: 6.656 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.084e-05/1.071, allocations: 7.906 kB / 1.286 GB, free: 6.652 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 6.579e-05/1.071, allocations: 95.38 kB / 1.286 GB, free: 6.574 MB / 0.9981 GB Notification: Performance of sort global known variables: time 9e-08/1.071, allocations: 4 kB / 1.286 GB, free: 6.57 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002834/1.072, allocations: 57.31 kB / 1.286 GB, free: 6.555 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,booPul3.y,logicalSwitch.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * 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.0005965/1.072, allocations: 0.6768 MB / 1.287 GB, free: 5.938 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0005338/1.073, allocations: 324 kB / 1.287 GB, free: 5.695 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/1.073, allocations: 4.125 kB / 1.287 GB, free: 5.691 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 7.034e-05/1.073, allocations: 31.27 kB / 1.287 GB, free: 5.684 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002839/1.073, allocations: 24.89 kB / 1.287 GB, free: 5.676 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002821/1.076, allocations: 2.069 MB / 1.289 GB, free: 4.055 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003341/1.076, allocations: 0.6976 MB / 1.29 GB, free: 3.355 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 4.626e-05/1.076, allocations: 11.42 kB / 1.29 GB, free: 3.352 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.95e-05/1.076, allocations: 28.05 kB / 1.29 GB, free: 3.332 MB / 0.9981 GB Notification: Performance of SimCode: time 4.31e-07/1.076, allocations: 0 / 1.29 GB, free: 3.332 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.022/1.098, allocations: 3.887 MB / 1.294 GB, free: 2.734 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.322/9.42, allocations: 8 kB / 1.294 GB, free: 2.73 MB / 0.9981 GB " [Timeout remaining time 290] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Logical_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Logical_Validation_Switch.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 15.916713963029906] Failed to read output from testmodel.py, exit status != 0: 9.547320828016382 9.563068019 8.494869827 Calling exit ...