Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001215/0.001215, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001193/0.001193, allocations: 193.8 kB / 16.14 MB, free: 6.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.229/1.229, allocations: 222.9 MB / 239.8 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.203/2.203, allocations: 390.2 MB / 0.6643 GB, free: 0.6406 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 63.91 kB / 0.812 GB, free: 14.82 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5098/0.511, allocations: 140.4 MB / 0.949 GB, free: 9.188 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002131/0.5132, allocations: 1.73 MB / 0.9507 GB, free: 7.828 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0004668/0.5137, allocations: 450.1 kB / 0.9512 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.652e-05/0.5137, allocations: 1.125 kB / 0.9512 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.252e-05/0.5138, allocations: 7.922 kB / 0.9512 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.336e-05/0.5138, allocations: 10.53 kB / 0.9512 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001239/0.514, allocations: 22.72 kB / 0.9512 GB, free: 7.441 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.39e-05/0.514, allocations: 79.97 kB / 0.9513 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.854e-05/0.5141, allocations: 25.44 kB / 0.9513 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.807e-05/0.5142, allocations: 45.41 kB / 0.9513 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.737e-05/0.5143, allocations: 30.97 kB / 0.9514 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.891e-05/0.5143, allocations: 2.281 kB / 0.9514 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.45e-05/0.5143, allocations: 4.094 kB / 0.9514 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.012e-05/0.5143, allocations: 21.92 kB / 0.9514 GB, free: 7.309 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.465e-05/0.5144, allocations: 32.61 kB / 0.9514 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.837e-05/0.5145, allocations: 74.91 kB / 0.9515 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.5145, allocations: 5.156 kB / 0.9515 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of FrontEnd: time 6.21e-07/0.5145, allocations: 0 / 0.9515 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.306e-06/0.5145, allocations: 0 / 0.9515 GB, free: 7.227 MB / 0.7169 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.0003795/0.5149, allocations: 391.1 kB / 0.9519 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.062e-05/0.5149, allocations: 9.031 kB / 0.9519 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.584e-05/0.5149, allocations: 41.34 kB / 0.9519 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.619e-05/0.515, allocations: 8.938 kB / 0.9519 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.602e-05/0.5151, allocations: 178.5 kB / 0.9521 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.001e-05/0.5151, allocations: 15.11 kB / 0.9521 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.159e-05/0.5151, allocations: 2.938 kB / 0.9521 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001656/0.5153, allocations: 91.94 kB / 0.9522 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.35e-06/0.5153, allocations: 0 / 0.9522 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.868e-06/0.5153, allocations: 1.688 kB / 0.9522 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.677e-06/0.5153, allocations: 5.344 kB / 0.9522 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001395/0.5154, allocations: 49.81 kB / 0.9523 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003314/0.5158, allocations: 328.2 kB / 0.9526 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001103/0.5159, allocations: 57.19 kB / 0.9526 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.473e-05/0.516, allocations: 25.84 kB / 0.9527 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.166e-05/0.516, allocations: 1.062 kB / 0.9527 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.419e-05/0.516, allocations: 39.77 kB / 0.9527 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 9.62e-07/0.516, allocations: 0 / 0.9527 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4): time 0.0002718/0.5163, allocations: 94.81 kB / 0.9528 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.06e-05/0.5163, allocations: 78.86 kB / 0.9529 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.647e-05/0.5164, allocations: 130.4 kB / 0.953 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.015e-05/0.5164, allocations: 26.98 kB / 0.953 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.879e-05/0.5164, allocations: 100.2 kB / 0.9531 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.5e-05/0.5165, allocations: 17.16 kB / 0.9531 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.432e-05/0.5165, allocations: 25.8 kB / 0.9532 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.275e-05/0.5165, allocations: 317.6 kB / 0.9535 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.206e-05/0.5166, allocations: 28.8 kB / 0.9535 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.095e-05/0.5167, allocations: 41.53 kB / 0.9535 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001193/0.5168, allocations: 47.56 kB / 0.9536 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-06/0.5168, allocations: 0 / 0.9536 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001648/0.517, allocations: 86.91 kB / 0.9537 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 9.909e-06/0.517, allocations: 9.219 kB / 0.9537 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.206e-06/0.517, allocations: 5.125 kB / 0.9537 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.636e-06/0.517, allocations: 0 / 0.9537 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.885e-05/0.5171, allocations: 14.77 kB / 0.9537 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.649e-06/0.5171, allocations: 1.844 kB / 0.9537 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.335e-05/0.5172, allocations: 17.61 kB / 0.9537 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.274e-06/0.5172, allocations: 1.062 kB / 0.9537 GB, free: 5.086 MB / 0.7169 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 6.252e-05/0.5173, allocations: 118.8 kB / 0.9538 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.962e-05/0.5173, allocations: 11.41 kB / 0.9538 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.346e-05/0.5173, allocations: 10.75 kB / 0.9538 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.243e-06/0.5174, allocations: 0 / 0.9538 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.107e-06/0.5174, allocations: 9.156 kB / 0.9538 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.5174, allocations: 3.938 kB / 0.9538 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001208/0.5175, allocations: 179.6 kB / 0.954 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.5175, allocations: 1.344 kB / 0.954 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.973e-05/0.5176, allocations: 10.8 kB / 0.954 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.5176, allocations: 0 / 0.954 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.546e-06/0.5176, allocations: 1.625 kB / 0.954 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.5176, allocations: 7.984 kB / 0.954 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.5176, allocations: 0 / 0.954 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001738/0.5178, allocations: 182.8 kB / 0.9542 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.71e-05/0.5178, allocations: 79.23 kB / 0.9543 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.994e-05/0.5178, allocations: 9.219 kB / 0.9543 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001002/0.5179, allocations: 10.61 kB / 0.9543 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.804e-05/0.518, allocations: 12.27 kB / 0.9543 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.001e-06/0.518, allocations: 4.906 kB / 0.9543 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.761e-05/0.518, allocations: 101.8 kB / 0.9544 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.518, allocations: 0 / 0.9544 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002158/0.5183, allocations: 15.75 kB / 0.9544 GB, free: 4.344 MB / 0.7169 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.000306/0.5186, allocations: 0.719 MB / 0.9551 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001608/0.5187, allocations: 50.09 kB / 0.9552 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.5187, allocations: 1.719 kB / 0.9552 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.066e-05/0.5188, allocations: 23.58 kB / 0.9552 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002325/0.5191, allocations: 11.28 kB / 0.9552 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001047/0.5201, allocations: 1.449 MB / 0.9566 GB, free: 2.273 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.551e-05/0.5202, allocations: 0.6936 MB / 0.9573 GB, free: 1.566 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.917e-05/0.5203, allocations: 6.297 kB / 0.9573 GB, free: 1.562 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.481e-05/0.5203, allocations: 24.5 kB / 0.9573 GB, free: 1.543 MB / 0.7169 GB Notification: Performance of SimCode: time 3.01e-07/0.5203, allocations: 1.062 kB / 0.9573 GB, free: 1.543 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0101/0.5304, allocations: 1.811 MB / 0.9591 GB, free: 0.6758 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001404/0.5306, allocations: 231.5 kB / 0.9593 GB, free: 432 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.585/2.116, allocations: 0 / 0.9593 GB, free: 432 kB / 0.7169 GB (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)