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.001428/0.001428, allocations: 108.2 kB / 16.37 MB, free: 5.996 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.001657/0.001657, allocations: 191.4 kB / 17.31 MB, free: 5.605 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.538/1.538, allocations: 205.1 MB / 223.2 MB, free: 12.25 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.858/1.858, allocations: 292.3 MB / 0.5496 GB, free: 17.55 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.001378/0.001379, allocations: 72.11 kB / 0.6729 GB, free: 5.855 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2262/0.2276, allocations: 114.6 MB / 0.7848 GB, free: 3.188 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003245/0.2308, allocations: 1.776 MB / 0.7865 GB, free: 1.395 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001338/0.2322, allocations: 0.8704 MB / 0.7874 GB, free: 0.5156 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.401e-05/0.2323, allocations: 0 / 0.7874 GB, free: 0.5156 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0005406/0.2329, allocations: 193.3 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.0003888/0.2333, allocations: 156.6 kB / 0.7877 GB, free: 184 kB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004002/0.2337, allocations: 179 kB / 0.7879 GB, free: 8 kB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.3787/0.6124, allocations: 235.8 kB / 0.7881 GB, free: 46.57 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001982/0.6126, allocations: 45.52 kB / 0.7882 GB, free: 46.57 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001943/0.6128, allocations: 102.8 kB / 0.7883 GB, free: 46.56 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001949/0.613, allocations: 157 kB / 0.7884 GB, free: 46.54 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 4.056e-05/0.6131, allocations: 17.78 kB / 0.7884 GB, free: 46.54 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001332/0.6132, allocations: 51.27 kB / 0.7885 GB, free: 46.54 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 9.821e-05/0.6133, allocations: 84.95 kB / 0.7885 GB, free: 46.53 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 9.566e-05/0.6134, allocations: 114 kB / 0.7887 GB, free: 46.48 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0003747/0.6138, allocations: 362.6 kB / 0.789 GB, free: 46.44 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.6138, allocations: 0 / 0.789 GB, free: 46.44 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.052e-06/0.6139, allocations: 0 / 0.789 GB, free: 46.44 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 7.124e-06/0.6139, allocations: 0 / 0.789 GB, free: 46.44 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.0007292/0.6146, allocations: 0.5968 MB / 0.7896 GB, free: 45.98 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.6146, allocations: 11.22 kB / 0.7896 GB, free: 45.98 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.456e-05/0.6147, allocations: 38.02 kB / 0.7896 GB, free: 45.96 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004492/0.6152, allocations: 414.8 kB / 0.79 GB, free: 45.71 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.229e-05/0.6152, allocations: 6.906 kB / 0.79 GB, free: 45.71 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.762e-05/0.6152, allocations: 3.219 kB / 0.79 GB, free: 45.71 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001725/0.6154, allocations: 82.11 kB / 0.7901 GB, free: 45.68 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.308e-06/0.6154, allocations: 0 / 0.7901 GB, free: 45.68 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.231e-05/0.6154, allocations: 3.188 kB / 0.7901 GB, free: 45.68 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.703e-06/0.6155, allocations: 1.562 kB / 0.7901 GB, free: 45.68 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001224/0.6156, allocations: 47.48 kB / 0.7902 GB, free: 45.68 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005447/0.6161, allocations: 490.6 kB / 0.7906 GB, free: 45.4 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001289/0.6163, allocations: 49.7 kB / 0.7907 GB, free: 45.38 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.123e-05/0.6163, allocations: 17.52 kB / 0.7907 GB, free: 45.37 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.754e-05/0.6164, allocations: 1.281 kB / 0.7907 GB, free: 45.37 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.434e-05/0.6164, allocations: 37.42 kB / 0.7907 GB, free: 45.33 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.6164, allocations: 0 / 0.7907 GB, free: 45.33 MB / 0.6544 GB Notification: Performance of matching and sorting (n=3): time 0.0002925/0.6167, allocations: 102.5 kB / 0.7908 GB, free: 45.29 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.555e-05/0.6167, allocations: 55.34 kB / 0.7909 GB, free: 45.22 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000532/0.6173, allocations: 0.554 MB / 0.7914 GB, free: 45.11 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.005e-05/0.6173, allocations: 25.7 kB / 0.7915 GB, free: 45.08 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 9.744e-05/0.6174, allocations: 173.3 kB / 0.7916 GB, free: 44.99 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.208e-05/0.6174, allocations: 14.41 kB / 0.7916 GB, free: 44.98 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.083e-05/0.6175, allocations: 12.84 kB / 0.7916 GB, free: 44.96 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 8.653e-05/0.6175, allocations: 349.3 kB / 0.792 GB, free: 44.65 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.69e-05/0.6176, allocations: 13.95 kB / 0.792 GB, free: 44.65 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.649e-05/0.6176, allocations: 13.72 kB / 0.792 GB, free: 44.65 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.024e-05/0.6177, allocations: 36.17 kB / 0.792 GB, free: 44.64 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.6177, allocations: 0 / 0.792 GB, free: 44.64 MB / 0.6544 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001396/0.6179, allocations: 92.44 kB / 0.7921 GB, free: 44.6 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.6179, allocations: 6.938 kB / 0.7921 GB, free: 44.6 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.6179, allocations: 0 / 0.7921 GB, free: 44.6 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.874e-05/0.6179, allocations: 5.953 kB / 0.7921 GB, free: 44.6 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.594e-05/0.618, allocations: 5.25 kB / 0.7921 GB, free: 44.6 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.823e-06/0.618, allocations: 3.938 kB / 0.7921 GB, free: 44.59 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.359e-05/0.6181, allocations: 5.672 kB / 0.7922 GB, free: 44.59 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.033e-06/0.6181, allocations: 3.125 kB / 0.7922 GB, free: 44.59 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.0001253/0.6183, allocations: 178.9 kB / 0.7923 GB, free: 44.48 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.831e-05/0.6183, allocations: 30.16 kB / 0.7924 GB, free: 44.46 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.938e-05/0.6184, allocations: 33.36 kB / 0.7924 GB, free: 44.45 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.6184, allocations: 0 / 0.7924 GB, free: 44.45 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.6184, allocations: 9.891 kB / 0.7924 GB, free: 44.45 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.6184, allocations: 0 / 0.7924 GB, free: 44.45 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000247/0.6187, allocations: 288.6 kB / 0.7927 GB, free: 44.26 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.6187, allocations: 0 / 0.7927 GB, free: 44.26 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.133e-05/0.6187, allocations: 8.297 kB / 0.7927 GB, free: 44.26 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.754e-06/0.6187, allocations: 1.062 kB / 0.7927 GB, free: 44.26 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.295e-06/0.6187, allocations: 2.656 kB / 0.7927 GB, free: 44.26 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.6188, allocations: 0.9375 kB / 0.7927 GB, free: 44.26 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.6188, allocations: 5.031 kB / 0.7927 GB, free: 44.26 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001758/0.6189, allocations: 190.8 kB / 0.7929 GB, free: 44.11 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 6.948e-05/0.619, allocations: 112.8 kB / 0.793 GB, free: 44 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.93e-05/0.6191, allocations: 0 / 0.793 GB, free: 44 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.543e-05/0.6191, allocations: 2.531 kB / 0.793 GB, free: 44 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.661e-05/0.6192, allocations: 14.7 kB / 0.793 GB, free: 44 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.879e-06/0.6192, allocations: 2.312 kB / 0.793 GB, free: 44 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0003703/0.6196, allocations: 417.2 kB / 0.7934 GB, free: 43.91 MB / 0.6544 GB Notification: Performance of sort global known variables: time 5.81e-07/0.6196, allocations: 0.8438 kB / 0.7934 GB, free: 43.91 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002542/0.6199, allocations: 32.88 kB / 0.7934 GB, free: 43.91 MB / 0.6544 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.0008488/0.6207, allocations: 355.1 kB / 0.7938 GB, free: 43.82 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0001593/0.6209, allocations: 37.67 kB / 0.7938 GB, free: 43.82 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.6209, allocations: 0 / 0.7938 GB, free: 43.82 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 4.585e-05/0.6209, allocations: 18.56 kB / 0.7938 GB, free: 43.82 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004142/0.6214, allocations: 44.7 kB / 0.7939 GB, free: 43.82 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007691/0.6221, allocations: 0.5409 MB / 0.7944 GB, free: 43.56 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002289/0.6224, allocations: 0.7899 MB / 0.7952 GB, free: 42.87 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.012e-05/0.6225, allocations: 23.75 kB / 0.7952 GB, free: 42.86 MB / 0.6544 GB Notification: Performance of SimCode: time 2.81e-07/0.6225, allocations: 0 / 0.7952 GB, free: 42.86 MB / 0.6544 GB Notification: Performance of Templates: time 0.005648/0.6281, allocations: 3.538 MB / 0.7986 GB, free: 42.66 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)