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.001077/0.001077, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.008714/0.008714, allocations: 170.8 kB / 16.26 MB, free: 6.613 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.333/1.333, allocations: 205.4 MB / 222.4 MB, free: 5.574 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.683/1.683, allocations: 292.7 MB / 0.5502 GB, free: 14.46 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.000505/0.000505, allocations: 14.25 kB / 0.6743 GB, free: 25.77 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.191/0.1915, allocations: 116.3 MB / 0.7879 GB, free: 11.58 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.001904/0.1935, allocations: 1.48 MB / 0.7893 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001235/0.1947, allocations: 0.8316 MB / 0.7901 GB, free: 9.242 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.86e-05/0.1948, allocations: 3.938 kB / 0.7901 GB, free: 9.238 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0004729/0.1953, allocations: 182.8 kB / 0.7903 GB, free: 9.062 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0003324/0.1957, allocations: 143.6 kB / 0.7905 GB, free: 8.922 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004063/0.1961, allocations: 178.5 kB / 0.7906 GB, free: 8.754 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002466/0.1963, allocations: 211.5 kB / 0.7908 GB, free: 8.547 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001307/0.1965, allocations: 53.92 kB / 0.7909 GB, free: 8.496 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001231/0.1966, allocations: 83.61 kB / 0.791 GB, free: 8.414 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001662/0.1968, allocations: 135.5 kB / 0.7911 GB, free: 8.281 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.692e-05/0.1968, allocations: 4 kB / 0.7911 GB, free: 8.277 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.726e-05/0.1969, allocations: 39.97 kB / 0.7911 GB, free: 8.238 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.152e-05/0.197, allocations: 71.75 kB / 0.7912 GB, free: 8.168 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 8.855e-05/0.1971, allocations: 120.9 kB / 0.7913 GB, free: 8.043 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002765/0.1974, allocations: 334.7 kB / 0.7916 GB, free: 7.715 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1974, allocations: 0 / 0.7916 GB, free: 7.715 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.513e-06/0.1974, allocations: 0 / 0.7916 GB, free: 7.715 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.17e-06/0.1974, allocations: 0 / 0.7916 GB, free: 7.715 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.0006384/0.198, allocations: 0.5643 MB / 0.7922 GB, free: 7.102 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.207e-05/0.1981, allocations: 12.03 kB / 0.7922 GB, free: 7.09 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.386e-05/0.1981, allocations: 32.55 kB / 0.7922 GB, free: 7.059 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004568/0.1986, allocations: 414.2 kB / 0.7926 GB, free: 6.613 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.096e-05/0.1986, allocations: 8.375 kB / 0.7926 GB, free: 6.605 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.327e-05/0.1986, allocations: 8.125 kB / 0.7926 GB, free: 6.598 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001548/0.1988, allocations: 81.61 kB / 0.7927 GB, free: 6.512 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.282e-06/0.1988, allocations: 4 kB / 0.7927 GB, free: 6.508 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.347e-06/0.1988, allocations: 0 / 0.7927 GB, free: 6.508 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-06/0.1988, allocations: 0 / 0.7927 GB, free: 6.508 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001261/0.199, allocations: 51.97 kB / 0.7928 GB, free: 6.457 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005609/0.1995, allocations: 484.5 kB / 0.7932 GB, free: 5.934 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001226/0.1997, allocations: 46.56 kB / 0.7933 GB, free: 5.879 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.618e-05/0.1997, allocations: 20.91 kB / 0.7933 GB, free: 5.855 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.879e-05/0.1998, allocations: 4 kB / 0.7933 GB, free: 5.852 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.575e-05/0.1998, allocations: 30.56 kB / 0.7933 GB, free: 5.812 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.1998, allocations: 4 kB / 0.7933 GB, free: 5.809 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0002754/0.2001, allocations: 117.3 kB / 0.7934 GB, free: 5.688 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.743e-05/0.2001, allocations: 51.41 kB / 0.7935 GB, free: 5.625 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000624/0.2008, allocations: 0.5524 MB / 0.794 GB, free: 5.062 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.248e-05/0.2008, allocations: 29.64 kB / 0.7941 GB, free: 5.027 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001174/0.2009, allocations: 172 kB / 0.7942 GB, free: 4.855 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.867e-05/0.2009, allocations: 15.83 kB / 0.7942 GB, free: 4.84 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.38e-05/0.201, allocations: 17.72 kB / 0.7943 GB, free: 4.816 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001156/0.2011, allocations: 338.8 kB / 0.7946 GB, free: 4.477 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.213e-05/0.2011, allocations: 11.98 kB / 0.7946 GB, free: 4.465 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.139e-05/0.2012, allocations: 19.98 kB / 0.7946 GB, free: 4.445 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001054/0.2013, allocations: 44.83 kB / 0.7947 GB, free: 4.398 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.2013, allocations: 0 / 0.7947 GB, free: 4.398 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001627/0.2015, allocations: 93.25 kB / 0.7947 GB, free: 4.301 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.2015, allocations: 7.984 kB / 0.7948 GB, free: 4.293 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-06/0.2015, allocations: 0 / 0.7948 GB, free: 4.293 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.124e-05/0.2015, allocations: 3.938 kB / 0.7948 GB, free: 4.289 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.811e-05/0.2016, allocations: 8 kB / 0.7948 GB, free: 4.281 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.348e-06/0.2016, allocations: 0 / 0.7948 GB, free: 4.281 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.386e-05/0.2017, allocations: 8 kB / 0.7948 GB, free: 4.273 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.035e-06/0.2017, allocations: 3.984 kB / 0.7948 GB, free: 4.27 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.0001434/0.2019, allocations: 181.8 kB / 0.7949 GB, free: 4.082 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.139e-05/0.2019, allocations: 31.56 kB / 0.795 GB, free: 4.051 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002122/0.2021, allocations: 104.1 kB / 0.7951 GB, free: 3.938 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.2021, allocations: 7.922 kB / 0.7951 GB, free: 3.93 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.2022, allocations: 4 kB / 0.7951 GB, free: 3.926 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.2022, allocations: 0 / 0.7951 GB, free: 3.926 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002569/0.2024, allocations: 285.4 kB / 0.7954 GB, free: 3.598 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.31e-07/0.2024, allocations: 0 / 0.7954 GB, free: 3.598 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.878e-05/0.2025, allocations: 7.984 kB / 0.7954 GB, free: 3.59 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.2025, allocations: 0 / 0.7954 GB, free: 3.59 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.682e-06/0.2025, allocations: 4 kB / 0.7954 GB, free: 3.586 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.2025, allocations: 3.938 kB / 0.7954 GB, free: 3.582 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.2025, allocations: 0 / 0.7954 GB, free: 3.582 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001913/0.2027, allocations: 195.1 kB / 0.7956 GB, free: 3.375 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 9.079e-05/0.2028, allocations: 116.8 kB / 0.7957 GB, free: 3.242 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.728e-05/0.2029, allocations: 4 kB / 0.7957 GB, free: 3.238 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.333e-05/0.203, allocations: 7.938 kB / 0.7957 GB, free: 3.23 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.641e-05/0.203, allocations: 3.984 kB / 0.7957 GB, free: 3.227 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.789e-06/0.203, allocations: 0 / 0.7957 GB, free: 3.227 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0004237/0.2034, allocations: 427 kB / 0.7961 GB, free: 2.812 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.91e-07/0.2034, allocations: 0 / 0.7961 GB, free: 2.812 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002584/0.2037, allocations: 27.91 kB / 0.7961 GB, free: 2.785 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.0007266/0.2044, allocations: 363.5 kB / 0.7965 GB, free: 2.551 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0001393/0.2046, allocations: 35.97 kB / 0.7965 GB, free: 2.516 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.2046, allocations: 0 / 0.7965 GB, free: 2.516 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 5.544e-05/0.2047, allocations: 19.92 kB / 0.7965 GB, free: 2.496 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003944/0.2051, allocations: 44.33 kB / 0.7966 GB, free: 2.457 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007008/0.2058, allocations: 0.5782 MB / 0.7971 GB, free: 1.852 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002983/0.2061, allocations: 0.7873 MB / 0.7979 GB, free: 1.039 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 9.994e-05/0.2062, allocations: 46.91 kB / 0.7979 GB, free: 0.9922 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.114e-05/0.2062, allocations: 27.38 kB / 0.798 GB, free: 0.9648 MB / 0.6075 GB Notification: Performance of SimCode: time 3.51e-07/0.2062, allocations: 0 / 0.798 GB, free: 0.9648 MB / 0.6075 GB Notification: Performance of Templates: time 0.005002/0.2113, allocations: 2.327 MB / 0.8002 GB, free: 14.66 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: