Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_maint_7_0_x_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/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.343/1.343, allocations: 252 MB / 267.3 MB, free: 10.84 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001005/0.001005, allocations: 175.5 kB / 327 MB, free: 2.09 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.421/1.421, allocations: 205.4 MB / 0.578 GB, free: 20.11 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007411/0.0007411, allocations: 87.75 kB / 0.6826 GB, free: 12.76 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003004/0.0003005, allocations: 9.062 kB / 0.7971 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1643/0.1646, allocations: 106.3 MB / 0.9009 GB, free: 63.4 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.00146/0.1661, allocations: 1.393 MB / 0.9023 GB, free: 61.99 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.000539/0.1667, allocations: 487.4 kB / 0.9028 GB, free: 61.51 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.609e-05/0.1667, allocations: 0 / 0.9028 GB, free: 61.51 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.685e-05/0.1667, allocations: 3.938 kB / 0.9028 GB, free: 61.5 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 7.88e-05/0.1668, allocations: 23.8 kB / 0.9028 GB, free: 61.48 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.000139/0.167, allocations: 27.97 kB / 0.9028 GB, free: 61.45 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 7.564e-05/0.167, allocations: 71.78 kB / 0.9029 GB, free: 61.38 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.537e-05/0.1671, allocations: 23.97 kB / 0.9029 GB, free: 61.36 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 8.158e-05/0.1672, allocations: 35.78 kB / 0.9029 GB, free: 61.32 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 6.181e-05/0.1673, allocations: 31.86 kB / 0.903 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.866e-05/0.1673, allocations: 0 / 0.903 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.425e-05/0.1674, allocations: 4 kB / 0.903 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.956e-05/0.1674, allocations: 11.92 kB / 0.903 GB, free: 61.28 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.836e-05/0.1674, allocations: 57.5 kB / 0.903 GB, free: 61.21 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 8.213e-05/0.1675, allocations: 75.73 kB / 0.9031 GB, free: 61.14 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.1675, allocations: 0 / 0.9031 GB, free: 61.14 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.112e-06/0.1675, allocations: 0 / 0.9031 GB, free: 61.14 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 3.677e-06/0.1675, allocations: 0 / 0.9031 GB, free: 61.14 MB / 0.6042 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.0003562/0.1679, allocations: 379.5 kB / 0.9035 GB, free: 60.72 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.106e-05/0.1679, allocations: 8.031 kB / 0.9035 GB, free: 60.71 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.577e-05/0.168, allocations: 38.75 kB / 0.9035 GB, free: 60.67 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.416e-05/0.168, allocations: 12.83 kB / 0.9035 GB, free: 60.66 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.689e-05/0.1681, allocations: 181.7 kB / 0.9037 GB, free: 60.44 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.616e-06/0.1681, allocations: 8.375 kB / 0.9037 GB, free: 60.43 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.194e-05/0.1681, allocations: 8.375 kB / 0.9037 GB, free: 60.43 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001637/0.1683, allocations: 95.5 kB / 0.9038 GB, free: 60.32 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.951e-06/0.1683, allocations: 0 / 0.9038 GB, free: 60.32 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.063e-05/0.1683, allocations: 7.938 kB / 0.9038 GB, free: 60.31 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-06/0.1683, allocations: 0 / 0.9038 GB, free: 60.31 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001412/0.1685, allocations: 67.89 kB / 0.9039 GB, free: 60.25 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003363/0.1688, allocations: 324.6 kB / 0.9042 GB, free: 59.88 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000125/0.1689, allocations: 62.59 kB / 0.9042 GB, free: 59.81 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.326e-05/0.169, allocations: 28.94 kB / 0.9043 GB, free: 59.78 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.429e-05/0.1691, allocations: 3.938 kB / 0.9043 GB, free: 59.77 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.545e-05/0.1691, allocations: 34.56 kB / 0.9043 GB, free: 59.73 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=4): time 1.042e-06/0.1691, allocations: 4 kB / 0.9043 GB, free: 59.73 MB / 0.6042 GB Notification: Performance of matching and sorting (n=4): time 0.0002905/0.1694, allocations: 113.5 kB / 0.9044 GB, free: 59.61 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.794e-05/0.1694, allocations: 81.05 kB / 0.9045 GB, free: 59.51 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.622e-05/0.1695, allocations: 130.1 kB / 0.9046 GB, free: 59.38 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.067e-05/0.1695, allocations: 29.7 kB / 0.9046 GB, free: 59.34 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 2.966e-05/0.1695, allocations: 96.05 kB / 0.9047 GB, free: 59.24 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.451e-05/0.1696, allocations: 19.83 kB / 0.9048 GB, free: 59.22 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.34e-06/0.1696, allocations: 0 / 0.9048 GB, free: 59.22 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 3.704e-05/0.1696, allocations: 318.8 kB / 0.9051 GB, free: 58.9 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.191e-05/0.1697, allocations: 23.98 kB / 0.9051 GB, free: 58.88 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.119e-05/0.1698, allocations: 49.69 kB / 0.9051 GB, free: 58.82 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001228/0.1699, allocations: 56.83 kB / 0.9052 GB, free: 58.77 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.1699, allocations: 0 / 0.9052 GB, free: 58.77 MB / 0.6042 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000168/0.1701, allocations: 97.55 kB / 0.9053 GB, free: 58.66 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 9.948e-06/0.1701, allocations: 8 kB / 0.9053 GB, free: 58.66 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.226e-06/0.1701, allocations: 0 / 0.9053 GB, free: 58.66 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.014e-05/0.1701, allocations: 0 / 0.9053 GB, free: 58.66 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.14e-05/0.1702, allocations: 11.98 kB / 0.9053 GB, free: 58.64 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.058e-06/0.1702, allocations: 0 / 0.9053 GB, free: 58.64 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.881e-05/0.1703, allocations: 23.92 kB / 0.9053 GB, free: 58.62 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.474e-06/0.1703, allocations: 4 kB / 0.9053 GB, free: 58.62 MB / 0.6042 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 ($PRE.chiSwi.hysteresis.y,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.372e-05/0.1704, allocations: 113.8 kB / 0.9054 GB, free: 58.5 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.638e-05/0.1704, allocations: 7.906 kB / 0.9054 GB, free: 58.49 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.318e-05/0.1704, allocations: 16.23 kB / 0.9055 GB, free: 58.47 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.1704, allocations: 0 / 0.9055 GB, free: 58.47 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.975e-06/0.1705, allocations: 0 / 0.9055 GB, free: 58.47 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.1705, allocations: 3.938 kB / 0.9055 GB, free: 58.46 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001176/0.1706, allocations: 185.6 kB / 0.9056 GB, free: 58.23 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.1706, allocations: 4.172 kB / 0.9056 GB, free: 58.23 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.848e-05/0.1707, allocations: 12 kB / 0.9057 GB, free: 58.22 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.502e-06/0.1707, allocations: 0 / 0.9057 GB, free: 58.22 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.356e-06/0.1707, allocations: 4.172 kB / 0.9057 GB, free: 58.21 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.1707, allocations: 4 kB / 0.9057 GB, free: 58.21 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.1707, allocations: 3.938 kB / 0.9057 GB, free: 58.21 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001792/0.1709, allocations: 203.2 kB / 0.9059 GB, free: 57.99 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 1.765e-05/0.1709, allocations: 85.02 kB / 0.9059 GB, free: 57.89 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.73e-05/0.1709, allocations: 0 / 0.9059 GB, free: 57.89 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001021/0.171, allocations: 15.98 kB / 0.906 GB, free: 57.88 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.038e-05/0.1711, allocations: 11.98 kB / 0.906 GB, free: 57.86 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.961e-06/0.1711, allocations: 3.938 kB / 0.906 GB, free: 57.86 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.55e-05/0.1711, allocations: 101.9 kB / 0.9061 GB, free: 57.76 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1711, allocations: 0 / 0.9061 GB, free: 57.76 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0001974/0.1713, allocations: 12 kB / 0.9061 GB, free: 57.75 MB / 0.6042 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.0003243/0.1717, allocations: 0.728 MB / 0.9068 GB, free: 57 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0001694/0.1719, allocations: 55.97 kB / 0.9068 GB, free: 56.94 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.1719, allocations: 4 kB / 0.9068 GB, free: 56.94 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 7.331e-05/0.1719, allocations: 27.98 kB / 0.9069 GB, free: 56.91 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002333/0.1722, allocations: 19.81 kB / 0.9069 GB, free: 56.89 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001067/0.1733, allocations: 1.481 MB / 0.9083 GB, free: 55.33 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.897e-05/0.1734, allocations: 0.6965 MB / 0.909 GB, free: 54.61 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 3.749e-05/0.1734, allocations: 0 / 0.909 GB, free: 54.61 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.652e-05/0.1735, allocations: 23.42 kB / 0.909 GB, free: 54.59 MB / 0.6042 GB Notification: Performance of SimCode: time 2.81e-07/0.1735, allocations: 0 / 0.909 GB, free: 54.59 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009471/0.1829, allocations: 1.762 MB / 0.9108 GB, free: 53.03 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001172/0.1831, allocations: 245.7 kB / 0.911 GB, free: 52.77 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.57/1.753, allocations: 0 / 0.911 GB, free: 52.77 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)