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.00105/0.00105, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001037/0.001037, allocations: 193.6 kB / 16.53 MB, free: 6.391 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.361/1.361, allocations: 205.1 MB / 222.4 MB, free: 4.555 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.685/1.685, allocations: 292.3 MB / 0.5489 GB, free: 12.82 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.001465/0.001465, allocations: 66.39 kB / 0.6715 GB, free: 26.09 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2119/0.2134, allocations: 114.5 MB / 0.7834 GB, free: 13.46 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003045/0.2165, allocations: 1.787 MB / 0.7851 GB, free: 11.65 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001254/0.2178, allocations: 0.8558 MB / 0.786 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.242e-05/0.2179, allocations: 4 kB / 0.786 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0004652/0.2183, allocations: 192.3 kB / 0.7861 GB, free: 10.6 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0003699/0.2187, allocations: 153.9 kB / 0.7863 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003651/0.2191, allocations: 194.8 kB / 0.7865 GB, free: 10.26 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.000244/0.2193, allocations: 231.5 kB / 0.7867 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001367/0.2195, allocations: 53.94 kB / 0.7867 GB, free: 9.984 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001364/0.2196, allocations: 103.6 kB / 0.7868 GB, free: 9.883 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001854/0.2198, allocations: 151.5 kB / 0.787 GB, free: 9.734 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.992e-05/0.2199, allocations: 20 kB / 0.787 GB, free: 9.715 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 9.546e-05/0.22, allocations: 47.92 kB / 0.7871 GB, free: 9.668 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 9.228e-05/0.2201, allocations: 87.73 kB / 0.7871 GB, free: 9.582 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 9.327e-05/0.2202, allocations: 119.2 kB / 0.7872 GB, free: 9.465 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003092/0.2205, allocations: 346.8 kB / 0.7876 GB, free: 9.125 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.2205, allocations: 0 / 0.7876 GB, free: 9.125 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.072e-06/0.2205, allocations: 0 / 0.7876 GB, free: 9.125 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.025e-05/0.2205, allocations: 0 / 0.7876 GB, free: 9.125 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.0007111/0.2212, allocations: 0.6108 MB / 0.7882 GB, free: 8.465 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.258e-05/0.2213, allocations: 8.031 kB / 0.7882 GB, free: 8.457 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.404e-05/0.2213, allocations: 36.47 kB / 0.7882 GB, free: 8.422 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004721/0.2218, allocations: 410.3 kB / 0.7886 GB, free: 7.98 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.037e-06/0.2218, allocations: 384 / 0.7886 GB, free: 7.98 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.57e-05/0.2219, allocations: 12.12 kB / 0.7886 GB, free: 7.969 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000156/0.222, allocations: 73.66 kB / 0.7887 GB, free: 7.891 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.966e-06/0.222, allocations: 0 / 0.7887 GB, free: 7.891 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.152e-05/0.2221, allocations: 4 kB / 0.7887 GB, free: 7.887 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.481e-06/0.2221, allocations: 8 kB / 0.7887 GB, free: 7.879 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001234/0.2222, allocations: 47.91 kB / 0.7887 GB, free: 7.832 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005294/0.2227, allocations: 480.4 kB / 0.7892 GB, free: 7.312 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001216/0.2229, allocations: 54.5 kB / 0.7893 GB, free: 7.25 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.164e-05/0.2229, allocations: 16.92 kB / 0.7893 GB, free: 7.23 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.201e-05/0.223, allocations: 3.984 kB / 0.7893 GB, free: 7.227 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.186e-05/0.223, allocations: 34.56 kB / 0.7893 GB, free: 7.184 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.223, allocations: 0 / 0.7893 GB, free: 7.184 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0002727/0.2233, allocations: 105.2 kB / 0.7894 GB, free: 7.074 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.608e-05/0.2233, allocations: 55.52 kB / 0.7895 GB, free: 7.008 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005593/0.2239, allocations: 0.5639 MB / 0.79 GB, free: 6.438 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.719e-05/0.2239, allocations: 25.7 kB / 0.79 GB, free: 6.406 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001093/0.224, allocations: 176 kB / 0.7902 GB, free: 6.23 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.713e-05/0.224, allocations: 7.844 kB / 0.7902 GB, free: 6.223 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.171e-05/0.2241, allocations: 13.72 kB / 0.7902 GB, free: 6.203 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001212/0.2242, allocations: 350.8 kB / 0.7906 GB, free: 5.852 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.73e-05/0.2243, allocations: 8 kB / 0.7906 GB, free: 5.844 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.84e-05/0.2243, allocations: 11.98 kB / 0.7906 GB, free: 5.832 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.883e-05/0.2244, allocations: 41.11 kB / 0.7906 GB, free: 5.789 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.2244, allocations: 4 kB / 0.7906 GB, free: 5.785 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001602/0.2246, allocations: 89.23 kB / 0.7907 GB, free: 5.691 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.013e-05/0.2246, allocations: 8.938 kB / 0.7907 GB, free: 5.684 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.997e-06/0.2246, allocations: 0 / 0.7907 GB, free: 5.684 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.2246, allocations: 3.938 kB / 0.7907 GB, free: 5.68 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.365e-05/0.2247, allocations: 7.984 kB / 0.7907 GB, free: 5.672 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.028e-06/0.2247, allocations: 0 / 0.7907 GB, free: 5.672 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.13e-05/0.2248, allocations: 8 kB / 0.7907 GB, free: 5.664 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.6e-06/0.2248, allocations: 0 / 0.7907 GB, free: 5.664 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.000134/0.225, allocations: 177.8 kB / 0.7909 GB, free: 5.48 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.238e-05/0.225, allocations: 27.62 kB / 0.7909 GB, free: 5.453 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.143e-05/0.2251, allocations: 38.52 kB / 0.791 GB, free: 5.41 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.2251, allocations: 3.938 kB / 0.791 GB, free: 5.406 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.2251, allocations: 0 / 0.791 GB, free: 5.406 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.786e-06/0.2251, allocations: 4 kB / 0.791 GB, free: 5.402 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002561/0.2254, allocations: 281.5 kB / 0.7912 GB, free: 5.078 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.2254, allocations: 4 kB / 0.7913 GB, free: 5.074 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.124e-05/0.2254, allocations: 7.984 kB / 0.7913 GB, free: 5.066 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.2254, allocations: 4 kB / 0.7913 GB, free: 5.062 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.702e-06/0.2255, allocations: 0 / 0.7913 GB, free: 5.062 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.686e-06/0.2255, allocations: 3.938 kB / 0.7913 GB, free: 5.059 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.2255, allocations: 0 / 0.7913 GB, free: 5.059 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001946/0.2257, allocations: 187.1 kB / 0.7914 GB, free: 4.859 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 8.479e-05/0.2258, allocations: 116.7 kB / 0.7916 GB, free: 4.727 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.182e-05/0.2258, allocations: 4 kB / 0.7916 GB, free: 4.723 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.296e-05/0.2259, allocations: 3.938 kB / 0.7916 GB, free: 4.719 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.094e-05/0.2259, allocations: 7.984 kB / 0.7916 GB, free: 4.711 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.717e-06/0.226, allocations: 3.938 kB / 0.7916 GB, free: 4.707 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0004414/0.2264, allocations: 419.1 kB / 0.792 GB, free: 4.297 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2264, allocations: 0 / 0.792 GB, free: 4.297 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002661/0.2267, allocations: 24 kB / 0.792 GB, free: 4.273 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.0009228/0.2276, allocations: 360.7 kB / 0.7923 GB, free: 4.043 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0001666/0.2278, allocations: 43.89 kB / 0.7924 GB, free: 4 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.2278, allocations: 0 / 0.7924 GB, free: 4 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 5.373e-05/0.2279, allocations: 16 kB / 0.7924 GB, free: 3.984 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005007/0.2284, allocations: 46.56 kB / 0.7924 GB, free: 3.945 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008465/0.2292, allocations: 0.5176 MB / 0.7929 GB, free: 3.398 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003988/0.2296, allocations: 0.7831 MB / 0.7937 GB, free: 2.59 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0001054/0.2298, allocations: 38.94 kB / 0.7938 GB, free: 2.551 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.438e-05/0.2298, allocations: 31.42 kB / 0.7938 GB, free: 2.52 MB / 0.6075 GB Notification: Performance of SimCode: time 2.31e-07/0.2298, allocations: 0 / 0.7938 GB, free: 2.52 MB / 0.6075 GB Notification: Performance of Templates: time 0.005757/0.2356, allocations: 2.455 MB / 0.7962 GB, free: 80 kB / 0.6075 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)