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: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.494/1.494, allocations: 252 MB / 268 MB, free: 10.85 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.001141/0.001141, allocations: 179.1 kB / 327.6 MB, free: 2.094 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.056/2.056, allocations: 205.4 MB / 0.5786 GB, free: 20.17 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.0009361/0.0009361, allocations: 92 kB / 0.6832 GB, free: 12.77 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003367/0.0003369, allocations: 12.31 kB / 0.7976 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2157/0.216, allocations: 106.3 MB / 0.9015 GB, free: 63.51 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.001857/0.2179, allocations: 1.482 MB / 0.9029 GB, free: 62.01 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.00107/0.219, allocations: 0.8429 MB / 0.9037 GB, free: 61.16 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.721e-05/0.2191, allocations: 0 / 0.9037 GB, free: 61.16 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.000397/0.2195, allocations: 180.7 kB / 0.9039 GB, free: 60.99 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0002613/0.2198, allocations: 143.6 kB / 0.904 GB, free: 60.85 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003306/0.2201, allocations: 178.5 kB / 0.9042 GB, free: 60.68 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001981/0.2203, allocations: 223.4 kB / 0.9044 GB, free: 60.46 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000128/0.2204, allocations: 45.66 kB / 0.9045 GB, free: 60.41 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001108/0.2206, allocations: 83.61 kB / 0.9045 GB, free: 60.33 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001569/0.2207, allocations: 131.6 kB / 0.9047 GB, free: 60.2 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 3.016e-05/0.2208, allocations: 4 kB / 0.9047 GB, free: 60.2 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 7.835e-05/0.2209, allocations: 35.92 kB / 0.9047 GB, free: 60.16 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 8.112e-05/0.221, allocations: 67.81 kB / 0.9048 GB, free: 60.1 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 8.315e-05/0.2211, allocations: 128.8 kB / 0.9049 GB, free: 59.96 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0002346/0.2213, allocations: 291.5 kB / 0.9052 GB, free: 59.68 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.2213, allocations: 0 / 0.9052 GB, free: 59.68 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.312e-06/0.2213, allocations: 0 / 0.9052 GB, free: 59.68 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.89e-06/0.2213, allocations: 0 / 0.9052 GB, free: 59.68 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.0005918/0.2219, allocations: 0.555 MB / 0.9057 GB, free: 59.08 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.222, allocations: 11.97 kB / 0.9057 GB, free: 59.07 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.051e-05/0.222, allocations: 36.56 kB / 0.9058 GB, free: 59.03 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004373/0.2225, allocations: 422.1 kB / 0.9062 GB, free: 58.58 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.215e-05/0.2225, allocations: 384 / 0.9062 GB, free: 58.58 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.351e-05/0.2225, allocations: 16.06 kB / 0.9062 GB, free: 58.56 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001468/0.2227, allocations: 69.67 kB / 0.9063 GB, free: 58.49 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.2227, allocations: 4 kB / 0.9063 GB, free: 58.48 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.283e-05/0.2227, allocations: 8 kB / 0.9063 GB, free: 58.48 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.571e-06/0.2227, allocations: 0 / 0.9063 GB, free: 58.48 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001115/0.2228, allocations: 47.97 kB / 0.9063 GB, free: 58.43 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000463/0.2233, allocations: 484.5 kB / 0.9068 GB, free: 57.91 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000115/0.2234, allocations: 54.56 kB / 0.9068 GB, free: 57.84 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.928e-05/0.2235, allocations: 16.84 kB / 0.9068 GB, free: 57.82 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.259e-05/0.2235, allocations: 4 kB / 0.9068 GB, free: 57.82 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.449e-05/0.2235, allocations: 34.56 kB / 0.9069 GB, free: 57.78 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=3): time 1.192e-06/0.2235, allocations: 4 kB / 0.9069 GB, free: 57.77 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3): time 0.0002459/0.2238, allocations: 105.2 kB / 0.907 GB, free: 57.66 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.433e-05/0.2238, allocations: 55.41 kB / 0.907 GB, free: 57.6 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000448/0.2243, allocations: 0.5524 MB / 0.9076 GB, free: 57.04 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 8.376e-06/0.2243, allocations: 25.7 kB / 0.9076 GB, free: 57.01 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 8.27e-05/0.2244, allocations: 172 kB / 0.9078 GB, free: 56.84 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.579e-05/0.2244, allocations: 15.81 kB / 0.9078 GB, free: 56.82 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.479e-06/0.2244, allocations: 0 / 0.9078 GB, free: 56.82 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.082e-05/0.2245, allocations: 350.7 kB / 0.9081 GB, free: 56.47 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.366e-05/0.2245, allocations: 16.09 kB / 0.9081 GB, free: 56.45 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.339e-05/0.2246, allocations: 11.94 kB / 0.9081 GB, free: 56.44 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.964e-05/0.2247, allocations: 45.11 kB / 0.9082 GB, free: 56.39 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.2247, allocations: 0 / 0.9082 GB, free: 56.39 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001655/0.2248, allocations: 93.3 kB / 0.9083 GB, free: 56.3 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.206e-05/0.2249, allocations: 4 kB / 0.9083 GB, free: 56.29 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.2249, allocations: 8 kB / 0.9083 GB, free: 56.29 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.208e-05/0.2249, allocations: 7.922 kB / 0.9083 GB, free: 56.28 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.501e-05/0.225, allocations: 4 kB / 0.9083 GB, free: 56.27 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.225, allocations: 3.938 kB / 0.9083 GB, free: 56.27 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.039e-05/0.225, allocations: 8 kB / 0.9083 GB, free: 56.26 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.142e-06/0.225, allocations: 7.984 kB / 0.9083 GB, free: 56.25 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001021/0.2252, allocations: 181.8 kB / 0.9085 GB, free: 56.07 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.098e-05/0.2252, allocations: 27.62 kB / 0.9085 GB, free: 56.04 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001798/0.2254, allocations: 100.2 kB / 0.9086 GB, free: 55.93 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.2254, allocations: 3.938 kB / 0.9086 GB, free: 55.93 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.2254, allocations: 8 kB / 0.9086 GB, free: 55.92 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.2254, allocations: 0 / 0.9086 GB, free: 55.92 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001918/0.2256, allocations: 297.4 kB / 0.9089 GB, free: 55.58 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.2256, allocations: 0 / 0.9089 GB, free: 55.58 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.54e-05/0.2257, allocations: 8 kB / 0.9089 GB, free: 55.57 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-06/0.2257, allocations: 0 / 0.9089 GB, free: 55.57 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.895e-06/0.2257, allocations: 3.984 kB / 0.9089 GB, free: 55.57 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.2257, allocations: 7.875 kB / 0.9089 GB, free: 55.56 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.2257, allocations: 0 / 0.9089 GB, free: 55.56 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001552/0.2259, allocations: 187.2 kB / 0.9091 GB, free: 55.36 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 6.895e-05/0.2259, allocations: 120.7 kB / 0.9092 GB, free: 55.22 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.659e-05/0.226, allocations: 0 / 0.9092 GB, free: 55.22 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.715e-05/0.2261, allocations: 11.94 kB / 0.9092 GB, free: 55.21 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.055e-05/0.2261, allocations: 3.984 kB / 0.9092 GB, free: 55.21 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.569e-06/0.2261, allocations: 4 kB / 0.9092 GB, free: 55.2 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.000335/0.2265, allocations: 419.1 kB / 0.9096 GB, free: 54.79 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2265, allocations: 0 / 0.9096 GB, free: 54.79 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002261/0.2267, allocations: 24 kB / 0.9097 GB, free: 54.77 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 (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.0007529/0.2275, allocations: 360.2 kB / 0.91 GB, free: 54.54 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0001297/0.2276, allocations: 47.89 kB / 0.91 GB, free: 54.49 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.2276, allocations: 0 / 0.91 GB, free: 54.49 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 4.572e-05/0.2277, allocations: 16 kB / 0.9101 GB, free: 54.48 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003598/0.228, allocations: 41.52 kB / 0.9101 GB, free: 54.43 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006333/0.2287, allocations: 0.6191 MB / 0.9107 GB, free: 53.79 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002159/0.2289, allocations: 0.7912 MB / 0.9115 GB, free: 52.97 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.314e-05/0.2289, allocations: 23.44 kB / 0.9115 GB, free: 52.95 MB / 0.6042 GB Notification: Performance of SimCode: time 3e-07/0.229, allocations: 0 / 0.9115 GB, free: 52.95 MB / 0.6042 GB Notification: Performance of Templates: time 0.004213/0.2332, allocations: 3.492 MB / 0.9149 GB, free: 49.46 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile (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 & ./Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1)