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.001261/0.001261, allocations: 108.1 kB / 16.38 MB, free: 5.547 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.001343/0.001343, allocations: 188.2 kB / 17.31 MB, free: 5.188 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.384/1.384, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.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.822/1.822, allocations: 292.3 MB / 0.5496 GB, free: 17.61 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.001617/0.001617, allocations: 63.91 kB / 0.6729 GB, free: 5.855 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2171/0.2187, allocations: 114.6 MB / 0.7848 GB, free: 3.184 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.00373/0.2225, allocations: 1.772 MB / 0.7865 GB, free: 1.395 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.00161/0.2241, allocations: 0.8742 MB / 0.7874 GB, free: 0.5117 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001723/0.2243, allocations: 3.938 kB / 0.7874 GB, free: 0.5078 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0006541/0.225, allocations: 185.5 kB / 0.7876 GB, free: 340 kB / 0.6544 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.0004875/0.2255, allocations: 156.5 kB / 0.7877 GB, free: 184 kB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004918/0.226, allocations: 184 kB / 0.7879 GB, free: 4 kB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.3873/0.6133, allocations: 237.4 kB / 0.7881 GB, free: 46.55 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001909/0.6135, allocations: 48.92 kB / 0.7882 GB, free: 46.55 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000199/0.6138, allocations: 96.98 kB / 0.7883 GB, free: 46.55 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002043/0.614, allocations: 152.9 kB / 0.7884 GB, free: 46.53 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 3.809e-05/0.614, allocations: 22.34 kB / 0.7884 GB, free: 46.53 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001323/0.6142, allocations: 49.78 kB / 0.7885 GB, free: 46.53 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 9.667e-05/0.6143, allocations: 84.12 kB / 0.7886 GB, free: 46.52 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 9.793e-05/0.6144, allocations: 119.1 kB / 0.7887 GB, free: 46.47 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0003375/0.6147, allocations: 361.2 kB / 0.789 GB, free: 46.43 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.6147, allocations: 0 / 0.789 GB, free: 46.43 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.623e-06/0.6147, allocations: 0 / 0.789 GB, free: 46.43 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 5.881e-06/0.6147, allocations: 0 / 0.789 GB, free: 46.43 MB / 0.6544 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.000644/0.6154, allocations: 0.593 MB / 0.7896 GB, free: 45.96 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.6154, allocations: 10.66 kB / 0.7896 GB, free: 45.96 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.604e-05/0.6155, allocations: 36.22 kB / 0.7896 GB, free: 45.95 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004077/0.6159, allocations: 419.5 kB / 0.79 GB, free: 45.7 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.007e-05/0.6159, allocations: 4 kB / 0.79 GB, free: 45.7 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.685e-05/0.616, allocations: 9.688 kB / 0.79 GB, free: 45.7 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001441/0.6161, allocations: 73.28 kB / 0.7901 GB, free: 45.66 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-06/0.6161, allocations: 4.281 kB / 0.7901 GB, free: 45.66 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.13e-05/0.6161, allocations: 9.938 kB / 0.7901 GB, free: 45.66 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.089e-06/0.6161, allocations: 0 / 0.7901 GB, free: 45.66 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001105/0.6163, allocations: 43.7 kB / 0.7902 GB, free: 45.66 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000477/0.6168, allocations: 483.7 kB / 0.7906 GB, free: 45.39 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001123/0.6169, allocations: 50.17 kB / 0.7907 GB, free: 45.37 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.824e-05/0.6169, allocations: 22.11 kB / 0.7907 GB, free: 45.36 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.483e-05/0.617, allocations: 5.953 kB / 0.7907 GB, free: 45.36 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.372e-05/0.617, allocations: 30.56 kB / 0.7907 GB, free: 45.32 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.617, allocations: 0 / 0.7907 GB, free: 45.32 MB / 0.6544 GB Notification: Performance of matching and sorting (n=3): time 0.0002566/0.6173, allocations: 100.4 kB / 0.7908 GB, free: 45.27 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.627e-05/0.6173, allocations: 51.41 kB / 0.7909 GB, free: 45.21 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004941/0.6178, allocations: 0.5576 MB / 0.7914 GB, free: 45.1 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.115e-05/0.6178, allocations: 25.81 kB / 0.7915 GB, free: 45.07 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 9.111e-05/0.6179, allocations: 182.2 kB / 0.7916 GB, free: 44.97 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.672e-05/0.6179, allocations: 9.906 kB / 0.7916 GB, free: 44.97 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.924e-05/0.618, allocations: 16.22 kB / 0.7917 GB, free: 44.95 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 6.632e-05/0.618, allocations: 341.8 kB / 0.792 GB, free: 44.64 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.506e-05/0.6181, allocations: 14.52 kB / 0.792 GB, free: 44.64 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.646e-05/0.6181, allocations: 14.44 kB / 0.792 GB, free: 44.64 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.092e-05/0.6182, allocations: 39.17 kB / 0.792 GB, free: 44.63 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.6182, allocations: 0.6875 kB / 0.792 GB, free: 44.63 MB / 0.6544 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001349/0.6184, allocations: 87.09 kB / 0.7921 GB, free: 44.59 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.395e-05/0.6184, allocations: 6.031 kB / 0.7921 GB, free: 44.59 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.6184, allocations: 0 / 0.7921 GB, free: 44.59 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.468e-05/0.6184, allocations: 1.688 kB / 0.7921 GB, free: 44.59 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.007e-05/0.6185, allocations: 9.797 kB / 0.7921 GB, free: 44.59 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.088e-06/0.6185, allocations: 7.062 kB / 0.7922 GB, free: 44.58 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.998e-05/0.6186, allocations: 3.562 kB / 0.7922 GB, free: 44.58 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.893e-06/0.6186, allocations: 2.625 kB / 0.7922 GB, free: 44.58 MB / 0.6544 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.0001101/0.6187, allocations: 183.7 kB / 0.7923 GB, free: 44.47 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.747e-05/0.6188, allocations: 26.12 kB / 0.7924 GB, free: 44.45 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.797e-05/0.6188, allocations: 37.81 kB / 0.7924 GB, free: 44.44 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.6188, allocations: 0.5 kB / 0.7924 GB, free: 44.44 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.6188, allocations: 5.281 kB / 0.7924 GB, free: 44.44 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 6.903e-05/0.6189, allocations: 118.2 kB / 0.7925 GB, free: 44.33 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.979e-05/0.6189, allocations: 2.625 kB / 0.7925 GB, free: 44.33 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.132e-05/0.619, allocations: 3.281 kB / 0.7925 GB, free: 44.33 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.71e-05/0.6191, allocations: 7.125 kB / 0.7925 GB, free: 44.33 MB / 0.6544 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001475/0.6192, allocations: 139.7 kB / 0.7927 GB, free: 44.22 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001721/0.6194, allocations: 263.6 kB / 0.7929 GB, free: 44 MB / 0.6544 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 5.014e-05/0.6195, allocations: 14.48 kB / 0.7929 GB, free: 44 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0003598/0.6198, allocations: 428.1 kB / 0.7933 GB, free: 43.91 MB / 0.6544 GB Notification: Performance of Backend: time 3.11e-07/0.6198, allocations: 1.625 kB / 0.7933 GB, free: 43.91 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.00132/0.6212, allocations: 447.9 kB / 0.7938 GB, free: 43.84 MB / 0.6544 GB Notification: Performance of SimCode: time 0.0008358/0.622, allocations: 0.953 MB / 0.7947 GB, free: 43.15 MB / 0.6544 GB Notification: Performance of Templates: time 0.005523/0.6276, allocations: 2.676 MB / 0.7973 GB, free: 43.01 MB / 0.6544 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)