Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.163/2.163, allocations: 251.1 MB / 266.1 MB, free: 11.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001504/0.001504, allocations: 183 kB / 325.6 MB, free: 2.82 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.279/2.279, allocations: 205.4 MB / 0.5766 GB, free: 20.74 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001148/0.001148, allocations: 109.1 kB / 0.6811 GB, free: 13.58 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004681/0.0004681, allocations: 9.594 kB / 0.7951 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.223/0.2235, allocations: 106.3 MB / 0.8989 GB, free: 65.46 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2757/0.4993, allocations: 134.7 MB / 1.03 GB, free: 10.6 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003762/0.4997, allocations: 103.9 kB / 1.031 GB, free: 10.5 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.0225/0.5222, allocations: 5.316 MB / 1.036 GB, free: 5.172 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.545e-06/0.5223, allocations: 0 / 1.036 GB, free: 5.172 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 3.99e-05/0.5223, allocations: 4 kB / 1.036 GB, free: 5.168 MB / 0.6823 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.001087/0.5234, allocations: 0.576 MB / 1.036 GB, free: 4.543 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.018e-05/0.5235, allocations: 12.03 kB / 1.036 GB, free: 4.531 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.953e-05/0.5236, allocations: 27.62 kB / 1.036 GB, free: 4.504 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001005/0.5246, allocations: 441 kB / 1.037 GB, free: 4.035 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.749e-05/0.5246, allocations: 4 kB / 1.037 GB, free: 4.031 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.154e-05/0.5247, allocations: 7.984 kB / 1.037 GB, free: 4.023 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000239/0.5249, allocations: 73.67 kB / 1.037 GB, free: 3.945 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.525, allocations: 0 / 1.037 GB, free: 3.945 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.427e-05/0.525, allocations: 4 kB / 1.037 GB, free: 3.941 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.565e-06/0.525, allocations: 4 kB / 1.037 GB, free: 3.938 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002157/0.5252, allocations: 47.97 kB / 1.037 GB, free: 3.891 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009669/0.5262, allocations: 0.4926 MB / 1.037 GB, free: 3.348 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001798/0.5264, allocations: 54.5 kB / 1.037 GB, free: 3.285 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.389e-05/0.5264, allocations: 0 / 1.037 GB, free: 3.285 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.714e-05/0.5265, allocations: 38.58 kB / 1.037 GB, free: 3.238 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=3): time 1.573e-06/0.5265, allocations: 0 / 1.037 GB, free: 3.238 MB / 0.6823 GB Notification: Performance of matching and sorting (n=3): time 0.0004382/0.5269, allocations: 113.5 kB / 1.038 GB, free: 3.121 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.116e-05/0.527, allocations: 55.34 kB / 1.038 GB, free: 3.055 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001092/0.5281, allocations: 0.4969 MB / 1.038 GB, free: 2.547 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.777e-05/0.5281, allocations: 25.7 kB / 1.038 GB, free: 2.516 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001808/0.5283, allocations: 175.9 kB / 1.038 GB, free: 2.34 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.444e-05/0.5284, allocations: 7.906 kB / 1.038 GB, free: 2.332 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.66e-06/0.5284, allocations: 0 / 1.038 GB, free: 2.332 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001877/0.5286, allocations: 350.8 kB / 1.039 GB, free: 1.98 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.356e-05/0.5287, allocations: 15.94 kB / 1.039 GB, free: 1.965 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.329e-05/0.5287, allocations: 11.98 kB / 1.039 GB, free: 1.953 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.926e-05/0.5289, allocations: 19.98 kB / 1.039 GB, free: 1.934 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.5289, allocations: 0 / 1.039 GB, free: 1.934 MB / 0.6823 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002806/0.5292, allocations: 97.3 kB / 1.039 GB, free: 1.832 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.805e-05/0.5292, allocations: 7.938 kB / 1.039 GB, free: 1.824 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.936e-06/0.5292, allocations: 3.953 kB / 1.039 GB, free: 1.82 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.422e-05/0.5292, allocations: 0 / 1.039 GB, free: 1.82 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001126/0.5293, allocations: 8 kB / 1.039 GB, free: 1.812 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.5294, allocations: 0 / 1.039 GB, free: 1.812 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001235/0.5295, allocations: 15.83 kB / 1.039 GB, free: 1.797 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.759e-06/0.5295, allocations: 0 / 1.039 GB, free: 1.797 MB / 0.6823 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.0002428/0.5298, allocations: 185.8 kB / 1.039 GB, free: 1.605 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.447e-05/0.5299, allocations: 31.62 kB / 1.039 GB, free: 1.574 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003394/0.5302, allocations: 112.5 kB / 1.039 GB, free: 1.449 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.5302, allocations: 3.953 kB / 1.039 GB, free: 1.445 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.5303, allocations: 0 / 1.039 GB, free: 1.445 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.5303, allocations: 0 / 1.039 GB, free: 1.445 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004376/0.5307, allocations: 297.5 kB / 1.039 GB, free: 1.105 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.5307, allocations: 0 / 1.039 GB, free: 1.105 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.126e-05/0.5308, allocations: 15.98 kB / 1.039 GB, free: 1.09 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.5308, allocations: 0 / 1.039 GB, free: 1.09 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.999e-06/0.5309, allocations: 0 / 1.039 GB, free: 1.09 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.589e-06/0.5309, allocations: 4 kB / 1.039 GB, free: 1.086 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/0.5309, allocations: 3.953 kB / 1.039 GB, free: 1.082 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003409/0.5312, allocations: 195.1 kB / 1.04 GB, free: 0.875 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001973/0.5314, allocations: 136.7 kB / 1.04 GB, free: 0.7227 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.003e-05/0.5315, allocations: 0 / 1.04 GB, free: 0.7227 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001528/0.5317, allocations: 4 kB / 1.04 GB, free: 0.7188 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.549e-05/0.5317, allocations: 7.891 kB / 1.04 GB, free: 0.7109 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.646e-06/0.5317, allocations: 7.984 kB / 1.04 GB, free: 0.7031 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0007774/0.5325, allocations: 411.1 kB / 1.04 GB, free: 316 kB / 0.6823 GB Notification: Performance of sort global known variables: time 3.51e-07/0.5325, allocations: 0 / 1.04 GB, free: 316 kB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003821/0.5329, allocations: 27.94 kB / 1.04 GB, free: 288 kB / 0.6823 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.001062/0.534, allocations: 365.7 kB / 1.041 GB, free: 52 kB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002216/0.5342, allocations: 31.92 kB / 1.041 GB, free: 20 kB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 6.122e-06/0.5343, allocations: 8 kB / 1.041 GB, free: 12 kB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001178/0.5344, allocations: 20.03 kB / 1.041 GB, free: 15.99 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004082/0.5348, allocations: 35.56 kB / 1.041 GB, free: 15.96 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001241/0.5361, allocations: 0.5742 MB / 1.041 GB, free: 15.35 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004507/0.5365, allocations: 0.7911 MB / 1.042 GB, free: 14.54 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0001933/0.5367, allocations: 62.03 kB / 1.042 GB, free: 14.48 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001086/0.5369, allocations: 23.44 kB / 1.042 GB, free: 14.45 MB / 0.698 GB Notification: Performance of SimCode: time 1.102e-06/0.5369, allocations: 0 / 1.042 GB, free: 14.45 MB / 0.698 GB Notification: Performance of Templates: time 0.0101/0.547, allocations: 2.553 MB / 1.045 GB, free: 11.94 MB / 0.698 GB