Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_8_0_0_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_0_0_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 8.0.0/package.mo): time 1.464/1.464, allocations: 287.4 MB / 302.6 MB, free: 8.223 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001516/0.001516, allocations: 178 kB / 371.1 MB, free: 10.82 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.188/1.188, allocations: 205.4 MB / 0.6298 GB, free: 10.6 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007733/0.0007734, allocations: 103 kB / 0.7431 GB, free: 6.566 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000341/0.0003411, allocations: 15.31 kB / 0.8662 GB, free: 140.7 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1673/0.1677, allocations: 115.3 MB / 0.9787 GB, free: 28.1 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.001432/0.1692, allocations: 1.373 MB / 0.9801 GB, free: 26.71 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0006035/0.1698, allocations: 457.1 kB / 0.9805 GB, free: 26.25 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.509e-05/0.1699, allocations: 0 / 0.9805 GB, free: 26.25 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.604e-05/0.1699, allocations: 3.938 kB / 0.9805 GB, free: 26.25 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 8.273e-05/0.17, allocations: 19.86 kB / 0.9805 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001506/0.1702, allocations: 15.98 kB / 0.9806 GB, free: 26.21 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 8.205e-05/0.1702, allocations: 75.7 kB / 0.9806 GB, free: 26.14 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 9.707e-05/0.1703, allocations: 20.27 kB / 0.9807 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 9.388e-05/0.1704, allocations: 27.86 kB / 0.9807 GB, free: 26.09 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 6.837e-05/0.1705, allocations: 39.83 kB / 0.9807 GB, free: 26.05 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.709e-05/0.1705, allocations: 0 / 0.9807 GB, free: 26.05 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 1.433e-05/0.1706, allocations: 4 kB / 0.9807 GB, free: 26.05 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.537e-05/0.1706, allocations: 7.984 kB / 0.9807 GB, free: 26.04 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 2.318e-05/0.1706, allocations: 45.58 kB / 0.9808 GB, free: 25.99 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 6.861e-05/0.1707, allocations: 51.83 kB / 0.9808 GB, free: 25.94 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.1707, allocations: 4 kB / 0.9808 GB, free: 25.94 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.683e-06/0.1707, allocations: 0 / 0.9808 GB, free: 25.94 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 3.717e-06/0.1707, allocations: 0 / 0.9808 GB, free: 25.94 MB / 0.6198 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.0003981/0.1711, allocations: 383.3 kB / 0.9812 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/0.1712, allocations: 8.031 kB / 0.9812 GB, free: 25.51 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.301e-05/0.1712, allocations: 38.73 kB / 0.9812 GB, free: 25.46 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.953e-05/0.1712, allocations: 8.844 kB / 0.9812 GB, free: 25.45 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001005/0.1713, allocations: 192.1 kB / 0.9814 GB, free: 25.23 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.118e-05/0.1714, allocations: 384 / 0.9814 GB, free: 25.23 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.255e-05/0.1714, allocations: 4.375 kB / 0.9814 GB, free: 25.22 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001747/0.1716, allocations: 99.5 kB / 0.9815 GB, free: 25.11 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.454e-06/0.1716, allocations: 0 / 0.9815 GB, free: 25.11 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.598e-06/0.1716, allocations: 3.938 kB / 0.9815 GB, free: 25.11 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.1716, allocations: 4 kB / 0.9815 GB, free: 25.11 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001584/0.1718, allocations: 63.89 kB / 0.9816 GB, free: 25.04 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003904/0.1722, allocations: 324.7 kB / 0.9819 GB, free: 24.68 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001183/0.1723, allocations: 58.59 kB / 0.982 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 7e-05/0.1724, allocations: 32.94 kB / 0.982 GB, free: 24.57 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.377e-05/0.1724, allocations: 7.984 kB / 0.982 GB, free: 24.57 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.646e-05/0.1724, allocations: 30.56 kB / 0.982 GB, free: 24.53 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=4): time 1.172e-06/0.1724, allocations: 4 kB / 0.982 GB, free: 24.52 MB / 0.6198 GB Notification: Performance of matching and sorting (n=4): time 0.0002989/0.1727, allocations: 113.6 kB / 0.9821 GB, free: 24.41 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.519e-05/0.1728, allocations: 77.11 kB / 0.9822 GB, free: 24.31 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.137e-05/0.1728, allocations: 139.6 kB / 0.9823 GB, free: 24.17 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.072e-05/0.1729, allocations: 25.7 kB / 0.9824 GB, free: 24.14 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.422e-05/0.1729, allocations: 96.08 kB / 0.9825 GB, free: 24.04 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.536e-05/0.1729, allocations: 15.8 kB / 0.9825 GB, free: 24.02 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.549e-06/0.1729, allocations: 0 / 0.9825 GB, free: 24.02 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 4.054e-05/0.173, allocations: 318.8 kB / 0.9828 GB, free: 23.7 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.347e-05/0.173, allocations: 31.97 kB / 0.9828 GB, free: 23.67 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.078e-05/0.1731, allocations: 45.7 kB / 0.9829 GB, free: 23.62 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001215/0.1733, allocations: 52.83 kB / 0.9829 GB, free: 23.57 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.1733, allocations: 0 / 0.9829 GB, free: 23.57 MB / 0.6198 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001663/0.1734, allocations: 105.5 kB / 0.983 GB, free: 23.46 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.257e-05/0.1735, allocations: 5.875 kB / 0.983 GB, free: 23.45 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.1735, allocations: 0 / 0.983 GB, free: 23.45 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.251e-05/0.1735, allocations: 4 kB / 0.983 GB, free: 23.45 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.405e-05/0.1736, allocations: 11.98 kB / 0.983 GB, free: 23.44 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.498e-06/0.1736, allocations: 0 / 0.983 GB, free: 23.44 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.473e-05/0.1737, allocations: 23.92 kB / 0.9831 GB, free: 23.41 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.862e-06/0.1737, allocations: 0 / 0.9831 GB, free: 23.41 MB / 0.6198 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 5.609e-05/0.1737, allocations: 113.8 kB / 0.9832 GB, free: 23.29 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.603e-05/0.1738, allocations: 7.906 kB / 0.9832 GB, free: 23.29 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.471e-05/0.1738, allocations: 12.23 kB / 0.9832 GB, free: 23.27 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.664e-06/0.1738, allocations: 4 kB / 0.9832 GB, free: 23.27 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.1738, allocations: 0 / 0.9832 GB, free: 23.27 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.1738, allocations: 7.938 kB / 0.9832 GB, free: 23.26 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001293/0.174, allocations: 189.6 kB / 0.9834 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.174, allocations: 8.125 kB / 0.9834 GB, free: 23.02 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.586e-05/0.174, allocations: 12 kB / 0.9834 GB, free: 23.01 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.1741, allocations: 0 / 0.9834 GB, free: 23.01 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.807e-06/0.1741, allocations: 3.984 kB / 0.9834 GB, free: 23 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.1741, allocations: 3.938 kB / 0.9834 GB, free: 23 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1741, allocations: 0 / 0.9834 GB, free: 23 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000179/0.1743, allocations: 191.4 kB / 0.9836 GB, free: 22.8 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.898e-05/0.1743, allocations: 81.05 kB / 0.9837 GB, free: 22.7 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.994e-05/0.1743, allocations: 8 kB / 0.9837 GB, free: 22.69 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001023/0.1744, allocations: 15.98 kB / 0.9837 GB, free: 22.68 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.006e-05/0.1745, allocations: 11.98 kB / 0.9837 GB, free: 22.66 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.971e-06/0.1745, allocations: 3.938 kB / 0.9837 GB, free: 22.66 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.517e-05/0.1745, allocations: 100.2 kB / 0.9838 GB, free: 22.56 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1745, allocations: 0 / 0.9838 GB, free: 22.56 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002111/0.1747, allocations: 19.89 kB / 0.9838 GB, free: 22.54 MB / 0.6198 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.0003335/0.1751, allocations: 0.7163 MB / 0.9845 GB, free: 21.8 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001743/0.1753, allocations: 55.97 kB / 0.9846 GB, free: 21.75 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.1753, allocations: 8 kB / 0.9846 GB, free: 21.74 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 7.185e-05/0.1754, allocations: 28.2 kB / 0.9846 GB, free: 21.71 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002497/0.1756, allocations: 15.92 kB / 0.9846 GB, free: 21.7 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000781/0.1764, allocations: 0.5916 MB / 0.9852 GB, free: 21.06 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.049e-05/0.1765, allocations: 0.6887 MB / 0.9859 GB, free: 20.34 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 4.169e-05/0.1766, allocations: 11.92 kB / 0.9859 GB, free: 20.33 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.454e-05/0.1766, allocations: 23.36 kB / 0.9859 GB, free: 20.31 MB / 0.6198 GB Notification: Performance of SimCode: time 2.21e-07/0.1766, allocations: 0 / 0.9859 GB, free: 20.31 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3432/0.5198, allocations: 1.712 MB / 0.9876 GB, free: 18.79 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001635/0.52, allocations: 220.5 kB / 0.9878 GB, free: 18.54 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.008/2.528, allocations: 0 / 0.9878 GB, free: 18.54 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)