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.377/1.377, allocations: 252 MB / 267 MB, free: 10.96 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.0009524/0.0009522, allocations: 178.6 kB / 326.6 MB, free: 2.211 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.485/1.485, allocations: 205.4 MB / 0.5777 GB, free: 20.56 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.0006972/0.0006972, allocations: 93.19 kB / 0.6823 GB, free: 13.32 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003226/0.0003228, allocations: 7.688 kB / 0.7965 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1692/0.1695, allocations: 106.3 MB / 0.9003 GB, free: 64.16 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.001732/0.1713, allocations: 1.373 MB / 0.9017 GB, free: 62.78 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0006658/0.172, allocations: 471.7 kB / 0.9021 GB, free: 62.31 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.82e-05/0.1721, allocations: 0 / 0.9021 GB, free: 62.31 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.998e-05/0.1721, allocations: 7.875 kB / 0.9021 GB, free: 62.3 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 7.962e-05/0.1722, allocations: 11.88 kB / 0.9021 GB, free: 62.29 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001504/0.1724, allocations: 27.95 kB / 0.9021 GB, free: 62.26 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 8.283e-05/0.1724, allocations: 71.72 kB / 0.9022 GB, free: 62.19 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 8.644e-05/0.1725, allocations: 19.98 kB / 0.9022 GB, free: 62.17 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 9.152e-05/0.1726, allocations: 23.92 kB / 0.9023 GB, free: 62.15 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 7.041e-05/0.1727, allocations: 39.83 kB / 0.9023 GB, free: 62.11 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.731e-05/0.1727, allocations: 0 / 0.9023 GB, free: 62.11 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.436e-05/0.1728, allocations: 8 kB / 0.9023 GB, free: 62.1 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.228e-05/0.1728, allocations: 3.938 kB / 0.9023 GB, free: 62.1 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 2.328e-05/0.1728, allocations: 41.64 kB / 0.9023 GB, free: 62.05 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 7.421e-05/0.1729, allocations: 55.86 kB / 0.9024 GB, free: 62 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.1729, allocations: 0 / 0.9024 GB, free: 62 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.543e-06/0.1729, allocations: 0 / 0.9024 GB, free: 62 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.538e-06/0.1729, allocations: 0 / 0.9024 GB, free: 62 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.0004211/0.1733, allocations: 387.4 kB / 0.9028 GB, free: 61.57 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.442e-05/0.1734, allocations: 8.031 kB / 0.9028 GB, free: 61.56 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.291e-05/0.1734, allocations: 34.56 kB / 0.9028 GB, free: 61.52 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.205e-05/0.1735, allocations: 23.78 kB / 0.9028 GB, free: 61.5 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.491e-05/0.1736, allocations: 173.2 kB / 0.903 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.12e-05/0.1736, allocations: 0 / 0.903 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.219e-05/0.1736, allocations: 8 kB / 0.903 GB, free: 61.28 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001911/0.1738, allocations: 95.31 kB / 0.9031 GB, free: 61.18 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.033e-06/0.1738, allocations: 0 / 0.9031 GB, free: 61.18 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.229e-05/0.1738, allocations: 4 kB / 0.9031 GB, free: 61.17 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.1738, allocations: 4 kB / 0.9031 GB, free: 61.17 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000175/0.174, allocations: 55.95 kB / 0.9032 GB, free: 61.11 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000399/0.1744, allocations: 332.7 kB / 0.9035 GB, free: 60.74 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001321/0.1746, allocations: 54.56 kB / 0.9035 GB, free: 60.68 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.844e-05/0.1747, allocations: 32.94 kB / 0.9036 GB, free: 60.64 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.76e-05/0.1747, allocations: 0 / 0.9036 GB, free: 60.64 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.744e-05/0.1747, allocations: 38.55 kB / 0.9036 GB, free: 60.59 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=4): time 8.12e-07/0.1747, allocations: 0 / 0.9036 GB, free: 60.59 MB / 0.6042 GB Notification: Performance of matching and sorting (n=4): time 0.0003185/0.175, allocations: 121.5 kB / 0.9037 GB, free: 60.47 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.505e-05/0.1751, allocations: 81.05 kB / 0.9038 GB, free: 60.37 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.727e-05/0.1752, allocations: 130.1 kB / 0.9039 GB, free: 60.23 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.334e-05/0.1752, allocations: 25.7 kB / 0.9039 GB, free: 60.2 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.433e-05/0.1752, allocations: 96.05 kB / 0.904 GB, free: 60.11 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.686e-05/0.1752, allocations: 27.78 kB / 0.9041 GB, free: 60.08 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.35e-06/0.1752, allocations: 0 / 0.9041 GB, free: 60.08 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.085e-05/0.1753, allocations: 314.8 kB / 0.9044 GB, free: 59.76 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.851e-05/0.1754, allocations: 27.98 kB / 0.9044 GB, free: 59.73 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.992e-05/0.1755, allocations: 41.69 kB / 0.9044 GB, free: 59.69 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.63e-05/0.1756, allocations: 35.95 kB / 0.9045 GB, free: 59.65 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.512e-06/0.1756, allocations: 0 / 0.9045 GB, free: 59.65 MB / 0.6042 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001865/0.1758, allocations: 85.67 kB / 0.9045 GB, free: 59.56 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/0.1758, allocations: 14.61 kB / 0.9046 GB, free: 59.55 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.439e-06/0.1758, allocations: 4 kB / 0.9046 GB, free: 59.55 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.295e-05/0.1758, allocations: 0 / 0.9046 GB, free: 59.55 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001056/0.1759, allocations: 11.98 kB / 0.9046 GB, free: 59.54 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.172e-06/0.1759, allocations: 0 / 0.9046 GB, free: 59.54 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.541e-05/0.176, allocations: 23.83 kB / 0.9046 GB, free: 59.51 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.606e-06/0.176, allocations: 192 / 0.9046 GB, free: 59.51 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.044e-05/0.1761, allocations: 125.8 kB / 0.9047 GB, free: 59.38 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.709e-05/0.1761, allocations: 7.938 kB / 0.9047 GB, free: 59.37 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.876e-05/0.1762, allocations: 20.19 kB / 0.9047 GB, free: 59.35 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.1762, allocations: 0 / 0.9047 GB, free: 59.35 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.1762, allocations: 0 / 0.9047 GB, free: 59.35 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.245e-06/0.1762, allocations: 0 / 0.9047 GB, free: 59.35 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000131/0.1763, allocations: 189.5 kB / 0.9049 GB, free: 59.11 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.1764, allocations: 3.984 kB / 0.9049 GB, free: 59.11 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.248e-05/0.1764, allocations: 8 kB / 0.9049 GB, free: 59.1 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.1764, allocations: 4 kB / 0.9049 GB, free: 59.1 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.416e-06/0.1765, allocations: 3.984 kB / 0.9049 GB, free: 59.09 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.255e-06/0.1765, allocations: 7.953 kB / 0.9049 GB, free: 59.09 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1765, allocations: 0 / 0.9049 GB, free: 59.09 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001952/0.1767, allocations: 175.5 kB / 0.9051 GB, free: 58.9 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 1.994e-05/0.1767, allocations: 89.02 kB / 0.9052 GB, free: 58.79 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.023e-05/0.1767, allocations: 4 kB / 0.9052 GB, free: 58.79 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001104/0.1768, allocations: 15.98 kB / 0.9052 GB, free: 58.77 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.725e-05/0.1769, allocations: 19.81 kB / 0.9052 GB, free: 58.75 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.901e-06/0.1769, allocations: 0 / 0.9052 GB, free: 58.75 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.768e-05/0.1769, allocations: 100.5 kB / 0.9053 GB, free: 58.66 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.31e-07/0.177, allocations: 0 / 0.9053 GB, free: 58.66 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.000204/0.1772, allocations: 16 kB / 0.9053 GB, free: 58.64 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003671/0.1775, allocations: 0.7202 MB / 0.9061 GB, free: 57.89 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0001982/0.1777, allocations: 63.91 kB / 0.9061 GB, free: 57.83 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.1778, allocations: 0 / 0.9061 GB, free: 57.83 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 7.962e-05/0.1778, allocations: 27.98 kB / 0.9061 GB, free: 57.8 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002895/0.1781, allocations: 22.98 kB / 0.9062 GB, free: 57.79 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008462/0.179, allocations: 0.594 MB / 0.9067 GB, free: 57.15 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001212/0.1791, allocations: 0.6926 MB / 0.9074 GB, free: 56.43 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 4.837e-05/0.1792, allocations: 11.98 kB / 0.9074 GB, free: 56.42 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.61e-05/0.1792, allocations: 23.42 kB / 0.9075 GB, free: 56.4 MB / 0.6042 GB Notification: Performance of SimCode: time 2.61e-07/0.1793, allocations: 0 / 0.9075 GB, free: 56.4 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01211/0.1914, allocations: 1.718 MB / 0.9091 GB, free: 54.89 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001436/0.1916, allocations: 232.9 kB / 0.9094 GB, free: 54.64 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.5/1.691, allocations: 0 / 0.9094 GB, free: 54.64 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)