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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001335/0.001335, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001361/0.001361, allocations: 189.6 kB / 16.25 MB, free: 6.637 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.292/1.292, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.168/2.168, allocations: 390.3 MB / 0.6644 GB, free: 0.5469 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 63.89 kB / 0.8122 GB, free: 14.64 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5503/0.5516, allocations: 140.4 MB / 0.9492 GB, free: 9.195 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.0022/0.5538, allocations: 1.72 MB / 0.9509 GB, free: 7.848 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005031/0.5544, allocations: 450.8 kB / 0.9514 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.086e-05/0.5544, allocations: 5.406 kB / 0.9514 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.84e-05/0.5544, allocations: 0 / 0.9514 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.736e-05/0.5545, allocations: 14.58 kB / 0.9514 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001416/0.5547, allocations: 23.66 kB / 0.9514 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.322e-05/0.5548, allocations: 84.09 kB / 0.9515 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001038/0.5549, allocations: 38.33 kB / 0.9515 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.584e-05/0.555, allocations: 37.55 kB / 0.9516 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.89e-05/0.555, allocations: 33.5 kB / 0.9516 GB, free: 7.336 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.877e-05/0.5551, allocations: 7.375 kB / 0.9516 GB, free: 7.336 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.492e-05/0.5551, allocations: 6.875 kB / 0.9516 GB, free: 7.336 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.947e-05/0.5551, allocations: 19.42 kB / 0.9516 GB, free: 7.32 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.342e-05/0.5551, allocations: 39.22 kB / 0.9517 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.81e-05/0.5552, allocations: 72.59 kB / 0.9517 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.5552, allocations: 0 / 0.9517 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.382e-06/0.5552, allocations: 0 / 0.9517 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.089e-06/0.5552, allocations: 9.141 kB / 0.9517 GB, free: 7.23 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.0004012/0.5557, allocations: 386.1 kB / 0.9521 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.224e-05/0.5557, allocations: 9.469 kB / 0.9521 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.02e-05/0.5557, allocations: 43.94 kB / 0.9522 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.968e-05/0.5558, allocations: 10.09 kB / 0.9522 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.347e-05/0.5558, allocations: 184.7 kB / 0.9523 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.107e-05/0.5559, allocations: 6.844 kB / 0.9523 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.134e-05/0.5559, allocations: 3.094 kB / 0.9523 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001733/0.5561, allocations: 99.94 kB / 0.9524 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.763e-06/0.5561, allocations: 0 / 0.9524 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.067e-05/0.5561, allocations: 1.5 kB / 0.9524 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.539e-06/0.5561, allocations: 1.344 kB / 0.9524 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001406/0.5562, allocations: 50.55 kB / 0.9525 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003526/0.5566, allocations: 331.1 kB / 0.9528 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001185/0.5567, allocations: 54.48 kB / 0.9529 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.99e-05/0.5568, allocations: 25.34 kB / 0.9529 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.465e-05/0.5568, allocations: 5.031 kB / 0.9529 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.582e-05/0.5569, allocations: 35.59 kB / 0.9529 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.062e-06/0.5569, allocations: 0 / 0.9529 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4): time 0.0002903/0.5572, allocations: 99.05 kB / 0.953 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.904e-05/0.5572, allocations: 82.55 kB / 0.9531 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.228e-05/0.5573, allocations: 125.9 kB / 0.9532 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.225e-05/0.5573, allocations: 30.89 kB / 0.9532 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.306e-05/0.5573, allocations: 95.2 kB / 0.9533 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.608e-05/0.5573, allocations: 22.11 kB / 0.9534 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.455e-05/0.5574, allocations: 18.03 kB / 0.9534 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.365e-05/0.5574, allocations: 325 kB / 0.9537 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.57e-05/0.5575, allocations: 20.33 kB / 0.9537 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.189e-05/0.5576, allocations: 36.92 kB / 0.9537 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001219/0.5577, allocations: 52.42 kB / 0.9538 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.5577, allocations: 1.75 kB / 0.9538 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001682/0.5579, allocations: 85.95 kB / 0.9539 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.129e-05/0.5579, allocations: 5.969 kB / 0.9539 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.367e-06/0.5579, allocations: 0 / 0.9539 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.037e-05/0.5579, allocations: 3.984 kB / 0.9539 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.204e-05/0.558, allocations: 6.594 kB / 0.9539 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.136e-05/0.5581, allocations: 5.031 kB / 0.9539 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.882e-05/0.5581, allocations: 19.42 kB / 0.9539 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.704e-06/0.5581, allocations: 5.312 kB / 0.9539 GB, free: 5.09 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 5.466e-05/0.5582, allocations: 121.6 kB / 0.954 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.807e-05/0.5582, allocations: 7.75 kB / 0.954 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.27e-05/0.5583, allocations: 9.562 kB / 0.954 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-06/0.5583, allocations: 1.031 kB / 0.9541 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.5583, allocations: 4.766 kB / 0.9541 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.5583, allocations: 7.938 kB / 0.9541 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001273/0.5584, allocations: 189 kB / 0.9542 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-06/0.5584, allocations: 192 / 0.9542 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.875e-05/0.5585, allocations: 18.64 kB / 0.9543 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.5585, allocations: 0 / 0.9543 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.766e-06/0.5585, allocations: 1.094 kB / 0.9543 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.5585, allocations: 0 / 0.9543 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.5585, allocations: 1.125 kB / 0.9543 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001826/0.5587, allocations: 182 kB / 0.9544 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.83e-05/0.5587, allocations: 83.98 kB / 0.9545 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.977e-05/0.5588, allocations: 1.625 kB / 0.9545 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001039/0.5589, allocations: 9.359 kB / 0.9545 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.983e-05/0.5589, allocations: 8.953 kB / 0.9545 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.833e-06/0.5589, allocations: 9.281 kB / 0.9545 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.769e-05/0.559, allocations: 101.1 kB / 0.9546 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of sort global known variables: time 6.31e-07/0.559, allocations: 4 kB / 0.9546 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002224/0.5592, allocations: 22.62 kB / 0.9547 GB, free: 4.332 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.0003284/0.5595, allocations: 0.7046 MB / 0.9554 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001854/0.5597, allocations: 54.31 kB / 0.9554 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.5597, allocations: 3.938 kB / 0.9554 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.747e-05/0.5598, allocations: 32.91 kB / 0.9554 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002478/0.5601, allocations: 8.578 kB / 0.9554 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001109/0.5612, allocations: 1.444 MB / 0.9569 GB, free: 2.266 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.388e-05/0.5613, allocations: 0.6936 MB / 0.9575 GB, free: 1.559 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.008e-05/0.5613, allocations: 2.312 kB / 0.9575 GB, free: 1.559 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.899e-05/0.5614, allocations: 26.98 kB / 0.9576 GB, free: 1.535 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.5614, allocations: 0 / 0.9576 GB, free: 1.535 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.262/1.823, allocations: 1.873 MB / 0.9594 GB, free: 0.6484 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001641/1.823, allocations: 234.7 kB / 0.9596 GB, free: 400 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.595/3.418, allocations: 0 / 0.9596 GB, free: 400 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)