Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_10_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.001247/0.001247, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001291/0.001291, allocations: 195.9 kB / 16.25 MB, free: 6.629 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.287/1.287, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.486/2.486, allocations: 437 MB / 0.7101 GB, free: 5.301 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001382, allocations: 63.91 kB / 0.8689 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6456/0.647, allocations: 151.6 MB / 1.017 GB, free: 2.711 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003108/0.6501, allocations: 1.729 MB / 1.019 GB, free: 0.9688 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0007463/0.6509, allocations: 455 kB / 1.019 GB, free: 0.5195 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.969e-05/0.651, allocations: 3.938 kB / 1.019 GB, free: 0.5156 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.086e-05/0.651, allocations: 3.938 kB / 1.019 GB, free: 0.5117 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 8.018e-05/0.6511, allocations: 11.86 kB / 1.019 GB, free: 0.5 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001826/0.6513, allocations: 27.97 kB / 1.019 GB, free: 484 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001075/0.6514, allocations: 79.78 kB / 1.019 GB, free: 404 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001236/0.6516, allocations: 27.89 kB / 1.019 GB, free: 376 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000117/0.6517, allocations: 39.78 kB / 1.019 GB, free: 336 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.776e-05/0.6518, allocations: 35.84 kB / 1.019 GB, free: 300 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.105e-05/0.6518, allocations: 8 kB / 1.019 GB, free: 292 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.665e-05/0.6518, allocations: 8 kB / 1.019 GB, free: 284 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.249e-05/0.6519, allocations: 19.92 kB / 1.019 GB, free: 264 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.703e-05/0.6519, allocations: 35.8 kB / 1.019 GB, free: 228 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001265/0.652, allocations: 82.02 kB / 1.019 GB, free: 148 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.6521, allocations: 0 / 1.019 GB, free: 148 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.193e-06/0.6521, allocations: 3.938 kB / 1.019 GB, free: 144 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.12e-06/0.6521, allocations: 0 / 1.019 GB, free: 144 kB / 0.7637 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.0005234/0.6526, allocations: 383.2 kB / 1.02 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.6527, allocations: 8.031 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.313e-05/0.6527, allocations: 42.75 kB / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.522e-05/0.6527, allocations: 12.75 kB / 1.02 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001351/0.6529, allocations: 184.1 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.565e-05/0.6529, allocations: 8.375 kB / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.417e-05/0.6529, allocations: 4.375 kB / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002312/0.6532, allocations: 91.5 kB / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.226e-06/0.6532, allocations: 0 / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.293e-05/0.6532, allocations: 0 / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.541e-06/0.6532, allocations: 4 kB / 1.02 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001644/0.6534, allocations: 55.89 kB / 1.02 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004946/0.6539, allocations: 320.6 kB / 1.02 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001434/0.654, allocations: 62.52 kB / 1.021 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.684e-05/0.6541, allocations: 28.94 kB / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.127e-05/0.6542, allocations: 4 kB / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.377e-05/0.6542, allocations: 30.56 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 1.152e-06/0.6542, allocations: 0 / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4): time 0.0003368/0.6545, allocations: 101.6 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.125e-05/0.6546, allocations: 85.11 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001016/0.6547, allocations: 131.1 kB / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.924e-05/0.6547, allocations: 33.64 kB / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.262e-05/0.6548, allocations: 88.14 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.225e-05/0.6548, allocations: 15.8 kB / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.767e-05/0.6549, allocations: 21.72 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.711e-05/0.655, allocations: 326.8 kB / 1.021 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.229e-05/0.6551, allocations: 19.98 kB / 1.021 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.458e-05/0.6552, allocations: 41.7 kB / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000135/0.6553, allocations: 48.83 kB / 1.021 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.6553, allocations: 0 / 1.021 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001929/0.6555, allocations: 85.61 kB / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/0.6555, allocations: 8 kB / 1.022 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.411e-06/0.6556, allocations: 0 / 1.022 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.09e-05/0.6556, allocations: 7.875 kB / 1.022 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001048/0.6557, allocations: 11.98 kB / 1.022 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.67e-06/0.6557, allocations: 0 / 1.022 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.406e-05/0.6558, allocations: 19.86 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.338e-05/0.6558, allocations: 4 kB / 1.022 GB, free: 13.64 MB / 0.7794 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 8.451e-05/0.6559, allocations: 117.8 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.255e-05/0.6559, allocations: 11.89 kB / 1.022 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.102e-05/0.656, allocations: 8.25 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.656, allocations: 4 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.656, allocations: 0 / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.818e-06/0.656, allocations: 3.938 kB / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001826/0.6562, allocations: 181.6 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.6562, allocations: 0 / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.547e-05/0.6563, allocations: 11.98 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.6563, allocations: 0 / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.107e-05/0.6563, allocations: 4 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.6563, allocations: 7.938 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.6563, allocations: 192 / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002338/0.6566, allocations: 187.3 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.998e-05/0.6566, allocations: 81.11 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.105e-05/0.6566, allocations: 0 / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001142/0.6568, allocations: 15.98 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.991e-05/0.6568, allocations: 11.98 kB / 1.022 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.384e-06/0.6568, allocations: 3.938 kB / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.892e-05/0.6569, allocations: 104.2 kB / 1.022 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6569, allocations: 0 / 1.022 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002319/0.6571, allocations: 15.91 kB / 1.022 GB, free: 12.8 MB / 0.7794 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.0004972/0.6576, allocations: 0.7124 MB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002101/0.6579, allocations: 51.97 kB / 1.023 GB, free: 12 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.6579, allocations: 0 / 1.023 GB, free: 12 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.304e-05/0.658, allocations: 36.19 kB / 1.023 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003034/0.6583, allocations: 14.48 kB / 1.023 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001508/0.6598, allocations: 1.45 MB / 1.025 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002289/0.66, allocations: 0.6924 MB / 1.025 GB, free: 9.711 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.486e-05/0.6601, allocations: 7.984 kB / 1.025 GB, free: 9.703 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.898e-05/0.6602, allocations: 27.42 kB / 1.025 GB, free: 9.676 MB / 0.7794 GB Notification: Performance of SimCode: time 3.2e-07/0.6602, allocations: 3.938 kB / 1.025 GB, free: 9.672 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01189/0.6721, allocations: 1.867 MB / 1.027 GB, free: 7.98 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000195/0.6723, allocations: 227.4 kB / 1.027 GB, free: 7.73 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.724/2.396, allocations: 0 / 1.027 GB, free: 7.73 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat --tempDir=temp_Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)