Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.Sources.Examples.DayType.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.Controls.Sources.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.Sources.Examples.DayType") translateModel(Buildings.Controls.Sources.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.Sources.Examples.DayType") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001204/0.001204, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00131/0.001311, allocations: 189.6 kB / 16.25 MB, free: 6.633 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.96/1.96, allocations: 205.1 MB / 222.1 MB, free: 4.727 MB / 174.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.911/1.911, allocations: 292.2 MB / 0.5485 GB, free: 13.68 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.001508/0.001508, allocations: 60.91 kB / 0.671 GB, free: 26.38 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3214/0.3229, allocations: 114.6 MB / 0.7828 GB, free: 13.94 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Sources.Examples.DayType): time 0.004042/0.327, allocations: 1.473 MB / 0.7843 GB, free: 12.45 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0008901/0.3279, allocations: 272.3 kB / 0.7845 GB, free: 12.19 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001216/0.3281, allocations: 3.938 kB / 0.7846 GB, free: 12.18 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001873/0.3283, allocations: 15.92 kB / 0.7846 GB, free: 12.17 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 8.709e-05/0.3284, allocations: 19.86 kB / 0.7846 GB, free: 12.15 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005089/0.329, allocations: 82.92 kB / 0.7847 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.000406/0.3294, allocations: 235.9 kB / 0.7849 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 7.913e-05/0.3295, allocations: 13.11 kB / 0.7849 GB, free: 11.82 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001396/0.3296, allocations: 83.81 kB / 0.785 GB, free: 11.74 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002198/0.3298, allocations: 107.7 kB / 0.7851 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 6.652e-05/0.3299, allocations: 16 kB / 0.7851 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 4.538e-05/0.33, allocations: 20 kB / 0.7851 GB, free: 11.6 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001546/0.3301, allocations: 87.78 kB / 0.7852 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001641/0.3303, allocations: 115.4 kB / 0.7853 GB, free: 11.4 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003509/0.3306, allocations: 243.4 kB / 0.7855 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.3307, allocations: 0 / 0.7855 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.913e-06/0.3307, allocations: 0 / 0.7855 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.308e-05/0.3307, allocations: 3.938 kB / 0.7855 GB, free: 11.16 MB / 0.6075 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.00145/0.3322, allocations: 0.6979 MB / 0.7862 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.501e-05/0.3322, allocations: 8.031 kB / 0.7862 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001144/0.3323, allocations: 24.66 kB / 0.7863 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003962/0.3327, allocations: 266.8 kB / 0.7865 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.285e-05/0.3328, allocations: 8.656 kB / 0.7865 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.955e-05/0.3328, allocations: 24.38 kB / 0.7865 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007323/0.3336, allocations: 459.3 kB / 0.787 GB, free: 9.551 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.516e-05/0.3336, allocations: 192 / 0.787 GB, free: 9.551 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.894e-05/0.3336, allocations: 11.92 kB / 0.787 GB, free: 9.539 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.885e-06/0.3337, allocations: 4 kB / 0.787 GB, free: 9.535 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004697/0.3341, allocations: 323.8 kB / 0.7873 GB, free: 9.219 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008148/0.335, allocations: 0.5739 MB / 0.7879 GB, free: 8.586 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001272/0.3362, allocations: 1.029 MB / 0.7889 GB, free: 7.52 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007791/0.337, allocations: 0.6554 MB / 0.7895 GB, free: 6.852 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 4.12e-05/0.3371, allocations: 7.984 kB / 0.7895 GB, free: 6.844 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007618/0.3378, allocations: 474.2 kB / 0.79 GB, free: 6.355 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=37): time 3.015e-06/0.3379, allocations: 4 kB / 0.79 GB, free: 6.352 MB / 0.6075 GB Notification: Performance of matching and sorting (n=37): time 0.001626/0.3395, allocations: 1.12 MB / 0.7911 GB, free: 5.227 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.381e-05/0.3396, allocations: 140.5 kB / 0.7912 GB, free: 5.059 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002703/0.3399, allocations: 248.9 kB / 0.7914 GB, free: 4.809 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.962e-05/0.3399, allocations: 37.7 kB / 0.7915 GB, free: 4.766 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 9.282e-05/0.34, allocations: 121.1 kB / 0.7916 GB, free: 4.645 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 9.147e-05/0.3401, allocations: 83.12 kB / 0.7917 GB, free: 4.562 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001808/0.3403, allocations: 110.1 kB / 0.7918 GB, free: 4.449 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001617/0.3405, allocations: 346.8 kB / 0.7921 GB, free: 4.102 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004259/0.3409, allocations: 328.7 kB / 0.7924 GB, free: 3.781 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004607/0.3414, allocations: 422.5 kB / 0.7928 GB, free: 3.332 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009733/0.3424, allocations: 0.7745 MB / 0.7936 GB, free: 2.523 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.072e-06/0.3424, allocations: 0 / 0.7936 GB, free: 2.523 MB / 0.6075 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001166/0.3436, allocations: 0.8251 MB / 0.7944 GB, free: 1.691 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.76e-05/0.3436, allocations: 11.94 kB / 0.7944 GB, free: 1.68 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.133e-05/0.3436, allocations: 0.5625 kB / 0.7944 GB, free: 1.68 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.325e-05/0.3437, allocations: 12.12 kB / 0.7944 GB, free: 1.668 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001999/0.3439, allocations: 39.84 kB / 0.7944 GB, free: 1.629 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.144e-05/0.3439, allocations: 11.98 kB / 0.7945 GB, free: 1.617 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002978/0.3442, allocations: 35.61 kB / 0.7945 GB, free: 1.582 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003226/0.3445, allocations: 267.8 kB / 0.7948 GB, free: 1.32 MB / 0.6075 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.0003312/0.3449, allocations: 185.7 kB / 0.7949 GB, free: 1.129 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.945e-05/0.3449, allocations: 35.58 kB / 0.795 GB, free: 1.094 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.085e-05/0.345, allocations: 34.19 kB / 0.795 GB, free: 1.062 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.742e-06/0.345, allocations: 4 kB / 0.795 GB, free: 1.059 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.935e-05/0.3451, allocations: 11.94 kB / 0.795 GB, free: 1.047 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.3451, allocations: 3.984 kB / 0.795 GB, free: 1.043 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002357/0.3475, allocations: 1.718 MB / 0.7967 GB, free: 15.27 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.664e-06/0.3475, allocations: 4 kB / 0.7967 GB, free: 15.26 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.361e-05/0.3475, allocations: 19.92 kB / 0.7967 GB, free: 15.24 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.985e-06/0.3476, allocations: 8 kB / 0.7967 GB, free: 15.23 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.645e-05/0.3476, allocations: 19.97 kB / 0.7967 GB, free: 15.21 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.926e-06/0.3476, allocations: 0 / 0.7967 GB, free: 15.21 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.3476, allocations: 4 kB / 0.7967 GB, free: 15.21 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001292/0.3489, allocations: 1.125 MB / 0.7978 GB, free: 14.07 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001407/0.3491, allocations: 104.8 kB / 0.7979 GB, free: 13.95 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.046e-05/0.3491, allocations: 8 kB / 0.798 GB, free: 13.94 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002663/0.3494, allocations: 4 kB / 0.798 GB, free: 13.93 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001413/0.3496, allocations: 55.88 kB / 0.798 GB, free: 13.88 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003333/0.3499, allocations: 283.5 kB / 0.7983 GB, free: 13.6 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0001892/0.3501, allocations: 172.4 kB / 0.7984 GB, free: 13.43 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3501, allocations: 0 / 0.7984 GB, free: 13.43 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0005519/0.3507, allocations: 64 kB / 0.7985 GB, free: 13.37 MB / 0.6231 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.0002804/0.351, allocations: 142.2 kB / 0.7986 GB, free: 13.23 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001214/0.3522, allocations: 0.7806 MB / 0.7994 GB, free: 12.45 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 4.588e-06/0.3522, allocations: 0 / 0.7994 GB, free: 12.45 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.000568/0.3528, allocations: 406.1 kB / 0.7998 GB, free: 12.05 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001874/0.3547, allocations: 372.3 kB / 0.8001 GB, free: 11.72 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001868/0.3565, allocations: 1.029 MB / 0.8011 GB, free: 10.65 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007044/0.3573, allocations: 0.7608 MB / 0.8019 GB, free: 9.855 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0004502/0.3577, allocations: 86.94 kB / 0.802 GB, free: 9.773 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001864/0.3579, allocations: 71.38 kB / 0.802 GB, free: 9.707 MB / 0.6231 GB Notification: Performance of SimCode: time 1.984e-06/0.3579, allocations: 0 / 0.802 GB, free: 9.707 MB / 0.6231 GB Notification: Performance of Templates: time 0.01604/0.374, allocations: 8.772 MB / 0.8106 GB, free: 1.047 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Controls.Sources.Examples.DayType.makefile (rm -f Buildings_8_Buildings.Controls.Sources.Examples.DayType.pipe ; mkfifo Buildings_8_Buildings.Controls.Sources.Examples.DayType.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.Sources.Examples.DayType.pipe >> ../files/Buildings_8_Buildings.Controls.Sources.Examples.DayType.sim & ./Buildings_8_Buildings.Controls.Sources.Examples.DayType -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.Sources.Examples.DayType.pipe 2>&1)