Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.51/1.51, allocations: 288.4 MB / 303.6 MB, free: 8.121 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.0008614/0.0008615, allocations: 183 kB / 372.3 MB, free: 10.14 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.148/1.148, allocations: 205.4 MB / 0.631 GB, free: 9.895 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.0006894/0.0006894, allocations: 94.33 kB / 0.7444 GB, free: 5.781 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003488/0.0003489, allocations: 11 kB / 0.8676 GB, free: 141.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1577/0.1581, allocations: 115.3 MB / 0.9802 GB, free: 27.24 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.001484/0.1596, allocations: 1.449 MB / 0.9816 GB, free: 25.78 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0009264/0.1605, allocations: 0.82 MB / 0.9824 GB, free: 24.95 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.931e-05/0.1607, allocations: 0 / 0.9824 GB, free: 24.95 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0003777/0.161, allocations: 155.2 kB / 0.9826 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.000258/0.1613, allocations: 139.1 kB / 0.9827 GB, free: 24.66 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003169/0.1616, allocations: 154.9 kB / 0.9828 GB, free: 24.52 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001953/0.1618, allocations: 199.5 kB / 0.983 GB, free: 24.32 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001129/0.162, allocations: 57.86 kB / 0.9831 GB, free: 24.26 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001176/0.1621, allocations: 75.67 kB / 0.9832 GB, free: 24.19 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001412/0.1622, allocations: 131.6 kB / 0.9833 GB, free: 24.06 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.73e-05/0.1623, allocations: 8 kB / 0.9833 GB, free: 24.05 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 7.579e-05/0.1623, allocations: 39.97 kB / 0.9833 GB, free: 24.01 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 6.333e-05/0.1624, allocations: 67.75 kB / 0.9834 GB, free: 23.95 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 6.733e-05/0.1625, allocations: 117 kB / 0.9835 GB, free: 23.82 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001921/0.1627, allocations: 279.4 kB / 0.9838 GB, free: 23.55 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.1627, allocations: 0 / 0.9838 GB, free: 23.55 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.353e-06/0.1627, allocations: 0 / 0.9838 GB, free: 23.55 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.13e-06/0.1627, allocations: 0 / 0.9838 GB, free: 23.55 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0005532/0.1633, allocations: 0.573 MB / 0.9843 GB, free: 22.93 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.202e-05/0.1633, allocations: 8.031 kB / 0.9843 GB, free: 22.92 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.992e-05/0.1633, allocations: 38.75 kB / 0.9844 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.525e-05/0.1634, allocations: 32.5 kB / 0.9844 GB, free: 22.84 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000385/0.1638, allocations: 414.3 kB / 0.9848 GB, free: 22.4 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.737e-06/0.1638, allocations: 384 / 0.9848 GB, free: 22.4 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.157e-05/0.1638, allocations: 7.938 kB / 0.9848 GB, free: 22.39 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001336/0.164, allocations: 77.66 kB / 0.9849 GB, free: 22.31 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.023e-06/0.164, allocations: 0 / 0.9849 GB, free: 22.31 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.957e-06/0.164, allocations: 0 / 0.9849 GB, free: 22.31 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.164, allocations: 4 kB / 0.9849 GB, free: 22.31 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001061/0.1641, allocations: 63.84 kB / 0.985 GB, free: 22.25 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000397/0.1645, allocations: 484.4 kB / 0.9854 GB, free: 21.72 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001042/0.1646, allocations: 50.56 kB / 0.9855 GB, free: 21.66 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.629e-05/0.1647, allocations: 24.91 kB / 0.9855 GB, free: 21.64 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.846e-05/0.1647, allocations: 0 / 0.9855 GB, free: 21.64 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.065e-05/0.1647, allocations: 34.56 kB / 0.9855 GB, free: 21.59 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 8.12e-07/0.1647, allocations: 0 / 0.9855 GB, free: 21.59 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.0002275/0.165, allocations: 113.2 kB / 0.9856 GB, free: 21.48 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.656e-05/0.165, allocations: 51.41 kB / 0.9857 GB, free: 21.41 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004296/0.1654, allocations: 0.5562 MB / 0.9862 GB, free: 20.85 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 7.003e-06/0.1654, allocations: 25.7 kB / 0.9862 GB, free: 20.82 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 7.163e-05/0.1655, allocations: 164 kB / 0.9864 GB, free: 20.65 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.45e-05/0.1655, allocations: 19.83 kB / 0.9864 GB, free: 20.63 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.396e-06/0.1655, allocations: 0 / 0.9864 GB, free: 20.63 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 4.849e-05/0.1656, allocations: 338.8 kB / 0.9867 GB, free: 20.29 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.362e-05/0.1656, allocations: 23.98 kB / 0.9868 GB, free: 20.27 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.268e-05/0.1657, allocations: 8.188 kB / 0.9868 GB, free: 20.26 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.586e-05/0.1658, allocations: 44.91 kB / 0.9868 GB, free: 20.21 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.1658, allocations: 0 / 0.9868 GB, free: 20.21 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001245/0.1659, allocations: 97.25 kB / 0.9869 GB, free: 20.11 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.048e-05/0.1659, allocations: 7.984 kB / 0.9869 GB, free: 20.11 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.387e-06/0.1659, allocations: 0 / 0.9869 GB, free: 20.11 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.979e-06/0.1659, allocations: 3.938 kB / 0.9869 GB, free: 20.1 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.192e-05/0.166, allocations: 8 kB / 0.9869 GB, free: 20.09 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.928e-06/0.166, allocations: 0 / 0.9869 GB, free: 20.09 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.888e-05/0.1661, allocations: 7.906 kB / 0.9869 GB, free: 20.09 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.011e-06/0.1661, allocations: 3.984 kB / 0.9869 GB, free: 20.08 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 9.709e-05/0.1662, allocations: 185.8 kB / 0.9871 GB, free: 19.89 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.75e-05/0.1662, allocations: 23.72 kB / 0.9871 GB, free: 19.87 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001709/0.1664, allocations: 116.1 kB / 0.9873 GB, free: 19.74 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.1664, allocations: 3.938 kB / 0.9873 GB, free: 19.73 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.1664, allocations: 3.984 kB / 0.9873 GB, free: 19.73 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.1664, allocations: 0 / 0.9873 GB, free: 19.73 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001729/0.1666, allocations: 281.5 kB / 0.9875 GB, free: 19.41 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.31e-07/0.1666, allocations: 7.938 kB / 0.9875 GB, free: 19.4 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.322e-05/0.1667, allocations: 7.984 kB / 0.9875 GB, free: 19.39 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-06/0.1667, allocations: 0 / 0.9875 GB, free: 19.39 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.014e-06/0.1667, allocations: 11.94 kB / 0.9876 GB, free: 19.38 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.1667, allocations: 0 / 0.9876 GB, free: 19.38 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.1667, allocations: 0 / 0.9876 GB, free: 19.38 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001355/0.1668, allocations: 187.2 kB / 0.9877 GB, free: 19.18 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 6.15e-05/0.1669, allocations: 120.7 kB / 0.9878 GB, free: 19.04 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.489e-05/0.1669, allocations: 3.938 kB / 0.9879 GB, free: 19.04 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.17e-05/0.167, allocations: 4 kB / 0.9879 GB, free: 19.04 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.58e-05/0.1671, allocations: 7.922 kB / 0.9879 GB, free: 19.03 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.468e-06/0.1671, allocations: 4 kB / 0.9879 GB, free: 19.02 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.000303/0.1674, allocations: 415.1 kB / 0.9883 GB, free: 18.62 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.31e-07/0.1674, allocations: 0 / 0.9883 GB, free: 18.62 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002184/0.1676, allocations: 27.94 kB / 0.9883 GB, free: 18.6 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0008041/0.1684, allocations: 0.9746 MB / 0.9892 GB, free: 17.73 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001152/0.1685, allocations: 39.84 kB / 0.9893 GB, free: 17.69 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.1686, allocations: 3.938 kB / 0.9893 GB, free: 17.69 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 4.383e-05/0.1686, allocations: 16 kB / 0.9893 GB, free: 17.67 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003307/0.1689, allocations: 43.28 kB / 0.9893 GB, free: 17.63 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002068/0.171, allocations: 1.938 MB / 0.9912 GB, free: 15.64 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000177/0.1712, allocations: 0.7912 MB / 0.992 GB, free: 14.83 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 8.368e-05/0.1713, allocations: 38.94 kB / 0.992 GB, free: 14.79 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.791e-05/0.1714, allocations: 91.39 kB / 0.9921 GB, free: 14.7 MB / 0.6198 GB Notification: Performance of SimCode: time 3.3e-07/0.1714, allocations: 0 / 0.9921 GB, free: 14.7 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2874/0.4588, allocations: 5.414 MB / 0.9974 GB, free: 9.457 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001946/0.4591, allocations: 270.6 kB / 0.9977 GB, free: 9.094 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.04/2.499, allocations: 2.953 kB / 0.9977 GB, free: 9.094 MB / 0.6198 GB (rm -f Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1)