Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.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: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001161/0.001162, allocations: 106.8 kB / 15.99 MB, free: 5.891 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.001187/0.001187, allocations: 195.9 kB / 16.91 MB, free: 5.746 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.445/1.445, allocations: 205.1 MB / 222.8 MB, free: 4.68 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.69/1.69, allocations: 292.3 MB / 0.5492 GB, free: 13.62 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.001517/0.001517, allocations: 70.62 kB / 0.6717 GB, free: 26.35 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.22/0.2215, allocations: 114.6 MB / 0.7835 GB, free: 13.91 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003199/0.2247, allocations: 1.815 MB / 0.7853 GB, free: 12.08 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001295/0.2261, allocations: 0.8549 MB / 0.7861 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.223e-05/0.2262, allocations: 0 / 0.7861 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0005036/0.2267, allocations: 187.4 kB / 0.7863 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0003803/0.2271, allocations: 150 kB / 0.7865 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003962/0.2275, allocations: 180.2 kB / 0.7866 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002928/0.2278, allocations: 235.5 kB / 0.7869 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001433/0.2279, allocations: 53.92 kB / 0.7869 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000172/0.2281, allocations: 103.6 kB / 0.787 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002009/0.2283, allocations: 155.5 kB / 0.7872 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.111e-05/0.2284, allocations: 20 kB / 0.7872 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 9.944e-05/0.2285, allocations: 47.98 kB / 0.7872 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 9.438e-05/0.2286, allocations: 83.75 kB / 0.7873 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001046/0.2287, allocations: 119.2 kB / 0.7874 GB, free: 9.918 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003112/0.229, allocations: 295.4 kB / 0.7877 GB, free: 9.629 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.229, allocations: 0 / 0.7877 GB, free: 9.629 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.492e-06/0.229, allocations: 0 / 0.7877 GB, free: 9.629 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.065e-06/0.229, allocations: 0 / 0.7877 GB, free: 9.629 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0007916/0.2298, allocations: 0.6069 MB / 0.7883 GB, free: 8.973 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.311e-05/0.2299, allocations: 12.03 kB / 0.7883 GB, free: 8.961 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.875e-05/0.23, allocations: 36.47 kB / 0.7883 GB, free: 8.926 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004872/0.2304, allocations: 410.3 kB / 0.7887 GB, free: 8.484 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.054e-05/0.2305, allocations: 4.375 kB / 0.7887 GB, free: 8.48 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.708e-05/0.2305, allocations: 8.125 kB / 0.7887 GB, free: 8.473 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001727/0.2307, allocations: 77.66 kB / 0.7888 GB, free: 8.391 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.805e-06/0.2307, allocations: 0 / 0.7888 GB, free: 8.391 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.558e-06/0.2307, allocations: 0 / 0.7888 GB, free: 8.391 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.596e-06/0.2307, allocations: 0 / 0.7888 GB, free: 8.391 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001226/0.2308, allocations: 51.97 kB / 0.7889 GB, free: 8.34 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005823/0.2314, allocations: 488.3 kB / 0.7893 GB, free: 7.812 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001236/0.2316, allocations: 50.56 kB / 0.7894 GB, free: 7.754 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.349e-05/0.2316, allocations: 20.84 kB / 0.7894 GB, free: 7.73 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.391e-05/0.2317, allocations: 7.984 kB / 0.7894 GB, free: 7.723 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.755e-05/0.2317, allocations: 30.56 kB / 0.7894 GB, free: 7.684 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.2317, allocations: 0 / 0.7894 GB, free: 7.684 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0002758/0.232, allocations: 101.3 kB / 0.7895 GB, free: 7.578 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.065e-05/0.232, allocations: 51.41 kB / 0.7896 GB, free: 7.516 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006011/0.2326, allocations: 0.5561 MB / 0.7901 GB, free: 6.949 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.313e-05/0.2326, allocations: 25.7 kB / 0.7901 GB, free: 6.918 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001224/0.2328, allocations: 180 kB / 0.7903 GB, free: 6.738 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.99e-05/0.2328, allocations: 7.844 kB / 0.7903 GB, free: 6.73 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.417e-05/0.2328, allocations: 17.72 kB / 0.7903 GB, free: 6.707 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001257/0.233, allocations: 350.7 kB / 0.7907 GB, free: 6.355 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.723e-05/0.233, allocations: 8 kB / 0.7907 GB, free: 6.348 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.99e-05/0.2331, allocations: 11.98 kB / 0.7907 GB, free: 6.336 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.544e-05/0.2332, allocations: 36.78 kB / 0.7907 GB, free: 6.297 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.2332, allocations: 4 kB / 0.7907 GB, free: 6.293 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001616/0.2334, allocations: 89.3 kB / 0.7908 GB, free: 6.199 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.472e-05/0.2334, allocations: 8 kB / 0.7908 GB, free: 6.191 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.2334, allocations: 0 / 0.7908 GB, free: 6.191 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.218e-05/0.2334, allocations: 3.938 kB / 0.7908 GB, free: 6.188 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.189e-05/0.2335, allocations: 7.984 kB / 0.7908 GB, free: 6.18 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.489e-06/0.2335, allocations: 3.938 kB / 0.7908 GB, free: 6.176 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.209e-05/0.2336, allocations: 4 kB / 0.7908 GB, free: 6.172 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.28e-06/0.2336, allocations: 0 / 0.7908 GB, free: 6.172 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: 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001456/0.2337, allocations: 185.8 kB / 0.791 GB, free: 5.98 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.178e-05/0.2338, allocations: 27.62 kB / 0.791 GB, free: 5.953 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002077/0.234, allocations: 104.2 kB / 0.7911 GB, free: 5.84 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.094e-05/0.234, allocations: 3.938 kB / 0.7911 GB, free: 5.836 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.234, allocations: 0 / 0.7911 GB, free: 5.836 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.285e-06/0.234, allocations: 0 / 0.7911 GB, free: 5.836 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002709/0.2343, allocations: 289.5 kB / 0.7914 GB, free: 5.504 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.2343, allocations: 0 / 0.7914 GB, free: 5.504 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.735e-05/0.2344, allocations: 8 kB / 0.7914 GB, free: 5.496 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.2344, allocations: 112 / 0.7914 GB, free: 5.496 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.052e-05/0.2344, allocations: 7.938 kB / 0.7914 GB, free: 5.488 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.2344, allocations: 7.875 kB / 0.7914 GB, free: 5.48 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2344, allocations: 0 / 0.7914 GB, free: 5.48 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001978/0.2346, allocations: 179.5 kB / 0.7916 GB, free: 5.289 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 8.216e-05/0.2347, allocations: 116.7 kB / 0.7917 GB, free: 5.156 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.061e-05/0.2347, allocations: 8 kB / 0.7917 GB, free: 5.148 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.83e-05/0.2348, allocations: 7.922 kB / 0.7917 GB, free: 5.141 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.978e-05/0.2349, allocations: 4.031 kB / 0.7917 GB, free: 5.137 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.067e-06/0.2349, allocations: 4 kB / 0.7918 GB, free: 5.133 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0004048/0.2353, allocations: 415.1 kB / 0.7921 GB, free: 4.73 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2353, allocations: 0 / 0.7921 GB, free: 4.73 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002628/0.2356, allocations: 24 kB / 0.7922 GB, free: 4.707 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: 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 (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.0007468/0.2363, allocations: 362.7 kB / 0.7925 GB, free: 4.48 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.000155/0.2365, allocations: 39.91 kB / 0.7926 GB, free: 4.441 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.2365, allocations: 0 / 0.7926 GB, free: 4.441 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 5.079e-05/0.2365, allocations: 15.98 kB / 0.7926 GB, free: 4.426 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004063/0.237, allocations: 44.39 kB / 0.7926 GB, free: 4.387 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007787/0.2378, allocations: 0.6246 MB / 0.7932 GB, free: 3.727 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003396/0.2381, allocations: 0.7831 MB / 0.794 GB, free: 2.918 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.878e-05/0.2382, allocations: 27.38 kB / 0.794 GB, free: 2.891 MB / 0.6075 GB Notification: Performance of SimCode: time 2.305e-06/0.2382, allocations: 0 / 0.794 GB, free: 2.891 MB / 0.6075 GB Notification: Performance of Templates: time 0.005148/0.2433, allocations: 3.53 MB / 0.7975 GB, free: 15.36 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile (rm -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & ./Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1)