Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.conf.json Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.009327/0.009333, allocations: 109.7 kB / 15.06 MB, free: 5.562 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.001132/0.001133, allocations: 181.2 kB / 15.95 MB, free: 5.523 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 1.793/1.793, allocations: 194.6 MB / 211.3 MB, free: 11.12 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 2.42/2.42, allocations: 236.2 MB / 492.6 MB, free: 11.3 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004596/0.0004597, allocations: 8 kB / 0.587 GB, free: 2.152 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6402/0.6407, allocations: 98.71 MB / 0.6833 GB, free: 16.88 MB / 0.5261 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003145/0.6439, allocations: 1.415 MB / 0.6847 GB, free: 15.86 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.00219/0.6462, allocations: 0.8029 MB / 0.6855 GB, free: 15.31 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.826e-05/0.6463, allocations: 1.438 kB / 0.6855 GB, free: 15.31 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.0005339/0.6469, allocations: 146.9 kB / 0.6857 GB, free: 15.27 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.000375/0.6472, allocations: 130.8 kB / 0.6858 GB, free: 15.22 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002326/0.6475, allocations: 69.55 kB / 0.6858 GB, free: 15.18 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0002312/0.6477, allocations: 129.3 kB / 0.686 GB, free: 15.12 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001345/0.6479, allocations: 40.62 kB / 0.686 GB, free: 15.11 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001581/0.6481, allocations: 74.42 kB / 0.6861 GB, free: 15.08 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002217/0.6483, allocations: 126.5 kB / 0.6862 GB, free: 15.05 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 3.419e-05/0.6483, allocations: 5.281 kB / 0.6862 GB, free: 15.05 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001161/0.6485, allocations: 31.08 kB / 0.6862 GB, free: 15.05 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 0.0001032/0.6486, allocations: 76.39 kB / 0.6863 GB, free: 15.02 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 5.084e-05/0.6487, allocations: 60.98 kB / 0.6864 GB, free: 14.96 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.0003799/0.649, allocations: 278.6 kB / 0.6866 GB, free: 14.9 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.703e-06/0.6491, allocations: 0 / 0.6866 GB, free: 14.9 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.105e-06/0.6491, allocations: 0 / 0.6866 GB, free: 14.9 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 7.213e-06/0.6491, allocations: 1.062 kB / 0.6866 GB, free: 14.9 MB / 0.5261 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.0007459/0.6498, allocations: 0.601 MB / 0.6872 GB, free: 14.34 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.6499, allocations: 10.62 kB / 0.6872 GB, free: 14.34 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.356e-05/0.65, allocations: 33.02 kB / 0.6873 GB, free: 14.32 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005857/0.6506, allocations: 377.2 kB / 0.6876 GB, free: 14.04 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.757e-05/0.6506, allocations: 12.45 kB / 0.6876 GB, free: 14.04 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.784e-05/0.6506, allocations: 3.438 kB / 0.6876 GB, free: 14.04 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002091/0.6509, allocations: 79.92 kB / 0.6877 GB, free: 13.98 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.019e-06/0.6509, allocations: 0.5156 kB / 0.6877 GB, free: 13.98 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.466e-05/0.6509, allocations: 5.438 kB / 0.6877 GB, free: 13.98 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.597e-06/0.6509, allocations: 1.375 kB / 0.6877 GB, free: 13.98 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001904/0.6511, allocations: 52.27 kB / 0.6878 GB, free: 13.96 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006898/0.6518, allocations: 496.1 kB / 0.6882 GB, free: 13.59 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001699/0.652, allocations: 52.33 kB / 0.6883 GB, free: 13.56 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 2.739e-05/0.6521, allocations: 0.8438 kB / 0.6883 GB, free: 13.56 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.971e-05/0.6521, allocations: 36.55 kB / 0.6883 GB, free: 13.52 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=3): time 2.405e-06/0.6521, allocations: 0 / 0.6883 GB, free: 13.52 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3): time 0.0003801/0.6525, allocations: 116.5 kB / 0.6884 GB, free: 13.45 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.316e-05/0.6525, allocations: 52.38 kB / 0.6885 GB, free: 13.39 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008182/0.6534, allocations: 0.5326 MB / 0.689 GB, free: 13.16 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.549e-05/0.6534, allocations: 30.8 kB / 0.689 GB, free: 13.12 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001271/0.6535, allocations: 163.8 kB / 0.6892 GB, free: 12.98 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 2.068e-05/0.6536, allocations: 13.72 kB / 0.6892 GB, free: 12.97 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.735e-06/0.6536, allocations: 0 / 0.6892 GB, free: 12.97 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 8.724e-05/0.6537, allocations: 342.7 kB / 0.6895 GB, free: 12.65 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.023e-05/0.6538, allocations: 16.94 kB / 0.6896 GB, free: 12.64 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.181e-05/0.6539, allocations: 18.2 kB / 0.6896 GB, free: 12.64 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001026/0.654, allocations: 79.64 kB / 0.6896 GB, free: 12.57 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.654, allocations: 0 / 0.6896 GB, free: 12.57 MB / 0.5261 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002875/0.6543, allocations: 159.3 kB / 0.6898 GB, free: 12.44 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 3.893e-05/0.6544, allocations: 63.77 kB / 0.6899 GB, free: 12.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.338e-06/0.6544, allocations: 0 / 0.6899 GB, free: 12.38 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/0.6544, allocations: 0.6562 kB / 0.6899 GB, free: 12.38 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.938e-05/0.6545, allocations: 8.75 kB / 0.6899 GB, free: 12.38 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.19e-06/0.6545, allocations: 1.438 kB / 0.6899 GB, free: 12.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001066/0.6546, allocations: 20.73 kB / 0.6899 GB, free: 12.36 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.412e-05/0.6547, allocations: 2.016 kB / 0.6899 GB, free: 12.36 MB / 0.5261 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 (5): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 2 * 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.0001839/0.6549, allocations: 181.1 kB / 0.6901 GB, free: 12.22 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.362e-05/0.655, allocations: 32.39 kB / 0.6901 GB, free: 12.2 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002945/0.6553, allocations: 103.1 kB / 0.6902 GB, free: 12.14 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.202e-06/0.6553, allocations: 5.062 kB / 0.6902 GB, free: 12.13 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.278e-06/0.6553, allocations: 0.7031 kB / 0.6902 GB, free: 12.13 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.628e-06/0.6553, allocations: 5.594 kB / 0.6902 GB, free: 12.13 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003403/0.6557, allocations: 275.4 kB / 0.6905 GB, free: 11.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.961e-06/0.6557, allocations: 0.8594 kB / 0.6905 GB, free: 11.9 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.261e-05/0.6558, allocations: 11.86 kB / 0.6905 GB, free: 11.9 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.49e-06/0.6558, allocations: 1.969 kB / 0.6905 GB, free: 11.9 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.095e-05/0.6558, allocations: 5.016 kB / 0.6905 GB, free: 11.89 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.816e-06/0.6558, allocations: 0.75 kB / 0.6905 GB, free: 11.89 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.331e-06/0.6558, allocations: 0.9062 kB / 0.6905 GB, free: 11.89 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002538/0.6561, allocations: 197 kB / 0.6907 GB, free: 11.73 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001068/0.6562, allocations: 113.5 kB / 0.6908 GB, free: 11.62 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.176e-05/0.6563, allocations: 1.844 kB / 0.6908 GB, free: 11.62 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000135/0.6564, allocations: 7.469 kB / 0.6908 GB, free: 11.61 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.55e-05/0.6565, allocations: 2.625 kB / 0.6908 GB, free: 11.61 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.536e-06/0.6565, allocations: 2.203 kB / 0.6908 GB, free: 11.61 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0005749/0.6571, allocations: 409.6 kB / 0.6912 GB, free: 11.43 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.645e-06/0.6571, allocations: 0 / 0.6912 GB, free: 11.43 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0003727/0.6575, allocations: 34.62 kB / 0.6912 GB, free: 11.42 MB / 0.5261 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.0009103/0.6584, allocations: 299.6 kB / 0.6915 GB, free: 11.26 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0002701/0.6587, allocations: 152.2 kB / 0.6917 GB, free: 11.12 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.931e-06/0.6587, allocations: 0 / 0.6917 GB, free: 11.12 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 8.502e-05/0.6588, allocations: 23.48 kB / 0.6917 GB, free: 11.11 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003261/0.6591, allocations: 27.91 kB / 0.6917 GB, free: 11.1 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009343/0.6601, allocations: 0.5403 MB / 0.6922 GB, free: 10.78 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003029/0.6604, allocations: 0.7836 MB / 0.693 GB, free: 10.07 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0001491/0.6606, allocations: 43.47 kB / 0.693 GB, free: 10.07 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.317e-05/0.6606, allocations: 25.86 kB / 0.6931 GB, free: 10.05 MB / 0.5261 GB Notification: Performance of SimCode: time 1.476e-06/0.6607, allocations: 4 kB / 0.6931 GB, free: 10.05 MB / 0.5261 GB Notification: Performance of Templates: time 0.007788/0.6684, allocations: 2.09 MB / 0.6951 GB, free: 9.836 MB / 0.5261 GB