Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.593/1.593, allocations: 252 MB / 267.6 MB, free: 10.92 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001054/0.001053, allocations: 182.4 kB / 327.3 MB, free: 2.207 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.682/1.682, allocations: 205.4 MB / 0.5783 GB, free: 20.2 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000925/0.0009251, allocations: 89.8 kB / 0.6829 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003386/0.0003389, allocations: 10.38 kB / 0.797 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2134/0.2138, allocations: 106.4 MB / 0.9008 GB, free: 63.89 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType): time 0.001413/0.2152, allocations: 1.119 MB / 0.9019 GB, free: 62.77 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0005474/0.2158, allocations: 263.3 kB / 0.9022 GB, free: 62.51 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.46e-05/0.2159, allocations: 3.938 kB / 0.9022 GB, free: 62.5 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001193/0.216, allocations: 11.92 kB / 0.9022 GB, free: 62.49 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 5.22e-05/0.2161, allocations: 15.88 kB / 0.9022 GB, free: 62.48 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003017/0.2164, allocations: 79.91 kB / 0.9023 GB, free: 62.4 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001926/0.2166, allocations: 196 kB / 0.9025 GB, free: 62.21 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 6.414e-05/0.2166, allocations: 9.125 kB / 0.9025 GB, free: 62.2 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 6.993e-05/0.2167, allocations: 79.81 kB / 0.9026 GB, free: 62.12 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001365/0.2169, allocations: 99.75 kB / 0.9027 GB, free: 62.02 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 3.76e-05/0.2169, allocations: 8 kB / 0.9027 GB, free: 62.01 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 3.147e-05/0.2169, allocations: 11.94 kB / 0.9027 GB, free: 62 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 6.647e-05/0.217, allocations: 83.72 kB / 0.9028 GB, free: 61.92 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 4.897e-05/0.2171, allocations: 61.58 kB / 0.9028 GB, free: 61.85 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001492/0.2172, allocations: 199.5 kB / 0.903 GB, free: 61.66 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.2172, allocations: 0 / 0.903 GB, free: 61.66 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.804e-06/0.2173, allocations: 0 / 0.903 GB, free: 61.66 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.781e-06/0.2173, allocations: 0 / 0.903 GB, free: 61.66 MB / 0.6042 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.0008006/0.2181, allocations: 0.6396 MB / 0.9036 GB, free: 60.94 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.298e-05/0.2181, allocations: 8.031 kB / 0.9036 GB, free: 60.93 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.781e-05/0.2182, allocations: 23.72 kB / 0.9037 GB, free: 60.91 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002401/0.2184, allocations: 265.5 kB / 0.9039 GB, free: 60.61 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.12e-05/0.2185, allocations: 16.28 kB / 0.9039 GB, free: 60.59 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.937e-05/0.2185, allocations: 16 kB / 0.904 GB, free: 60.58 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004496/0.2189, allocations: 454.8 kB / 0.9044 GB, free: 60.12 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.219, allocations: 0 / 0.9044 GB, free: 60.12 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.168e-05/0.219, allocations: 4 kB / 0.9044 GB, free: 60.11 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.219, allocations: 4 kB / 0.9044 GB, free: 60.11 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003007/0.2193, allocations: 327.7 kB / 0.9047 GB, free: 59.79 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004919/0.2198, allocations: 0.5663 MB / 0.9053 GB, free: 59.16 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008925/0.2207, allocations: 1.035 MB / 0.9063 GB, free: 58.09 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005407/0.2213, allocations: 0.6554 MB / 0.9069 GB, free: 57.43 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 3.051e-05/0.2213, allocations: 7.984 kB / 0.9069 GB, free: 57.42 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004682/0.2218, allocations: 478.5 kB / 0.9074 GB, free: 56.93 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=37): time 1.503e-06/0.2218, allocations: 0 / 0.9074 GB, free: 56.93 MB / 0.6042 GB Notification: Performance of matching and sorting (n=37): time 0.001116/0.2229, allocations: 1.11 MB / 0.9085 GB, free: 55.81 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.924e-05/0.223, allocations: 136.5 kB / 0.9086 GB, free: 55.64 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001683/0.2231, allocations: 256.9 kB / 0.9088 GB, free: 55.39 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.745e-05/0.2232, allocations: 41.7 kB / 0.9089 GB, free: 55.34 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.896e-05/0.2232, allocations: 121.1 kB / 0.909 GB, free: 55.21 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 5.199e-05/0.2233, allocations: 79 kB / 0.9091 GB, free: 55.14 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.605e-05/0.2233, allocations: 8 kB / 0.9091 GB, free: 55.13 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.874e-05/0.2234, allocations: 346.8 kB / 0.9094 GB, free: 54.78 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002933/0.2237, allocations: 328.7 kB / 0.9097 GB, free: 54.46 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003307/0.224, allocations: 422.4 kB / 0.9101 GB, free: 54.01 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000327/0.2244, allocations: 357.7 kB / 0.9105 GB, free: 53.66 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.2244, allocations: 4 kB / 0.9105 GB, free: 53.66 MB / 0.6042 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.000769/0.2251, allocations: 0.8288 MB / 0.9113 GB, free: 52.82 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/0.2252, allocations: 10.66 kB / 0.9113 GB, free: 52.82 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.722e-06/0.2252, allocations: 0 / 0.9113 GB, free: 52.82 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.2252, allocations: 11.94 kB / 0.9113 GB, free: 52.8 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000149/0.2253, allocations: 39.84 kB / 0.9113 GB, free: 52.77 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.959e-06/0.2254, allocations: 8 kB / 0.9113 GB, free: 52.76 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002314/0.2256, allocations: 35.67 kB / 0.9114 GB, free: 52.72 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002177/0.2258, allocations: 271.6 kB / 0.9116 GB, free: 52.46 MB / 0.6042 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 ($PRE.dayTypMonThr.skipIDayIncrement,dayTypMonThr.skipIDayIncrement,$whenCondition4,dayTypMonThr.sampleTrigger,dayTypMonThr.y[1],dayTypMonThr.y[2],dayTypMonThr.y[3],$PRE.dayTypMonThr.iDay,dayTypMonThr.iDay,$PRE.dayTypTwoWeeks.skipIDayIncrement,dayTypTwoWeeks.skipIDayIncrement,$whenCondition3,dayTypTwoWeeks.sampleTrigger,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],$PRE.dayTypTwoWeeks.iDay,dayTypTwoWeeks.iDay,$PRE.dayTypSat.skipIDayIncrement,dayTypSat.skipIDayIncrement,$whenCondition2,dayTypSat.sampleTrigger,dayTypSat.y[1],dayTypSat.y[2],$PRE.dayTypSat.iDay,dayTypSat.iDay,$PRE.dayTypMon.skipIDayIncrement,dayTypMon.skipIDayIncrement,$whenCondition1,dayTypMon.sampleTrigger,dayTypMon.y[1],dayTypMon.y[2],$PRE.dayTypMon.iDay,dayTypMon.iDay) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001549/0.226, allocations: 197.6 kB / 0.9118 GB, free: 52.25 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.711e-05/0.226, allocations: 23.72 kB / 0.9118 GB, free: 52.23 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.73e-05/0.2261, allocations: 38.17 kB / 0.9119 GB, free: 52.2 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.2261, allocations: 4 kB / 0.9119 GB, free: 52.19 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.2261, allocations: 4 kB / 0.9119 GB, free: 52.19 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.271e-06/0.2261, allocations: 3.984 kB / 0.9119 GB, free: 52.18 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001458/0.2276, allocations: 1.71 MB / 0.9136 GB, free: 50.41 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.2276, allocations: 0 / 0.9136 GB, free: 50.41 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.178e-05/0.2277, allocations: 27.91 kB / 0.9136 GB, free: 50.39 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.2277, allocations: 240 / 0.9136 GB, free: 50.39 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.625e-05/0.2277, allocations: 19.97 kB / 0.9136 GB, free: 50.37 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.2277, allocations: 4 kB / 0.9136 GB, free: 50.36 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.2277, allocations: 3.938 kB / 0.9136 GB, free: 50.36 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008303/0.2285, allocations: 1.125 MB / 0.9147 GB, free: 49.21 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.969e-05/0.2286, allocations: 108.7 kB / 0.9148 GB, free: 49.09 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.606e-05/0.2286, allocations: 12 kB / 0.9148 GB, free: 49.08 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002425/0.2289, allocations: 4 kB / 0.9148 GB, free: 49.07 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.338e-05/0.229, allocations: 51.94 kB / 0.9149 GB, free: 49.02 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002005/0.2292, allocations: 279.5 kB / 0.9151 GB, free: 48.75 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001012/0.2293, allocations: 180.4 kB / 0.9153 GB, free: 48.57 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2293, allocations: 0 / 0.9153 GB, free: 48.57 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.000389/0.2297, allocations: 64 kB / 0.9154 GB, free: 48.51 MB / 0.6042 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001442/0.2299, allocations: 133.2 kB / 0.9155 GB, free: 48.38 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0007027/0.2306, allocations: 0.726 MB / 0.9162 GB, free: 47.65 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2306, allocations: 0 / 0.9162 GB, free: 47.65 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0003543/0.2309, allocations: 403.8 kB / 0.9166 GB, free: 47.25 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001539/0.2325, allocations: 371.2 kB / 0.917 GB, free: 46.9 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001044/0.2335, allocations: 1.052 MB / 0.918 GB, free: 45.81 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001778/0.2337, allocations: 0.753 MB / 0.9187 GB, free: 45.03 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00011/0.2338, allocations: 67.38 kB / 0.9188 GB, free: 44.96 MB / 0.6042 GB Notification: Performance of SimCode: time 3.8e-07/0.2338, allocations: 0 / 0.9188 GB, free: 44.96 MB / 0.6042 GB Notification: Performance of Templates: time 0.005893/0.2397, allocations: 4.519 MB / 0.9232 GB, free: 40.46 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe 2>&1)