Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.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.001951/0.001951, allocations: 116.8 kB / 17.17 MB, free: 6 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.002328/0.002328, allocations: 214.3 kB / 20.13 MB, free: 3.055 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.54/1.54, allocations: 230.6 MB / 253.5 MB, free: 15.07 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.781/2.781, allocations: 476.7 MB / 0.7678 GB, free: 9.305 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.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",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.002017/0.002017, allocations: 75.88 kB / 1.113 GB, free: 15.83 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.056/1.058, allocations: 169.9 MB / 1.279 GB, free: 11.73 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003635/1.062, allocations: 1.713 MB / 1.281 GB, free: 10.53 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001093/1.063, allocations: 0.5225 MB / 1.281 GB, free: 10.16 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.592e-05/1.063, allocations: 1.094 kB / 1.281 GB, free: 10.16 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 4.55e-05/1.063, allocations: 9.938 kB / 1.281 GB, free: 10.16 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 8.903e-05/1.063, allocations: 16.66 kB / 1.281 GB, free: 10.14 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002635/1.063, allocations: 46.62 kB / 1.281 GB, free: 10.12 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001774/1.063, allocations: 90.67 kB / 1.281 GB, free: 10.07 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001333/1.064, allocations: 20.64 kB / 1.281 GB, free: 10.06 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001717/1.064, allocations: 38.3 kB / 1.281 GB, free: 10.04 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000105/1.064, allocations: 38.72 kB / 1.281 GB, free: 10.02 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.51e-05/1.064, allocations: 12.06 kB / 1.281 GB, free: 10.02 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.63e-05/1.064, allocations: 12.72 kB / 1.281 GB, free: 10.02 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 3.608e-05/1.064, allocations: 21.11 kB / 1.281 GB, free: 10 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 5.942e-05/1.064, allocations: 40.2 kB / 1.281 GB, free: 9.973 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002083/1.064, allocations: 94.78 kB / 1.282 GB, free: 9.93 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/1.064, allocations: 0 / 1.282 GB, free: 9.93 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.483e-06/1.064, allocations: 0 / 1.282 GB, free: 9.93 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.945e-06/1.064, allocations: 1.125 kB / 1.282 GB, free: 9.93 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006885/1.065, allocations: 394 kB / 1.282 GB, free: 9.543 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 5.001e-05/1.065, allocations: 10.39 kB / 1.282 GB, free: 9.543 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.408e-05/1.065, allocations: 9.594 kB / 1.282 GB, free: 9.535 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.284e-05/1.065, allocations: 33.86 kB / 1.282 GB, free: 9.496 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002464/1.065, allocations: 30.41 kB / 1.282 GB, free: 9.488 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002719/1.066, allocations: 194.8 kB / 1.282 GB, free: 9.277 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.405e-05/1.066, allocations: 2.219 kB / 1.282 GB, free: 9.277 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.833e-05/1.066, allocations: 3.875 kB / 1.282 GB, free: 9.277 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002564/1.066, allocations: 100.3 kB / 1.282 GB, free: 9.203 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/1.066, allocations: 0.5 kB / 1.282 GB, free: 9.203 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.401e-05/1.066, allocations: 0.5 kB / 1.282 GB, free: 9.203 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.786e-06/1.066, allocations: 6.25 kB / 1.282 GB, free: 9.199 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001957/1.066, allocations: 46.91 kB / 1.282 GB, free: 9.188 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005562/1.067, allocations: 327.7 kB / 1.283 GB, free: 8.883 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001707/1.067, allocations: 50.03 kB / 1.283 GB, free: 8.848 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001019/1.067, allocations: 33.44 kB / 1.283 GB, free: 8.828 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.066e-05/1.067, allocations: 0.5312 kB / 1.283 GB, free: 8.828 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.492e-05/1.067, allocations: 32.14 kB / 1.283 GB, free: 8.789 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=4): time 1.142e-06/1.067, allocations: 0.5 kB / 1.283 GB, free: 8.789 MB / 0.9981 GB Notification: Performance of matching and sorting (n=4): time 0.0003843/1.067, allocations: 105.6 kB / 1.283 GB, free: 8.734 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.098e-05/1.067, allocations: 78.94 kB / 1.283 GB, free: 8.641 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001504/1.068, allocations: 140 kB / 1.283 GB, free: 8.523 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.544e-05/1.068, allocations: 26.86 kB / 1.283 GB, free: 8.492 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 8.575e-05/1.068, allocations: 103.2 kB / 1.283 GB, free: 8.395 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.725e-05/1.068, allocations: 15.27 kB / 1.283 GB, free: 8.383 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.083e-05/1.068, allocations: 20.77 kB / 1.283 GB, free: 8.363 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001653/1.068, allocations: 326.5 kB / 1.284 GB, free: 8.039 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.287e-05/1.068, allocations: 28.78 kB / 1.284 GB, free: 8.027 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.225e-05/1.068, allocations: 38.41 kB / 1.284 GB, free: 8.004 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001487/1.068, allocations: 44.5 kB / 1.284 GB, free: 7.988 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.603e-06/1.068, allocations: 4.703 kB / 1.284 GB, free: 7.984 MB / 0.9981 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002189/1.068, allocations: 91.88 kB / 1.284 GB, free: 7.93 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/1.068, allocations: 5.5 kB / 1.284 GB, free: 7.93 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/1.068, allocations: 1.625 kB / 1.284 GB, free: 7.93 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/1.069, allocations: 0.6094 kB / 1.284 GB, free: 7.93 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001075/1.069, allocations: 17.48 kB / 1.284 GB, free: 7.922 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.765e-06/1.069, allocations: 4.734 kB / 1.284 GB, free: 7.918 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.178e-05/1.069, allocations: 10.27 kB / 1.284 GB, free: 7.918 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.897e-06/1.069, allocations: 1.188 kB / 1.284 GB, free: 7.918 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (chiSwi.hysteresis.y,$PRE.chiSwi.hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * 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.0001099/1.069, allocations: 120.4 kB / 1.284 GB, free: 7.797 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.291e-05/1.069, allocations: 8.203 kB / 1.284 GB, free: 7.793 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.684e-05/1.069, allocations: 10.98 kB / 1.284 GB, free: 7.777 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/1.069, allocations: 1.469 kB / 1.284 GB, free: 7.777 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.847e-06/1.069, allocations: 3.938 kB / 1.284 GB, free: 7.773 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/1.069, allocations: 1.844 kB / 1.284 GB, free: 7.773 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002369/1.069, allocations: 188.3 kB / 1.284 GB, free: 7.57 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/1.069, allocations: 0 / 1.284 GB, free: 7.57 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.396e-05/1.069, allocations: 10.12 kB / 1.284 GB, free: 7.57 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/1.069, allocations: 4.562 kB / 1.284 GB, free: 7.566 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.033e-05/1.069, allocations: 0.8438 kB / 1.284 GB, free: 7.566 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/1.069, allocations: 1.562 kB / 1.284 GB, free: 7.566 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/1.069, allocations: 4.453 kB / 1.284 GB, free: 7.562 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002862/1.07, allocations: 178.5 kB / 1.284 GB, free: 7.414 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.229e-05/1.07, allocations: 84.53 kB / 1.284 GB, free: 7.316 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.564e-05/1.07, allocations: 5.312 kB / 1.284 GB, free: 7.312 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001082/1.07, allocations: 14.42 kB / 1.284 GB, free: 7.309 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.838e-05/1.07, allocations: 12.19 kB / 1.284 GB, free: 7.305 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.993e-06/1.07, allocations: 2.062 kB / 1.284 GB, free: 7.305 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 8.025e-05/1.07, allocations: 104.3 kB / 1.285 GB, free: 7.223 MB / 0.9981 GB Notification: Performance of sort global known variables: time 8e-08/1.07, allocations: 0 / 1.285 GB, free: 7.223 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002314/1.07, allocations: 18.75 kB / 1.285 GB, free: 7.215 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: 1 (chiSwi.hysteresis.y) * Number of discrete states: 1 (chiSwi.hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0005874/1.071, allocations: 0.7186 MB / 1.285 GB, free: 6.535 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002276/1.071, allocations: 51.48 kB / 1.285 GB, free: 6.523 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/1.071, allocations: 0 / 1.285 GB, free: 6.523 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 8.347e-05/1.071, allocations: 23.88 kB / 1.285 GB, free: 6.52 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002565/1.071, allocations: 22.23 kB / 1.285 GB, free: 6.504 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001751/1.073, allocations: 1.464 MB / 1.287 GB, free: 5.223 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003238/1.073, allocations: 0.6907 MB / 1.287 GB, free: 4.527 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 4.345e-05/1.073, allocations: 9 kB / 1.287 GB, free: 4.523 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.731e-05/1.073, allocations: 29.12 kB / 1.287 GB, free: 4.5 MB / 0.9981 GB Notification: Performance of SimCode: time 3.01e-07/1.073, allocations: 0 / 1.287 GB, free: 4.5 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01857/1.092, allocations: 2.191 MB / 1.29 GB, free: 4.078 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.489/9.581, allocations: 2.781 kB / 1.29 GB, free: 4.078 MB / 0.9981 GB " [Timeout remaining time 290] (rm -f Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat --tempDir=temp_Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --stepSize=34.56 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 16.21743995998986] Failed to read output from testmodel.py, exit status != 0: 9.704771034012083 9.724871016 8.655770421 Calling exit ...