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.2184/0.2205, allocations: 80.85 MB / 0.6706 GB, free: 2.039 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Sources.Examples.DayType): time 0.002956/0.2236, allocations: 1.413 MB / 0.672 GB, free: 0.6172 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.000697/0.2243, allocations: 275.1 kB / 0.6722 GB, free: 356 kB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.471e-05/0.2244, allocations: 0 / 0.6722 GB, free: 356 kB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.000197/0.2246, allocations: 19.8 kB / 0.6723 GB, free: 336 kB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 6.253e-05/0.2246, allocations: 23.78 kB / 0.6723 GB, free: 312 kB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004042/0.2251, allocations: 83.48 kB / 0.6724 GB, free: 232 kB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0003406/0.2254, allocations: 240 kB / 0.6726 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 6.5e-05/0.2255, allocations: 5.125 kB / 0.6726 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 8.59e-05/0.2256, allocations: 87.73 kB / 0.6727 GB, free: 15.89 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000182/0.2258, allocations: 103.7 kB / 0.6728 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 4.106e-05/0.2258, allocations: 16 kB / 0.6728 GB, free: 15.78 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 3.53e-05/0.2258, allocations: 16 kB / 0.6728 GB, free: 15.76 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0001189/0.226, allocations: 83.78 kB / 0.6729 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0001251/0.2261, allocations: 107.3 kB / 0.673 GB, free: 15.57 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0002842/0.2264, allocations: 263 kB / 0.6732 GB, free: 15.32 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 6.752e-06/0.2264, allocations: 4 kB / 0.6732 GB, free: 15.31 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.895e-06/0.2264, allocations: 0 / 0.6732 GB, free: 15.31 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 9.448e-06/0.2264, allocations: 0 / 0.6732 GB, free: 15.31 MB / 0.5137 GB 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.001108/0.2275, allocations: 0.6901 MB / 0.6739 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.681e-05/0.2276, allocations: 12.03 kB / 0.6739 GB, free: 14.53 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.546e-05/0.2277, allocations: 28.56 kB / 0.674 GB, free: 14.5 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003282/0.228, allocations: 270.8 kB / 0.6742 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.208e-05/0.228, allocations: 16.66 kB / 0.6742 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.032e-05/0.2281, allocations: 16.38 kB / 0.6743 GB, free: 14.17 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005924/0.2287, allocations: 463.3 kB / 0.6747 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.321e-05/0.2287, allocations: 192 / 0.6747 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.012e-05/0.2288, allocations: 7.938 kB / 0.6747 GB, free: 13.69 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.487e-06/0.2288, allocations: 4 kB / 0.6747 GB, free: 13.69 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004068/0.2292, allocations: 331.7 kB / 0.675 GB, free: 13.36 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000704/0.2299, allocations: 0.5585 MB / 0.6756 GB, free: 12.75 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001148/0.231, allocations: 1.029 MB / 0.6766 GB, free: 11.68 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007173/0.2318, allocations: 0.6633 MB / 0.6772 GB, free: 11 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 3.507e-05/0.2318, allocations: 7.906 kB / 0.6772 GB, free: 11 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006365/0.2325, allocations: 482.2 kB / 0.6777 GB, free: 10.5 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=37): time 1.723e-06/0.2325, allocations: 0 / 0.6777 GB, free: 10.5 MB / 0.5137 GB Notification: Performance of matching and sorting (n=37): time 0.001485/0.234, allocations: 1.114 MB / 0.6788 GB, free: 9.379 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001063/0.2341, allocations: 140.5 kB / 0.6789 GB, free: 9.211 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003039/0.2344, allocations: 256.8 kB / 0.6792 GB, free: 8.953 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 4.009e-05/0.2344, allocations: 37.7 kB / 0.6792 GB, free: 8.91 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 9.63e-05/0.2345, allocations: 121.1 kB / 0.6793 GB, free: 8.789 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 9.866e-05/0.2347, allocations: 83.14 kB / 0.6794 GB, free: 8.707 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001471/0.2348, allocations: 106.1 kB / 0.6795 GB, free: 8.598 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0002408/0.2351, allocations: 346.8 kB / 0.6798 GB, free: 8.25 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004412/0.2355, allocations: 332.6 kB / 0.6801 GB, free: 7.922 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004766/0.236, allocations: 422.5 kB / 0.6805 GB, free: 7.473 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009475/0.2369, allocations: 0.7749 MB / 0.6813 GB, free: 6.664 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.237, allocations: 4 kB / 0.6813 GB, free: 6.66 MB / 0.5137 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001095/0.2381, allocations: 0.8327 MB / 0.6821 GB, free: 5.82 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.651e-05/0.2381, allocations: 13.19 kB / 0.6821 GB, free: 5.809 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.906e-06/0.2381, allocations: 0 / 0.6821 GB, free: 5.809 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.267e-05/0.2382, allocations: 8 kB / 0.6821 GB, free: 5.801 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001774/0.2383, allocations: 35.91 kB / 0.6822 GB, free: 5.766 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.327e-05/0.2384, allocations: 7.938 kB / 0.6822 GB, free: 5.758 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002535/0.2386, allocations: 39.73 kB / 0.6822 GB, free: 5.719 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000337/0.239, allocations: 263.4 kB / 0.6825 GB, free: 5.461 MB / 0.5137 GB 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.0002502/0.2392, allocations: 193.8 kB / 0.6826 GB, free: 5.262 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.714e-05/0.2393, allocations: 27.66 kB / 0.6827 GB, free: 5.234 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.785e-05/0.2394, allocations: 38.45 kB / 0.6827 GB, free: 5.195 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.478e-06/0.2394, allocations: 4 kB / 0.6827 GB, free: 5.191 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.281e-05/0.2394, allocations: 4 kB / 0.6827 GB, free: 5.188 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.092e-05/0.2394, allocations: 7.969 kB / 0.6827 GB, free: 5.18 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002225/0.2417, allocations: 1.71 MB / 0.6844 GB, free: 3.41 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.757e-06/0.2417, allocations: 7.984 kB / 0.6844 GB, free: 3.402 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.566e-05/0.2417, allocations: 23.86 kB / 0.6844 GB, free: 3.379 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.991e-06/0.2417, allocations: 4 kB / 0.6844 GB, free: 3.375 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.409e-05/0.2418, allocations: 19.97 kB / 0.6844 GB, free: 3.355 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.2418, allocations: 0 / 0.6844 GB, free: 3.355 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.2418, allocations: 4 kB / 0.6845 GB, free: 3.352 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001249/0.2431, allocations: 1.124 MB / 0.6856 GB, free: 2.211 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 9.059e-05/0.2432, allocations: 108.7 kB / 0.6857 GB, free: 2.086 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.938e-05/0.2432, allocations: 12 kB / 0.6857 GB, free: 2.074 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002544/0.2435, allocations: 4 kB / 0.6857 GB, free: 2.07 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001298/0.2436, allocations: 55.94 kB / 0.6857 GB, free: 2.016 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003418/0.244, allocations: 283.5 kB / 0.686 GB, free: 1.738 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0002292/0.2442, allocations: 176.4 kB / 0.6862 GB, free: 1.57 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2442, allocations: 0 / 0.6862 GB, free: 1.57 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0004649/0.2447, allocations: 60 kB / 0.6862 GB, free: 1.512 MB / 0.5137 GB 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.0002088/0.2449, allocations: 131.2 kB / 0.6863 GB, free: 1.375 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001076/0.246, allocations: 0.7414 MB / 0.6871 GB, free: 0.6328 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.04e-06/0.246, allocations: 4.25 kB / 0.6871 GB, free: 0.6289 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0005555/0.2466, allocations: 407.5 kB / 0.6875 GB, free: 236 kB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00182/0.2484, allocations: 374.8 kB / 0.6878 GB, free: 15.9 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001389/0.2498, allocations: 0.9668 MB / 0.6888 GB, free: 14.89 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004843/0.2503, allocations: 0.7608 MB / 0.6895 GB, free: 14.11 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.000268/0.2506, allocations: 90.92 kB / 0.6896 GB, free: 14.02 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001484/0.2507, allocations: 71.38 kB / 0.6897 GB, free: 13.95 MB / 0.5294 GB Notification: Performance of SimCode: time 4.41e-07/0.2507, allocations: 4 kB / 0.6897 GB, free: 13.94 MB / 0.5294 GB Notification: Performance of Templates: time 0.01525/0.266, allocations: 8.843 MB / 0.6983 GB, free: 5.18 MB / 0.5294 GB 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)