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.2162/0.2186, allocations: 80.83 MB / 0.6706 GB, free: 2.031 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Sources.Examples.DayType): time 0.003802/0.2225, allocations: 1.421 MB / 0.672 GB, free: 0.6016 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008719/0.2234, allocations: 271.2 kB / 0.6722 GB, free: 344 kB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001017/0.2235, allocations: 7.938 kB / 0.6723 GB, free: 336 kB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001978/0.2238, allocations: 11.88 kB / 0.6723 GB, free: 324 kB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001022/0.2239, allocations: 15.86 kB / 0.6723 GB, free: 308 kB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005353/0.2244, allocations: 87.78 kB / 0.6724 GB, free: 220 kB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0004331/0.2249, allocations: 239.9 kB / 0.6726 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 7.932e-05/0.225, allocations: 5.125 kB / 0.6726 GB, free: 15.97 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000182/0.2252, allocations: 83.81 kB / 0.6727 GB, free: 15.89 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002166/0.2254, allocations: 103.7 kB / 0.6728 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 6.014e-05/0.2255, allocations: 20 kB / 0.6728 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 3.768e-05/0.2255, allocations: 16 kB / 0.6728 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0001401/0.2256, allocations: 83.78 kB / 0.6729 GB, free: 15.67 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0001349/0.2258, allocations: 111.3 kB / 0.673 GB, free: 15.56 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0003933/0.2262, allocations: 263 kB / 0.6732 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 7.804e-06/0.2262, allocations: 0 / 0.6732 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.795e-06/0.2262, allocations: 0 / 0.6732 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.269e-05/0.2262, allocations: 0 / 0.6732 GB, free: 15.3 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.001393/0.2276, allocations: 0.694 MB / 0.6739 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 5.28e-05/0.2277, allocations: 11.97 kB / 0.6739 GB, free: 14.51 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001207/0.2278, allocations: 28.56 kB / 0.674 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004525/0.2283, allocations: 270.8 kB / 0.6742 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.553e-05/0.2283, allocations: 12.66 kB / 0.6742 GB, free: 14.17 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.234e-05/0.2284, allocations: 16.38 kB / 0.6742 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007905/0.2292, allocations: 455.3 kB / 0.6747 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.678e-05/0.2292, allocations: 4.125 kB / 0.6747 GB, free: 13.69 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.047e-05/0.2292, allocations: 11.92 kB / 0.6747 GB, free: 13.68 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.2293, allocations: 8 kB / 0.6747 GB, free: 13.67 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004475/0.2297, allocations: 323.7 kB / 0.675 GB, free: 13.36 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007879/0.2305, allocations: 0.5624 MB / 0.6756 GB, free: 12.73 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001322/0.2318, allocations: 1.037 MB / 0.6766 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007884/0.2326, allocations: 0.6548 MB / 0.6772 GB, free: 11 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 4.018e-05/0.2327, allocations: 11.89 kB / 0.6772 GB, free: 10.98 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007151/0.2334, allocations: 482.2 kB / 0.6777 GB, free: 10.49 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=37): time 2.775e-06/0.2334, allocations: 0 / 0.6777 GB, free: 10.49 MB / 0.5137 GB Notification: Performance of matching and sorting (n=37): time 0.001756/0.2352, allocations: 1.11 MB / 0.6788 GB, free: 9.371 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001231/0.2353, allocations: 144.5 kB / 0.6789 GB, free: 9.199 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003304/0.2357, allocations: 252.8 kB / 0.6792 GB, free: 8.945 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 5.853e-05/0.2357, allocations: 37.7 kB / 0.6792 GB, free: 8.902 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001258/0.2359, allocations: 125.1 kB / 0.6793 GB, free: 8.777 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001064/0.236, allocations: 79.12 kB / 0.6794 GB, free: 8.699 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002243/0.2362, allocations: 114.1 kB / 0.6795 GB, free: 8.582 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0002002/0.2364, allocations: 342.8 kB / 0.6798 GB, free: 8.238 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004908/0.2369, allocations: 332.6 kB / 0.6801 GB, free: 7.91 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005416/0.2375, allocations: 422.5 kB / 0.6805 GB, free: 7.461 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001112/0.2386, allocations: 0.7751 MB / 0.6813 GB, free: 6.648 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.785e-06/0.2386, allocations: 0 / 0.6813 GB, free: 6.648 MB / 0.5137 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001263/0.2399, allocations: 0.8209 MB / 0.6821 GB, free: 5.82 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.658e-05/0.24, allocations: 16.84 kB / 0.6821 GB, free: 5.805 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.353e-05/0.24, allocations: 4 kB / 0.6821 GB, free: 5.801 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.653e-05/0.24, allocations: 4 kB / 0.6821 GB, free: 5.797 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002232/0.2402, allocations: 35.91 kB / 0.6822 GB, free: 5.762 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.233e-05/0.2403, allocations: 12.3 kB / 0.6822 GB, free: 5.75 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003129/0.2406, allocations: 31.69 kB / 0.6822 GB, free: 5.719 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003511/0.241, allocations: 268 kB / 0.6825 GB, free: 5.457 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.0002901/0.2413, allocations: 190 kB / 0.6826 GB, free: 5.262 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.21e-05/0.2413, allocations: 35.62 kB / 0.6827 GB, free: 5.227 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001069/0.2415, allocations: 38.19 kB / 0.6827 GB, free: 5.188 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-06/0.2415, allocations: 4 kB / 0.6827 GB, free: 5.184 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.266e-05/0.2415, allocations: 4 kB / 0.6827 GB, free: 5.18 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.405e-06/0.2415, allocations: 3.984 kB / 0.6827 GB, free: 5.176 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002454/0.244, allocations: 1.719 MB / 0.6844 GB, free: 3.398 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.875e-06/0.244, allocations: 8.062 kB / 0.6844 GB, free: 3.391 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.253e-05/0.244, allocations: 15.98 kB / 0.6844 GB, free: 3.375 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.915e-06/0.2441, allocations: 8 kB / 0.6844 GB, free: 3.367 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.202e-05/0.2441, allocations: 27.91 kB / 0.6845 GB, free: 3.34 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.396e-06/0.2441, allocations: 0 / 0.6845 GB, free: 3.34 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.49e-06/0.2441, allocations: 4 kB / 0.6845 GB, free: 3.336 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001382/0.2455, allocations: 1.118 MB / 0.6855 GB, free: 2.199 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001503/0.2457, allocations: 108.7 kB / 0.6857 GB, free: 2.074 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.547e-05/0.2458, allocations: 12 kB / 0.6857 GB, free: 2.062 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003252/0.2461, allocations: 4 kB / 0.6857 GB, free: 2.059 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001536/0.2463, allocations: 51.88 kB / 0.6857 GB, free: 2.008 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004037/0.2467, allocations: 283.4 kB / 0.686 GB, free: 1.73 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.000234/0.2469, allocations: 176.4 kB / 0.6862 GB, free: 1.562 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2469, allocations: 0 / 0.6862 GB, free: 1.562 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0006632/0.2476, allocations: 64 kB / 0.6862 GB, free: 1.5 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.0002706/0.2479, allocations: 135.2 kB / 0.6863 GB, free: 1.359 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001411/0.2493, allocations: 0.7415 MB / 0.6871 GB, free: 0.6172 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.2493, allocations: 0 / 0.6871 GB, free: 0.6172 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0006481/0.25, allocations: 409.7 kB / 0.6875 GB, free: 224 kB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001977/0.252, allocations: 379.4 kB / 0.6878 GB, free: 15.88 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00176/0.2537, allocations: 0.9668 MB / 0.6888 GB, free: 14.88 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005709/0.2543, allocations: 0.7569 MB / 0.6895 GB, free: 14.09 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0004401/0.2548, allocations: 86.92 kB / 0.6896 GB, free: 14.01 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001721/0.255, allocations: 79.38 kB / 0.6897 GB, free: 13.93 MB / 0.5294 GB Notification: Performance of SimCode: time 9.72e-07/0.255, allocations: 0 / 0.6897 GB, free: 13.93 MB / 0.5294 GB Notification: Performance of Templates: time 0.01833/0.2733, allocations: 8.987 MB / 0.6984 GB, free: 5.02 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)