Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_8_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.001189/0.001189, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001196/0.001196, allocations: 192.7 kB / 16.13 MB, free: 6.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.206/1.206, allocations: 205.1 MB / 222 MB, free: 4.742 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.6/1.6, allocations: 292.3 MB / 0.5484 GB, free: 13.67 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001294, allocations: 65.12 kB / 0.6709 GB, free: 26.41 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1592/0.1605, allocations: 114.5 MB / 0.7828 GB, free: 13.91 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002427/0.163, allocations: 1.732 MB / 0.7845 GB, free: 12.16 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0005921/0.1636, allocations: 491.7 kB / 0.785 GB, free: 11.67 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.603e-05/0.1636, allocations: 0 / 0.785 GB, free: 11.67 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.384e-05/0.1637, allocations: 7.922 kB / 0.785 GB, free: 11.66 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 6.666e-05/0.1638, allocations: 7.875 kB / 0.785 GB, free: 11.65 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001367/0.1639, allocations: 27.95 kB / 0.785 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 8.3e-05/0.164, allocations: 79.72 kB / 0.7851 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.009e-05/0.1641, allocations: 24.28 kB / 0.7851 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.339e-05/0.1642, allocations: 31.84 kB / 0.7851 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.785e-05/0.1643, allocations: 39.83 kB / 0.7852 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.81e-05/0.1643, allocations: 7.938 kB / 0.7852 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.37e-05/0.1643, allocations: 0 / 0.7852 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.09e-05/0.1643, allocations: 11.98 kB / 0.7852 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.651e-05/0.1644, allocations: 27.81 kB / 0.7852 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 9.444e-05/0.1645, allocations: 83.69 kB / 0.7853 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.1645, allocations: 4 kB / 0.7853 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of FrontEnd: time 6.31e-07/0.1645, allocations: 0 / 0.7853 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.218e-06/0.1645, allocations: 0 / 0.7853 GB, free: 11.32 MB / 0.6075 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.0004462/0.1649, allocations: 399.1 kB / 0.7857 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.216e-05/0.165, allocations: 8.031 kB / 0.7857 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.816e-05/0.165, allocations: 30.75 kB / 0.7857 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.17e-05/0.165, allocations: 16.84 kB / 0.7857 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001057/0.1652, allocations: 176.2 kB / 0.7859 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.979e-06/0.1652, allocations: 8.375 kB / 0.7859 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.498e-05/0.1652, allocations: 8.359 kB / 0.7859 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001848/0.1654, allocations: 95.44 kB / 0.786 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.57e-06/0.1654, allocations: 3.938 kB / 0.786 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.067e-05/0.1654, allocations: 0 / 0.786 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.1654, allocations: 4 kB / 0.786 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001519/0.1656, allocations: 47.97 kB / 0.7861 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003994/0.166, allocations: 332.6 kB / 0.7864 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001274/0.1661, allocations: 50.55 kB / 0.7864 GB, free: 10 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.507e-05/0.1662, allocations: 36.97 kB / 0.7865 GB, free: 9.961 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.415e-05/0.1662, allocations: 0 / 0.7865 GB, free: 9.961 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.878e-05/0.1663, allocations: 34.56 kB / 0.7865 GB, free: 9.918 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=4): time 8.81e-07/0.1663, allocations: 0 / 0.7865 GB, free: 9.918 MB / 0.6075 GB Notification: Performance of matching and sorting (n=4): time 0.0003011/0.1666, allocations: 101.5 kB / 0.7866 GB, free: 9.812 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.69e-05/0.1666, allocations: 77.11 kB / 0.7867 GB, free: 9.719 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.05e-05/0.1667, allocations: 126.1 kB / 0.7868 GB, free: 9.586 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.842e-05/0.1667, allocations: 37.69 kB / 0.7868 GB, free: 9.543 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.459e-05/0.1668, allocations: 99.98 kB / 0.7869 GB, free: 9.441 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.601e-05/0.1668, allocations: 7.891 kB / 0.7869 GB, free: 9.434 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.926e-05/0.1668, allocations: 17.72 kB / 0.7869 GB, free: 9.41 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.895e-05/0.1669, allocations: 330.8 kB / 0.7873 GB, free: 9.078 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.663e-05/0.167, allocations: 23.92 kB / 0.7873 GB, free: 9.055 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.678e-05/0.1671, allocations: 41.7 kB / 0.7873 GB, free: 9.008 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001245/0.1672, allocations: 48.83 kB / 0.7874 GB, free: 8.957 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-06/0.1672, allocations: 0 / 0.7874 GB, free: 8.957 MB / 0.6075 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001915/0.1674, allocations: 81.58 kB / 0.7874 GB, free: 8.871 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.008e-05/0.1674, allocations: 4 kB / 0.7874 GB, free: 8.867 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.436e-06/0.1675, allocations: 0 / 0.7874 GB, free: 8.867 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.138e-06/0.1675, allocations: 8.031 kB / 0.7875 GB, free: 8.859 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.338e-05/0.1676, allocations: 11.92 kB / 0.7875 GB, free: 8.848 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.26e-06/0.1676, allocations: 0 / 0.7875 GB, free: 8.848 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.915e-05/0.1677, allocations: 23.86 kB / 0.7875 GB, free: 8.824 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.993e-06/0.1677, allocations: 0 / 0.7875 GB, free: 8.824 MB / 0.6075 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.774e-05/0.1677, allocations: 117.8 kB / 0.7876 GB, free: 8.699 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.958e-05/0.1678, allocations: 4.094 kB / 0.7876 GB, free: 8.695 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.784e-05/0.1678, allocations: 16.23 kB / 0.7876 GB, free: 8.672 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.1678, allocations: 4 kB / 0.7876 GB, free: 8.668 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.1678, allocations: 4 kB / 0.7876 GB, free: 8.664 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/0.1678, allocations: 3.938 kB / 0.7876 GB, free: 8.66 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000155/0.168, allocations: 185.6 kB / 0.7878 GB, free: 8.43 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.168, allocations: 0 / 0.7878 GB, free: 8.43 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.519e-05/0.1681, allocations: 11.98 kB / 0.7878 GB, free: 8.418 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.1681, allocations: 0 / 0.7878 GB, free: 8.418 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.022e-05/0.1681, allocations: 4 kB / 0.7878 GB, free: 8.414 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.1681, allocations: 3.938 kB / 0.7878 GB, free: 8.41 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.82e-07/0.1681, allocations: 0 / 0.7878 GB, free: 8.41 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002014/0.1683, allocations: 187.5 kB / 0.788 GB, free: 8.211 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.692e-05/0.1684, allocations: 92.98 kB / 0.7881 GB, free: 8.102 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.944e-05/0.1684, allocations: 0 / 0.7881 GB, free: 8.102 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001049/0.1685, allocations: 11.98 kB / 0.7881 GB, free: 8.09 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.163e-05/0.1686, allocations: 7.984 kB / 0.7881 GB, free: 8.082 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.755e-06/0.1686, allocations: 7.938 kB / 0.7881 GB, free: 8.074 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.331e-05/0.1686, allocations: 106.5 kB / 0.7882 GB, free: 7.973 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1686, allocations: 0 / 0.7882 GB, free: 7.973 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002201/0.1689, allocations: 16 kB / 0.7882 GB, free: 7.957 MB / 0.6075 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.0004196/0.1693, allocations: 0.7084 MB / 0.7889 GB, free: 7.223 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0001711/0.1695, allocations: 51.97 kB / 0.789 GB, free: 7.172 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.1695, allocations: 0 / 0.789 GB, free: 7.172 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 7.448e-05/0.1695, allocations: 27.98 kB / 0.789 GB, free: 7.145 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000244/0.1698, allocations: 11.92 kB / 0.789 GB, free: 7.133 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001283/0.1711, allocations: 1.458 MB / 0.7904 GB, free: 5.598 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001876/0.1713, allocations: 0.6887 MB / 0.7911 GB, free: 4.883 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.125e-05/0.1713, allocations: 4 kB / 0.7911 GB, free: 4.879 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.935e-05/0.1714, allocations: 23.42 kB / 0.7911 GB, free: 4.855 MB / 0.6075 GB Notification: Performance of SimCode: time 2.81e-07/0.1714, allocations: 0 / 0.7911 GB, free: 4.855 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.128/1.299, allocations: 1.809 MB / 0.7929 GB, free: 3.203 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000212/1.299, allocations: 229.8 kB / 0.7931 GB, free: 2.949 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.486/3.786, allocations: 3.688 kB / 0.7931 GB, free: 2.949 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)