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.001552/0.001552, allocations: 104.2 kB / 16.27 MB, free: 6.363 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.001643/0.001643, allocations: 191 kB / 17.2 MB, free: 5.953 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.681/1.681, allocations: 205.1 MB / 223.1 MB, free: 12.29 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.789/1.789, allocations: 292.3 MB / 0.5495 GB, free: 17.64 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.001409/0.001409, allocations: 63.91 kB / 0.6722 GB, free: 6.555 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.232/0.2334, allocations: 114.6 MB / 0.784 GB, free: 3.887 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003629/0.2371, allocations: 1.769 MB / 0.7858 GB, free: 2.098 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001533/0.2386, allocations: 0.8664 MB / 0.7866 GB, free: 1.223 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001529/0.2388, allocations: 7.938 kB / 0.7866 GB, free: 1.215 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0005448/0.2394, allocations: 185.2 kB / 0.7868 GB, free: 1.039 MB / 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.0004717/0.2398, allocations: 164.5 kB / 0.7869 GB, free: 0.8789 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004622/0.2403, allocations: 177.1 kB / 0.7871 GB, free: 0.7109 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0003445/0.2407, allocations: 231.5 kB / 0.7873 GB, free: 496 kB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001643/0.2408, allocations: 65.92 kB / 0.7874 GB, free: 428 kB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002073/0.2411, allocations: 103.6 kB / 0.7875 GB, free: 324 kB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002142/0.2413, allocations: 151.5 kB / 0.7876 GB, free: 172 kB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 3.905e-05/0.2413, allocations: 16 kB / 0.7877 GB, free: 156 kB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001117/0.2414, allocations: 43.94 kB / 0.7877 GB, free: 112 kB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0001041/0.2416, allocations: 91.73 kB / 0.7878 GB, free: 20 kB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.3791/0.6206, allocations: 112.6 kB / 0.7879 GB, free: 46.32 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0004707/0.6211, allocations: 346.4 kB / 0.7882 GB, free: 46.29 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.6211, allocations: 0 / 0.7882 GB, free: 46.29 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.473e-06/0.6212, allocations: 0 / 0.7882 GB, free: 46.29 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.058e-05/0.6212, allocations: 0 / 0.7882 GB, free: 46.29 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.0007379/0.6219, allocations: 0.6071 MB / 0.7888 GB, free: 45.82 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.622, allocations: 8.125 kB / 0.7888 GB, free: 45.82 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.725e-05/0.622, allocations: 34.41 kB / 0.7889 GB, free: 45.8 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004272/0.6225, allocations: 414.8 kB / 0.7893 GB, free: 45.56 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.143e-05/0.6225, allocations: 3 kB / 0.7893 GB, free: 45.56 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.773e-05/0.6225, allocations: 4.25 kB / 0.7893 GB, free: 45.56 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001546/0.6227, allocations: 84.8 kB / 0.7893 GB, free: 45.52 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.6227, allocations: 0 / 0.7893 GB, free: 45.52 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.176e-05/0.6227, allocations: 0 / 0.7893 GB, free: 45.52 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.269e-06/0.6227, allocations: 6.062 kB / 0.7893 GB, free: 45.52 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001167/0.6228, allocations: 47.83 kB / 0.7894 GB, free: 45.52 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004997/0.6234, allocations: 490.3 kB / 0.7899 GB, free: 45.25 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001228/0.6235, allocations: 44.91 kB / 0.7899 GB, free: 45.22 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.027e-05/0.6235, allocations: 24.23 kB / 0.7899 GB, free: 45.21 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.48e-05/0.6236, allocations: 2.844 kB / 0.7899 GB, free: 45.21 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.379e-05/0.6236, allocations: 30.56 kB / 0.79 GB, free: 45.18 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=3): time 1.583e-06/0.6236, allocations: 1.766 kB / 0.79 GB, free: 45.18 MB / 0.6544 GB Notification: Performance of matching and sorting (n=3): time 0.0002751/0.6239, allocations: 103.2 kB / 0.7901 GB, free: 45.13 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.399e-05/0.6239, allocations: 58.28 kB / 0.7901 GB, free: 45.06 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000509/0.6244, allocations: 0.5488 MB / 0.7907 GB, free: 44.95 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 9.578e-06/0.6245, allocations: 28.33 kB / 0.7907 GB, free: 44.92 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 8.84e-05/0.6246, allocations: 171 kB / 0.7908 GB, free: 44.83 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.966e-05/0.6246, allocations: 15.12 kB / 0.7909 GB, free: 44.83 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.895e-05/0.6246, allocations: 14 kB / 0.7909 GB, free: 44.81 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 6.228e-05/0.6247, allocations: 342.3 kB / 0.7912 GB, free: 44.5 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.719e-05/0.6247, allocations: 13.36 kB / 0.7912 GB, free: 44.5 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.763e-05/0.6248, allocations: 14.05 kB / 0.7912 GB, free: 44.5 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.157e-05/0.6249, allocations: 46.78 kB / 0.7913 GB, free: 44.49 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.6249, allocations: 0 / 0.7913 GB, free: 44.49 MB / 0.6544 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001402/0.625, allocations: 85.92 kB / 0.7913 GB, free: 44.45 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/0.625, allocations: 8.906 kB / 0.7914 GB, free: 44.45 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.6251, allocations: 0 / 0.7914 GB, free: 44.45 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.6251, allocations: 0 / 0.7914 GB, free: 44.45 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.346e-05/0.6252, allocations: 11.11 kB / 0.7914 GB, free: 44.45 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.6252, allocations: 5.031 kB / 0.7914 GB, free: 44.44 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.151e-05/0.6252, allocations: 3.812 kB / 0.7914 GB, free: 44.44 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.551e-06/0.6252, allocations: 0 / 0.7914 GB, free: 44.44 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.0001106/0.6254, allocations: 182.4 kB / 0.7915 GB, free: 44.33 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.649e-05/0.6254, allocations: 28.75 kB / 0.7916 GB, free: 44.31 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.607e-05/0.6255, allocations: 33.81 kB / 0.7916 GB, free: 44.3 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.6255, allocations: 0 / 0.7916 GB, free: 44.3 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.239e-06/0.6255, allocations: 8.188 kB / 0.7916 GB, free: 44.3 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.6255, allocations: 2.625 kB / 0.7916 GB, free: 44.3 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002072/0.6257, allocations: 286.3 kB / 0.7919 GB, free: 44.11 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.6257, allocations: 0.6406 kB / 0.7919 GB, free: 44.11 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.52e-05/0.6258, allocations: 17.5 kB / 0.7919 GB, free: 44.11 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.6258, allocations: 0 / 0.7919 GB, free: 44.11 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.644e-06/0.6258, allocations: 2.625 kB / 0.7919 GB, free: 44.11 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.6258, allocations: 0 / 0.7919 GB, free: 44.11 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.6258, allocations: 3.938 kB / 0.7919 GB, free: 44.1 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001575/0.626, allocations: 190 kB / 0.7921 GB, free: 43.96 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 6.271e-05/0.626, allocations: 116.7 kB / 0.7922 GB, free: 43.85 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.071e-05/0.6261, allocations: 0 / 0.7922 GB, free: 43.85 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.712e-05/0.6262, allocations: 2.625 kB / 0.7922 GB, free: 43.85 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.6e-05/0.6262, allocations: 7.562 kB / 0.7922 GB, free: 43.84 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.087e-06/0.6262, allocations: 4.375 kB / 0.7922 GB, free: 43.84 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0003549/0.6266, allocations: 415.5 kB / 0.7926 GB, free: 43.76 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6266, allocations: 0 / 0.7926 GB, free: 43.76 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002627/0.6269, allocations: 28.94 kB / 0.7926 GB, free: 43.75 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.0008002/0.6277, allocations: 360.4 kB / 0.793 GB, free: 43.66 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0001503/0.6278, allocations: 31.52 kB / 0.793 GB, free: 43.66 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.848e-06/0.6278, allocations: 5.312 kB / 0.793 GB, free: 43.66 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 4.773e-05/0.6279, allocations: 19.62 kB / 0.793 GB, free: 43.66 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000425/0.6283, allocations: 45.25 kB / 0.7931 GB, free: 43.66 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006653/0.629, allocations: 0.5513 MB / 0.7936 GB, free: 43.41 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002045/0.6292, allocations: 0.7811 MB / 0.7944 GB, free: 42.72 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.451e-05/0.6293, allocations: 28.47 kB / 0.7944 GB, free: 42.71 MB / 0.6544 GB Notification: Performance of SimCode: time 3.41e-07/0.6293, allocations: 0.75 kB / 0.7944 GB, free: 42.71 MB / 0.6544 GB Notification: Performance of Templates: time 0.00529/0.6346, allocations: 3.537 MB / 0.7979 GB, free: 42.5 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)