Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Controls.Sources.Examples.DayType.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo", uses=false) 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 3.0.0/package.mo", uses=false) Using package Buildings with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/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) Using package Modelica_StateGraph2 with version 2.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo) Running command: translateModel(Buildings.Controls.Sources.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Controls.Sources.Examples.DayType") translateModel(Buildings.Controls.Sources.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Controls.Sources.Examples.DayType") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:257:38-257:110:writable] Warning: The file was not encoded in UTF-8: "

An important practical aspect of state machines is the abilit...". Defaulting to 7-bit ASCII with unknown characters replaced by '?'. To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY"). To change it in a package: add a file package.encoding at the top-level. Note: The Modelica Language Specification only allows files encoded in UTF-8. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:761:36-761:108:writable] Warning: The file was not encoded in UTF-8: "

The Modelica_StateGraph2 library is described in detail in (O...". Defaulting to 7-bit ASCII with unknown characters replaced by '?'. To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY"). To change it in a package: add a file package.encoding at the top-level. Note: The Modelica Language Specification only allows files encoded in UTF-8. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:1435:36-1435:108:writable] Warning: The file was not encoded in UTF-8: "

Main Authors:
SCode: time 0.5432/0.5453, allocations: 80.81 MB / 0.5904 GB, free: 22.18 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Controls.Sources.Examples.DayType): time 0.003999/0.5494, allocations: 1.418 MB / 0.5918 GB, free: 21.07 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008083/0.5503, allocations: 289.4 kB / 0.5921 GB, free: 20.85 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.288e-05/0.5504, allocations: 1.125 kB / 0.5921 GB, free: 20.85 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001838/0.5505, allocations: 18.73 kB / 0.5921 GB, free: 20.83 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 7.041e-05/0.5506, allocations: 17.73 kB / 0.5921 GB, free: 20.82 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004489/0.5511, allocations: 87.69 kB / 0.5922 GB, free: 20.76 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003766/0.5515, allocations: 227.8 kB / 0.5924 GB, free: 20.63 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.682e-05/0.5516, allocations: 12.41 kB / 0.5924 GB, free: 20.62 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001254/0.5517, allocations: 81.78 kB / 0.5925 GB, free: 20.59 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000229/0.552, allocations: 107.8 kB / 0.5926 GB, free: 20.52 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 7.728e-05/0.552, allocations: 18.72 kB / 0.5926 GB, free: 20.52 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.073e-05/0.5521, allocations: 16.81 kB / 0.5926 GB, free: 20.51 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001383/0.5523, allocations: 83.78 kB / 0.5927 GB, free: 20.43 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001461/0.5524, allocations: 111.3 kB / 0.5928 GB, free: 20.32 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00029/0.5527, allocations: 245.8 kB / 0.593 GB, free: 20.08 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.143e-05/0.5527, allocations: 4.75 kB / 0.593 GB, free: 20.07 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.5527, allocations: 0 / 0.593 GB, free: 20.07 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.243e-05/0.5528, allocations: 4.688 kB / 0.5931 GB, free: 20.07 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.001084/0.5538, allocations: 0.6927 MB / 0.5937 GB, free: 19.3 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.132e-05/0.5539, allocations: 8.031 kB / 0.5937 GB, free: 19.29 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.256e-05/0.554, allocations: 24.66 kB / 0.5938 GB, free: 19.27 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003366/0.5543, allocations: 271.8 kB / 0.594 GB, free: 18.97 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.586e-05/0.5544, allocations: 12.66 kB / 0.594 GB, free: 18.96 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.946e-05/0.5544, allocations: 20.89 kB / 0.5941 GB, free: 18.94 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005559/0.555, allocations: 457.5 kB / 0.5945 GB, free: 18.48 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.588e-05/0.555, allocations: 192 / 0.5945 GB, free: 18.48 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.306e-05/0.5551, allocations: 15.92 kB / 0.5945 GB, free: 18.46 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.062e-05/0.5551, allocations: 7.938 kB / 0.5945 GB, free: 18.46 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003445/0.5554, allocations: 318.8 kB / 0.5948 GB, free: 18.15 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005738/0.556, allocations: 0.5662 MB / 0.5954 GB, free: 17.53 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001023/0.557, allocations: 1.03 MB / 0.5964 GB, free: 16.46 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006366/0.5577, allocations: 0.6595 MB / 0.597 GB, free: 15.79 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.673e-05/0.5577, allocations: 4 kB / 0.597 GB, free: 15.79 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000684/0.5584, allocations: 486 kB / 0.5975 GB, free: 15.29 MB / 446.1 MB Notification: Performance of pre-optimization done (n=37): time 1.493e-06/0.5584, allocations: 0 / 0.5975 GB, free: 15.29 MB / 446.1 MB Notification: Performance of matching and sorting (n=37): time 0.001289/0.5597, allocations: 1.114 MB / 0.5986 GB, free: 14.17 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.534e-05/0.5598, allocations: 144.5 kB / 0.5987 GB, free: 14 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002029/0.56, allocations: 256.8 kB / 0.599 GB, free: 13.74 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.068e-05/0.5601, allocations: 41.64 kB / 0.599 GB, free: 13.69 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.21e-05/0.5602, allocations: 121.1 kB / 0.5991 GB, free: 13.57 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.623e-05/0.5602, allocations: 78.98 kB / 0.5992 GB, free: 13.49 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000127/0.5604, allocations: 114.1 kB / 0.5993 GB, free: 13.38 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.5605, allocations: 338.8 kB / 0.5996 GB, free: 13.04 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003089/0.5608, allocations: 328.7 kB / 0.5999 GB, free: 12.71 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003474/0.5612, allocations: 426.4 kB / 0.6003 GB, free: 12.26 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006748/0.5618, allocations: 0.77 MB / 0.6011 GB, free: 11.46 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/0.5619, allocations: 0 / 0.6011 GB, free: 11.46 MB / 446.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007839/0.5626, allocations: 0.8286 MB / 0.6019 GB, free: 10.62 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.497e-05/0.5627, allocations: 14.12 kB / 0.6019 GB, free: 10.61 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.898e-06/0.5627, allocations: 8.125 kB / 0.6019 GB, free: 10.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.681e-05/0.5627, allocations: 7.938 kB / 0.6019 GB, free: 10.59 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001708/0.5629, allocations: 43.89 kB / 0.602 GB, free: 10.55 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.224e-05/0.5629, allocations: 4 kB / 0.602 GB, free: 10.55 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002227/0.5632, allocations: 27.75 kB / 0.602 GB, free: 10.52 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002533/0.5634, allocations: 272 kB / 0.6023 GB, free: 10.25 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 45 (dayTypMonThr.skipIDayIncrement,$PRE.dayTypMonThr.skipIDayIncrement,dayTypMonThr.sampleTrigger,$whenCondition4,dayTypMonThr.iDay,$PRE.dayTypMonThr.iDay,dayTypMonThr.y[3],dayTypMonThr.y[2],dayTypMonThr.y[1],dayTypTwoWeeks.skipIDayIncrement,$PRE.dayTypTwoWeeks.skipIDayIncrement,dayTypTwoWeeks.sampleTrigger,$whenCondition3,dayTypTwoWeeks.iDay,$PRE.dayTypTwoWeeks.iDay,dayTypTwoWeeks.y[14],dayTypTwoWeeks.y[13],dayTypTwoWeeks.y[12],dayTypTwoWeeks.y[11],dayTypTwoWeeks.y[10],dayTypTwoWeeks.y[9],dayTypTwoWeeks.y[8],dayTypTwoWeeks.y[7],dayTypTwoWeeks.y[6],dayTypTwoWeeks.y[5],dayTypTwoWeeks.y[4],dayTypTwoWeeks.y[3],dayTypTwoWeeks.y[2],dayTypTwoWeeks.y[1],dayTypSat.skipIDayIncrement,$PRE.dayTypSat.skipIDayIncrement,dayTypSat.sampleTrigger,$whenCondition2,dayTypSat.iDay,$PRE.dayTypSat.iDay,dayTypSat.y[2],dayTypSat.y[1],dayTypMon.skipIDayIncrement,$PRE.dayTypMon.skipIDayIncrement,dayTypMon.sampleTrigger,$whenCondition1,dayTypMon.iDay,$PRE.dayTypMon.iDay,dayTypMon.y[2],dayTypMon.y[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 49 * 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.0001749/0.5636, allocations: 193.9 kB / 0.6024 GB, free: 10.05 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.462e-05/0.5637, allocations: 31.64 kB / 0.6025 GB, free: 10.02 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.191e-05/0.5637, allocations: 34.19 kB / 0.6025 GB, free: 9.992 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/0.5637, allocations: 12 kB / 0.6025 GB, free: 9.98 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.816e-06/0.5637, allocations: 0 / 0.6025 GB, free: 9.98 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-06/0.5638, allocations: 3.984 kB / 0.6025 GB, free: 9.977 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001489/0.5653, allocations: 1.714 MB / 0.6042 GB, free: 8.203 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.5653, allocations: 0 / 0.6042 GB, free: 8.203 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.682e-05/0.5653, allocations: 23.91 kB / 0.6042 GB, free: 8.18 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.5653, allocations: 4 kB / 0.6042 GB, free: 8.176 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.83e-05/0.5654, allocations: 20.11 kB / 0.6042 GB, free: 8.156 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.5654, allocations: 8 kB / 0.6043 GB, free: 8.148 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.5654, allocations: 7.922 kB / 0.6043 GB, free: 8.141 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008073/0.5662, allocations: 1.114 MB / 0.6053 GB, free: 7.008 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.225e-05/0.5662, allocations: 104.7 kB / 0.6054 GB, free: 6.887 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.781e-05/0.5663, allocations: 12 kB / 0.6055 GB, free: 6.875 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002369/0.5665, allocations: 8 kB / 0.6055 GB, free: 6.867 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.583e-05/0.5666, allocations: 47.94 kB / 0.6055 GB, free: 6.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002003/0.5668, allocations: 275.4 kB / 0.6058 GB, free: 6.551 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001275/0.567, allocations: 180.4 kB / 0.6059 GB, free: 6.375 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.567, allocations: 3.938 kB / 0.6059 GB, free: 6.371 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004199/0.5674, allocations: 64 kB / 0.606 GB, free: 6.309 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 37 (dayTypMon.sampleTrigger,$whenCondition1,dayTypMon.y[1],dayTypMon.y[2],dayTypMon.iDay,dayTypMon.skipIDayIncrement,dayTypSat.sampleTrigger,$whenCondition2,dayTypSat.y[1],dayTypSat.y[2],dayTypSat.iDay,dayTypSat.skipIDayIncrement,dayTypTwoWeeks.sampleTrigger,$whenCondition3,dayTypTwoWeeks.y[1],dayTypTwoWeeks.y[2],dayTypTwoWeeks.y[3],dayTypTwoWeeks.y[4],dayTypTwoWeeks.y[5],dayTypTwoWeeks.y[6],dayTypTwoWeeks.y[7],dayTypTwoWeeks.y[8],dayTypTwoWeeks.y[9],dayTypTwoWeeks.y[10],dayTypTwoWeeks.y[11],dayTypTwoWeeks.y[12],dayTypTwoWeeks.y[13],dayTypTwoWeeks.y[14],dayTypTwoWeeks.iDay,dayTypTwoWeeks.skipIDayIncrement,dayTypMonThr.sampleTrigger,$whenCondition4,dayTypMonThr.y[1],dayTypMonThr.y[2],dayTypMonThr.y[3],dayTypMonThr.iDay,dayTypMonThr.skipIDayIncrement) * Number of discrete states: 8 (dayTypMonThr.skipIDayIncrement,dayTypMonThr.iDay,dayTypTwoWeeks.skipIDayIncrement,dayTypTwoWeeks.iDay,dayTypSat.skipIDayIncrement,dayTypSat.iDay,dayTypMon.skipIDayIncrement,dayTypMon.iDay) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.0001373/0.5676, allocations: 139.2 kB / 0.6061 GB, free: 6.16 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0007434/0.5683, allocations: 0.7726 MB / 0.6069 GB, free: 5.387 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.5683, allocations: 0 / 0.6069 GB, free: 5.387 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003788/0.5687, allocations: 403.7 kB / 0.6073 GB, free: 4.992 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001577/0.5703, allocations: 372.5 kB / 0.6076 GB, free: 4.664 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009905/0.5713, allocations: 0.9711 MB / 0.6086 GB, free: 3.656 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001966/0.5715, allocations: 0.761 MB / 0.6093 GB, free: 2.875 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000201/0.5717, allocations: 90.92 kB / 0.6094 GB, free: 2.789 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001098/0.5718, allocations: 71.38 kB / 0.6095 GB, free: 2.719 MB / 446.1 MB Notification: Performance of SimCode: time 5.31e-07/0.5718, allocations: 0 / 0.6095 GB, free: 2.719 MB / 446.1 MB Notification: Performance of Templates: time 0.0122/0.584, allocations: 8.821 MB / 0.6181 GB, free: 9.988 MB / 462.1 MB make -j1 -f Buildings_3.0.0_Buildings.Controls.Sources.Examples.DayType.makefile (rm -f Buildings_3.0.0_Buildings.Controls.Sources.Examples.DayType.pipe ; mkfifo Buildings_3.0.0_Buildings.Controls.Sources.Examples.DayType.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Controls.Sources.Examples.DayType.pipe >> ../files/Buildings_3.0.0_Buildings.Controls.Sources.Examples.DayType.sim & ./Buildings_3.0.0_Buildings.Controls.Sources.Examples.DayType -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Controls.Sources.Examples.DayType.pipe 2>&1)