Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_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_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.162/2.162, allocations: 251.1 MB / 266.7 MB, free: 11.59 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.001437/0.001437, allocations: 171.2 kB / 326.2 MB, free: 2.859 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.438/2.438, allocations: 205.4 MB / 0.5772 GB, free: 20.76 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.0009647/0.0009642, allocations: 91.44 kB / 0.6817 GB, free: 13.62 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0006616/0.0006618, allocations: 14.94 kB / 0.7957 GB, free: 135.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2117/0.2124, allocations: 106.3 MB / 0.8995 GB, free: 65.51 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType): time 0.001664/0.2141, allocations: 1.122 MB / 0.9006 GB, free: 64.38 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0007311/0.2149, allocations: 268.5 kB / 0.9009 GB, free: 64.12 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.012e-05/0.215, allocations: 3.938 kB / 0.9009 GB, free: 64.11 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001174/0.2151, allocations: 7.922 kB / 0.9009 GB, free: 64.11 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.862e-05/0.2152, allocations: 19.86 kB / 0.9009 GB, free: 64.09 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003749/0.2156, allocations: 70.42 kB / 0.901 GB, free: 64.02 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0002739/0.2158, allocations: 204 kB / 0.9012 GB, free: 63.82 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 6.363e-05/0.2159, allocations: 9.125 kB / 0.9012 GB, free: 63.81 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 8.914e-05/0.216, allocations: 83.81 kB / 0.9012 GB, free: 63.73 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001974/0.2162, allocations: 107.7 kB / 0.9013 GB, free: 63.62 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 5.697e-05/0.2163, allocations: 8 kB / 0.9014 GB, free: 63.61 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 8.843e-05/0.2164, allocations: 8 kB / 0.9014 GB, free: 63.61 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001002/0.2165, allocations: 71.8 kB / 0.9014 GB, free: 63.54 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 6.221e-05/0.2166, allocations: 57.58 kB / 0.9015 GB, free: 63.47 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0002368/0.2168, allocations: 203.5 kB / 0.9017 GB, free: 63.27 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.2168, allocations: 4 kB / 0.9017 GB, free: 63.27 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.044e-06/0.2169, allocations: 0 / 0.9017 GB, free: 63.27 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.322e-06/0.2169, allocations: 4 kB / 0.9017 GB, free: 63.27 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.001265/0.2181, allocations: 0.63 MB / 0.9023 GB, free: 62.56 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.69e-05/0.2182, allocations: 8.031 kB / 0.9023 GB, free: 62.55 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.621e-05/0.2183, allocations: 36.64 kB / 0.9023 GB, free: 62.52 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003503/0.2187, allocations: 254.9 kB / 0.9026 GB, free: 62.23 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.848e-05/0.2187, allocations: 16.66 kB / 0.9026 GB, free: 62.21 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.101e-05/0.2188, allocations: 24.31 kB / 0.9026 GB, free: 62.19 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007502/0.2195, allocations: 455.3 kB / 0.9031 GB, free: 61.73 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.519e-05/0.2196, allocations: 4.125 kB / 0.9031 GB, free: 61.72 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.77e-05/0.2196, allocations: 15.92 kB / 0.9031 GB, free: 61.71 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.175e-06/0.2196, allocations: 4 kB / 0.9031 GB, free: 61.7 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005296/0.2202, allocations: 315.8 kB / 0.9034 GB, free: 61.39 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007884/0.221, allocations: 0.574 MB / 0.9039 GB, free: 60.76 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001588/0.2226, allocations: 1.021 MB / 0.9049 GB, free: 59.7 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00101/0.2236, allocations: 0.6554 MB / 0.9056 GB, free: 59.04 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 4.96e-05/0.2237, allocations: 8 kB / 0.9056 GB, free: 59.03 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008182/0.2245, allocations: 478.5 kB / 0.906 GB, free: 58.54 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=37): time 3.276e-06/0.2245, allocations: 0 / 0.906 GB, free: 58.54 MB / 0.6042 GB Notification: Performance of matching and sorting (n=37): time 0.002024/0.2266, allocations: 1.108 MB / 0.9071 GB, free: 57.42 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.484e-05/0.2267, allocations: 136.5 kB / 0.9073 GB, free: 57.26 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000299/0.227, allocations: 260.8 kB / 0.9075 GB, free: 57 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 4.321e-05/0.227, allocations: 29.7 kB / 0.9075 GB, free: 56.96 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 7.757e-05/0.2271, allocations: 125.1 kB / 0.9077 GB, free: 56.83 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 9.357e-05/0.2272, allocations: 91.06 kB / 0.9077 GB, free: 56.74 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.875e-05/0.2273, allocations: 8 kB / 0.9077 GB, free: 56.73 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 8.42e-05/0.2274, allocations: 338.8 kB / 0.9081 GB, free: 56.39 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005473/0.2279, allocations: 324.7 kB / 0.9084 GB, free: 56.08 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006418/0.2286, allocations: 426.4 kB / 0.9088 GB, free: 55.62 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006259/0.2292, allocations: 360.8 kB / 0.9091 GB, free: 55.27 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.2292, allocations: 4 kB / 0.9091 GB, free: 55.27 MB / 0.6042 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001463/0.2307, allocations: 0.8229 MB / 0.9099 GB, free: 54.44 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.64e-05/0.2308, allocations: 12.12 kB / 0.91 GB, free: 54.43 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.512e-05/0.2308, allocations: 8.25 kB / 0.91 GB, free: 54.42 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.522e-05/0.2308, allocations: 7.938 kB / 0.91 GB, free: 54.41 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002667/0.2311, allocations: 35.91 kB / 0.91 GB, free: 54.38 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.526e-05/0.2311, allocations: 12.55 kB / 0.91 GB, free: 54.37 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000443/0.2316, allocations: 31.62 kB / 0.91 GB, free: 54.34 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003982/0.232, allocations: 279.4 kB / 0.9103 GB, free: 54.06 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.0002812/0.2323, allocations: 186 kB / 0.9105 GB, free: 53.87 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.515e-05/0.2324, allocations: 31.7 kB / 0.9105 GB, free: 53.84 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.591e-05/0.2325, allocations: 42.12 kB / 0.9106 GB, free: 53.8 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.939e-06/0.2325, allocations: 7.984 kB / 0.9106 GB, free: 53.79 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.88e-06/0.2325, allocations: 0 / 0.9106 GB, free: 53.79 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 7.027e-05/0.2326, allocations: 104.7 kB / 0.9107 GB, free: 53.67 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.976e-05/0.2327, allocations: 8 kB / 0.9107 GB, free: 53.66 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002624/0.233, allocations: 11.98 kB / 0.9107 GB, free: 53.65 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001519/0.2332, allocations: 47.94 kB / 0.9107 GB, free: 53.61 MB / 0.6042 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001683/0.2348, allocations: 1.137 MB / 0.9118 GB, free: 52.46 MB / 0.6042 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.001478/0.2364, allocations: 1.202 MB / 0.913 GB, free: 51.24 MB / 0.6042 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006658/0.2371, allocations: 383.7 kB / 0.9134 GB, free: 50.86 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001957/0.2373, allocations: 172.5 kB / 0.9135 GB, free: 50.7 MB / 0.6042 GB Notification: Performance of Backend: time 8.82e-07/0.2373, allocations: 4 kB / 0.9135 GB, free: 50.69 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001467/0.2388, allocations: 496 kB / 0.914 GB, free: 50.2 MB / 0.6042 GB Notification: Performance of SimCode: time 0.002451/0.2412, allocations: 1.112 MB / 0.9151 GB, free: 49.05 MB / 0.6042 GB Notification: Performance of Templates: time 0.01467/0.256, allocations: 6.508 MB / 0.9215 GB, free: 42.59 MB / 0.6042 GB make -j1 -f Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.makefile (rm -f Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; mkfifo Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe >> ../files/Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.sim & ./Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe 2>&1)