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.LinearPiecewiseTwo.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.LinearPiecewiseTwo,fileNamePrefix="Buildings_maint_7_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_7_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 7.0.3-maint.7.0.x/package.mo): time 1.336/1.336, allocations: 252 MB / 267 MB, free: 10.95 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.0009899/0.0009899, allocations: 190 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.51/1.51, allocations: 205.4 MB / 0.5777 GB, free: 20.54 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.0007227/0.0007229, allocations: 101.2 kB / 0.6823 GB, free: 13.33 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003064/0.0003065, allocations: 12 kB / 0.7965 GB, free: 134.9 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1667/0.167, allocations: 106.3 MB / 0.9003 GB, free: 64.21 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.001601/0.1687, allocations: 1.449 MB / 0.9017 GB, free: 62.74 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0009549/0.1696, allocations: 0.8238 MB / 0.9025 GB, free: 61.91 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.731e-05/0.1697, allocations: 3.938 kB / 0.9025 GB, free: 61.91 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0003752/0.1701, allocations: 150.4 kB / 0.9027 GB, free: 61.76 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0002456/0.1703, allocations: 141.5 kB / 0.9028 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.000304/0.1707, allocations: 164.4 kB / 0.903 GB, free: 61.47 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001652/0.1708, allocations: 195.5 kB / 0.9032 GB, free: 61.28 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001053/0.1709, allocations: 37.84 kB / 0.9032 GB, free: 61.24 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 9.744e-05/0.171, allocations: 79.62 kB / 0.9033 GB, free: 61.16 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001393/0.1712, allocations: 127.6 kB / 0.9034 GB, free: 61.04 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.747e-05/0.1712, allocations: 8 kB / 0.9034 GB, free: 61.03 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 7.053e-05/0.1713, allocations: 35.97 kB / 0.9034 GB, free: 61 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 5.692e-05/0.1714, allocations: 71.75 kB / 0.9035 GB, free: 60.93 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.351e-05/0.1714, allocations: 65.52 kB / 0.9036 GB, free: 60.86 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001971/0.1716, allocations: 291.5 kB / 0.9038 GB, free: 60.57 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/0.1716, allocations: 0 / 0.9038 GB, free: 60.57 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.853e-06/0.1716, allocations: 0 / 0.9038 GB, free: 60.57 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 7.814e-06/0.1716, allocations: 0 / 0.9038 GB, free: 60.57 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0005394/0.1722, allocations: 0.5487 MB / 0.9044 GB, free: 59.97 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.208e-05/0.1722, allocations: 16.03 kB / 0.9044 GB, free: 59.96 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.827e-05/0.1723, allocations: 34.56 kB / 0.9044 GB, free: 59.91 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.337e-05/0.1723, allocations: 39.52 kB / 0.9045 GB, free: 59.88 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003921/0.1727, allocations: 409.1 kB / 0.9049 GB, free: 59.43 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.973e-06/0.1727, allocations: 4 kB / 0.9049 GB, free: 59.43 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.223e-05/0.1727, allocations: 4 kB / 0.9049 GB, free: 59.43 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001389/0.1729, allocations: 77.66 kB / 0.9049 GB, free: 59.34 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.931e-06/0.1729, allocations: 3.938 kB / 0.9049 GB, free: 59.34 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.618e-06/0.1729, allocations: 0 / 0.9049 GB, free: 59.34 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.1729, allocations: 8 kB / 0.9049 GB, free: 59.33 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001145/0.173, allocations: 55.92 kB / 0.905 GB, free: 59.28 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004542/0.1735, allocations: 476.5 kB / 0.9055 GB, free: 58.76 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001136/0.1736, allocations: 54.5 kB / 0.9055 GB, free: 58.7 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.192e-05/0.1737, allocations: 24.91 kB / 0.9055 GB, free: 58.67 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.771e-05/0.1737, allocations: 0 / 0.9055 GB, free: 58.67 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.398e-05/0.1737, allocations: 30.56 kB / 0.9056 GB, free: 58.63 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=3): time 1.012e-06/0.1738, allocations: 0 / 0.9056 GB, free: 58.63 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3): time 0.0002532/0.174, allocations: 113.4 kB / 0.9057 GB, free: 58.52 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.79e-05/0.174, allocations: 55.34 kB / 0.9057 GB, free: 58.45 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004846/0.1745, allocations: 0.5523 MB / 0.9063 GB, free: 57.89 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 9.117e-06/0.1745, allocations: 29.7 kB / 0.9063 GB, free: 57.86 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 8.692e-05/0.1746, allocations: 175.9 kB / 0.9065 GB, free: 57.68 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.488e-05/0.1747, allocations: 7.891 kB / 0.9065 GB, free: 57.67 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.567e-06/0.1747, allocations: 0 / 0.9065 GB, free: 57.67 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.039e-05/0.1747, allocations: 350.8 kB / 0.9068 GB, free: 57.32 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.994e-05/0.1748, allocations: 11.98 kB / 0.9068 GB, free: 57.31 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.983e-05/0.1748, allocations: 15.98 kB / 0.9068 GB, free: 57.29 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.975e-05/0.1749, allocations: 16 kB / 0.9068 GB, free: 57.28 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1749, allocations: 0 / 0.9068 GB, free: 57.28 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001461/0.1751, allocations: 97.25 kB / 0.9069 GB, free: 57.18 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.1751, allocations: 10.5 kB / 0.9069 GB, free: 57.17 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.1751, allocations: 0 / 0.9069 GB, free: 57.17 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.159e-05/0.1751, allocations: 0 / 0.9069 GB, free: 57.17 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.565e-05/0.1752, allocations: 12.31 kB / 0.907 GB, free: 57.16 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.1752, allocations: 3.938 kB / 0.907 GB, free: 57.15 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.328e-05/0.1753, allocations: 0 / 0.907 GB, free: 57.15 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.192e-06/0.1753, allocations: 4 kB / 0.907 GB, free: 57.15 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: 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 0.0001172/0.1754, allocations: 181.8 kB / 0.9071 GB, free: 56.96 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.842e-05/0.1755, allocations: 39.56 kB / 0.9072 GB, free: 56.92 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002044/0.1757, allocations: 96.19 kB / 0.9073 GB, free: 56.82 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/0.1757, allocations: 4 kB / 0.9073 GB, free: 56.81 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.1757, allocations: 0 / 0.9073 GB, free: 56.81 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.1757, allocations: 0 / 0.9073 GB, free: 56.81 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002058/0.1759, allocations: 289.4 kB / 0.9075 GB, free: 56.48 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.1759, allocations: 4 kB / 0.9075 GB, free: 56.48 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.839e-05/0.176, allocations: 12 kB / 0.9076 GB, free: 56.46 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.176, allocations: 3.953 kB / 0.9076 GB, free: 56.46 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.813e-06/0.176, allocations: 0 / 0.9076 GB, free: 56.46 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.176, allocations: 3.938 kB / 0.9076 GB, free: 56.46 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.176, allocations: 3.938 kB / 0.9076 GB, free: 56.45 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001625/0.1762, allocations: 195.2 kB / 0.9078 GB, free: 56.25 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 6.984e-05/0.1763, allocations: 120.7 kB / 0.9079 GB, free: 56.11 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.906e-05/0.1763, allocations: 3.953 kB / 0.9079 GB, free: 56.11 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.271e-05/0.1764, allocations: 4 kB / 0.9079 GB, free: 56.1 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.585e-05/0.1764, allocations: 7.938 kB / 0.9079 GB, free: 56.09 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.268e-06/0.1764, allocations: 3.984 kB / 0.9079 GB, free: 56.09 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0003267/0.1768, allocations: 415.1 kB / 0.9083 GB, free: 55.68 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1768, allocations: 0 / 0.9083 GB, free: 55.68 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002361/0.177, allocations: 31.89 kB / 0.9083 GB, free: 55.65 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: 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.0008973/0.1779, allocations: 0.9663 MB / 0.9093 GB, free: 54.79 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0001309/0.1781, allocations: 35.98 kB / 0.9093 GB, free: 54.75 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.1781, allocations: 0 / 0.9093 GB, free: 54.75 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 4.93e-05/0.1781, allocations: 19.98 kB / 0.9093 GB, free: 54.73 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003585/0.1785, allocations: 46.33 kB / 0.9094 GB, free: 54.69 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002274/0.1808, allocations: 1.934 MB / 0.9112 GB, free: 52.71 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001778/0.181, allocations: 0.7912 MB / 0.912 GB, free: 51.9 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 9.79e-05/0.1811, allocations: 46.92 kB / 0.9121 GB, free: 51.85 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001044/0.1812, allocations: 91.39 kB / 0.9122 GB, free: 51.76 MB / 0.6042 GB Notification: Performance of SimCode: time 3.41e-07/0.1812, allocations: 0 / 0.9122 GB, free: 51.76 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01373/0.1949, allocations: 5.431 MB / 0.9175 GB, free: 46.51 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001439/0.1951, allocations: 267.1 kB / 0.9177 GB, free: 46.16 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.022/2.217, allocations: 0 / 0.9177 GB, free: 46.16 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1)