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.001853/0.001853, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001831/0.001831, allocations: 193.9 kB / 16.53 MB, free: 6.699 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.291/1.291, allocations: 222.9 MB / 240.2 MB, free: 4.406 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.307/2.307, allocations: 390.3 MB / 0.6647 GB, free: 496 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 63.89 kB / 0.8127 GB, free: 14.38 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6696/0.6709, allocations: 140.4 MB / 0.9497 GB, free: 9.133 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002888/0.6738, allocations: 1.669 MB / 0.9514 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006567/0.6745, allocations: 448.6 kB / 0.9518 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.562e-05/0.6745, allocations: 1.375 kB / 0.9518 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.638e-05/0.6746, allocations: 11.88 kB / 0.9518 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.054e-05/0.6747, allocations: 18.59 kB / 0.9518 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001747/0.6749, allocations: 30.66 kB / 0.9518 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001096/0.675, allocations: 80.09 kB / 0.9519 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001429/0.6751, allocations: 31.2 kB / 0.9519 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.653e-05/0.6752, allocations: 37.02 kB / 0.952 GB, free: 7.32 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.712e-05/0.6753, allocations: 35.28 kB / 0.952 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.228e-05/0.6753, allocations: 5.688 kB / 0.952 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 2.043e-05/0.6754, allocations: 8.125 kB / 0.952 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.781e-05/0.6754, allocations: 17.27 kB / 0.952 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.099e-05/0.6755, allocations: 44.94 kB / 0.9521 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001253/0.6756, allocations: 80.2 kB / 0.9522 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.758e-06/0.6756, allocations: 0 / 0.9522 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.162e-06/0.6756, allocations: 0 / 0.9522 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.42e-06/0.6756, allocations: 1.469 kB / 0.9522 GB, free: 7.188 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.000451/0.6761, allocations: 390.9 kB / 0.9525 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.6761, allocations: 9.25 kB / 0.9525 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.942e-05/0.6761, allocations: 36.27 kB / 0.9526 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.217e-05/0.6762, allocations: 8.938 kB / 0.9526 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.849e-05/0.6763, allocations: 182.4 kB / 0.9528 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.264e-05/0.6763, allocations: 5.625 kB / 0.9528 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.483e-05/0.6763, allocations: 3.5 kB / 0.9528 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001844/0.6765, allocations: 99.78 kB / 0.9529 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.6765, allocations: 3.938 kB / 0.9529 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.216e-05/0.6765, allocations: 1.156 kB / 0.9529 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.579e-06/0.6766, allocations: 1.562 kB / 0.9529 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001518/0.6767, allocations: 55.05 kB / 0.9529 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003908/0.6771, allocations: 338.7 kB / 0.9532 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001247/0.6772, allocations: 45.88 kB / 0.9533 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.403e-05/0.6773, allocations: 30.59 kB / 0.9533 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.625e-05/0.6773, allocations: 0 / 0.9533 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.716e-05/0.6774, allocations: 39.97 kB / 0.9534 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 7.62e-07/0.6774, allocations: 0 / 0.9534 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4): time 0.0003008/0.6777, allocations: 99.2 kB / 0.9535 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.015e-05/0.6777, allocations: 77.11 kB / 0.9535 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.73e-05/0.6778, allocations: 128.3 kB / 0.9536 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.212e-05/0.6778, allocations: 31.02 kB / 0.9537 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.674e-05/0.6779, allocations: 99.23 kB / 0.9538 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.769e-05/0.6779, allocations: 13.7 kB / 0.9538 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.805e-05/0.6779, allocations: 18.56 kB / 0.9538 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.6e-05/0.678, allocations: 325.3 kB / 0.9541 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.734e-05/0.6781, allocations: 19.77 kB / 0.9541 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.948e-05/0.6781, allocations: 36.86 kB / 0.9542 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001382/0.6783, allocations: 57.14 kB / 0.9542 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.6783, allocations: 0 / 0.9542 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000181/0.6785, allocations: 83.36 kB / 0.9543 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.6785, allocations: 4.938 kB / 0.9543 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.6785, allocations: 3.984 kB / 0.9543 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.6785, allocations: 1.625 kB / 0.9543 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001006/0.6786, allocations: 6.594 kB / 0.9543 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.6787, allocations: 3.984 kB / 0.9543 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.778e-05/0.6787, allocations: 23.23 kB / 0.9543 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.738e-06/0.6788, allocations: 9.359 kB / 0.9544 GB, free: 5.043 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.651e-05/0.6788, allocations: 122.6 kB / 0.9545 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.024e-05/0.6789, allocations: 6.625 kB / 0.9545 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.927e-05/0.6789, allocations: 11.09 kB / 0.9545 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-06/0.6789, allocations: 0 / 0.9545 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.616e-06/0.6789, allocations: 0 / 0.9545 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.6789, allocations: 5.375 kB / 0.9545 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001642/0.6791, allocations: 192.2 kB / 0.9547 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.6791, allocations: 4 kB / 0.9547 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.867e-05/0.6792, allocations: 11.14 kB / 0.9547 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.6792, allocations: 0 / 0.9547 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.736e-06/0.6792, allocations: 4.875 kB / 0.9547 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.173e-06/0.6792, allocations: 3.938 kB / 0.9547 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.6792, allocations: 1.094 kB / 0.9547 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001897/0.6794, allocations: 186.1 kB / 0.9549 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.36e-05/0.6794, allocations: 79.67 kB / 0.955 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.496e-05/0.6795, allocations: 5.125 kB / 0.955 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001117/0.6796, allocations: 10.23 kB / 0.955 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.735e-05/0.6796, allocations: 12.02 kB / 0.955 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.971e-06/0.6797, allocations: 4.844 kB / 0.955 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.166e-05/0.6797, allocations: 102.5 kB / 0.9551 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6797, allocations: 0 / 0.9551 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002225/0.6799, allocations: 22.56 kB / 0.9551 GB, free: 4.285 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.0003575/0.6803, allocations: 0.7007 MB / 0.9558 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001916/0.6805, allocations: 54.53 kB / 0.9558 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.6805, allocations: 4 kB / 0.9558 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.549e-05/0.6806, allocations: 31.69 kB / 0.9559 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002691/0.6809, allocations: 8.906 kB / 0.9559 GB, free: 3.562 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001191/0.6821, allocations: 1.431 MB / 0.9573 GB, free: 2.238 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001057/0.6822, allocations: 0.6891 MB / 0.958 GB, free: 1.535 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.917e-05/0.6822, allocations: 7.203 kB / 0.958 GB, free: 1.531 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.267e-05/0.6823, allocations: 26.42 kB / 0.958 GB, free: 1.508 MB / 0.7169 GB Notification: Performance of SimCode: time 2.61e-07/0.6823, allocations: 0 / 0.958 GB, free: 1.508 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0168/0.6991, allocations: 2.026 MB / 0.96 GB, free: 484 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.112/7.811, allocations: 8.953 kB / 0.96 GB, free: 476 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)