Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_DayType",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_DayType",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.707/1.707, allocations: 289.9 MB / 297.4 MB, free: 6.379 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001112/0.001112, allocations: 180.8 kB / 366.7 MB, free: 1.633 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.698/1.698, allocations: 205.2 MB / 0.626 GB, free: 7.164 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007933/0.0007928, allocations: 90.42 kB / 0.74 GB, free: 39.57 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.114e-05/2.115e-05, allocations: 4 kB / 0.8598 GB, free: 12.96 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7149/0.7149, allocations: 116.3 MB / 0.9734 GB, free: 76 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1819/0.8969, allocations: 137.8 MB / 1.108 GB, free: 12.23 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002272/0.8971, allocations: 68.67 kB / 1.108 GB, free: 12.16 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.05385/0.951, allocations: 22.07 MB / 1.13 GB, free: 6.152 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.432e-06/0.9511, allocations: 0.625 kB / 1.13 GB, free: 6.152 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 2.664e-05/0.9511, allocations: 4 kB / 1.13 GB, free: 6.148 MB / 0.7292 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.001159/0.9523, allocations: 0.6126 MB / 1.13 GB, free: 5.461 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 5.765e-05/0.9523, allocations: 8.531 kB / 1.13 GB, free: 5.453 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001285/0.9525, allocations: 27.66 kB / 1.13 GB, free: 5.426 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004299/0.9529, allocations: 251.8 kB / 1.13 GB, free: 5.141 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.998e-05/0.953, allocations: 7.984 kB / 1.13 GB, free: 5.133 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.399e-05/0.953, allocations: 16 kB / 1.13 GB, free: 5.117 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004974/0.9535, allocations: 307.2 kB / 1.131 GB, free: 4.82 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006007/0.9542, allocations: 439 kB / 1.131 GB, free: 4.379 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/0.9542, allocations: 0 / 1.131 GB, free: 4.379 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.73e-05/0.9542, allocations: 5.578 kB / 1.131 GB, free: 4.375 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.9542, allocations: 4 kB / 1.131 GB, free: 4.371 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007555/0.955, allocations: 0.5121 MB / 1.132 GB, free: 3.816 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00121/0.9562, allocations: 1.012 MB / 1.133 GB, free: 2.773 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007211/0.957, allocations: 0.6498 MB / 1.133 GB, free: 2.113 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 4.101e-05/0.957, allocations: 4 kB / 1.133 GB, free: 2.109 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005595/0.9576, allocations: 470 kB / 1.134 GB, free: 1.625 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=37): time 2.765e-06/0.9576, allocations: 0 / 1.134 GB, free: 1.625 MB / 0.7292 GB Notification: Performance of matching and sorting (n=37): time 0.001009/0.9586, allocations: 0.7678 MB / 1.135 GB, free: 0.8555 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.12e-05/0.9587, allocations: 132.5 kB / 1.135 GB, free: 0.6953 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002507/0.959, allocations: 224.3 kB / 1.135 GB, free: 484 kB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 3.289e-05/0.959, allocations: 25.7 kB / 1.135 GB, free: 452 kB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 7.929e-05/0.9591, allocations: 120.9 kB / 1.135 GB, free: 328 kB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 7.511e-05/0.9592, allocations: 71.06 kB / 1.135 GB, free: 256 kB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.581e-05/0.9592, allocations: 4 kB / 1.135 GB, free: 252 kB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001723/0.9594, allocations: 346.8 kB / 1.135 GB, free: 15.9 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003638/0.9597, allocations: 316.7 kB / 1.136 GB, free: 15.59 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004022/0.9602, allocations: 413.5 kB / 1.136 GB, free: 15.15 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003932/0.9606, allocations: 347.9 kB / 1.136 GB, free: 14.81 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.9606, allocations: 0 / 1.136 GB, free: 14.81 MB / 0.7448 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009671/0.9615, allocations: 0.804 MB / 1.137 GB, free: 14 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.969e-05/0.9616, allocations: 4 kB / 1.137 GB, free: 14 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.757e-06/0.9616, allocations: 4 kB / 1.137 GB, free: 13.99 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.172e-05/0.9616, allocations: 4 kB / 1.137 GB, free: 13.99 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001746/0.9618, allocations: 43.89 kB / 1.137 GB, free: 13.95 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.595e-06/0.9618, allocations: 6.25 kB / 1.137 GB, free: 13.94 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002198/0.962, allocations: 7.938 kB / 1.137 GB, free: 13.93 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002437/0.9623, allocations: 218 kB / 1.138 GB, free: 13.72 MB / 0.7448 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 () * 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.0001362/0.9624, allocations: 134.1 kB / 1.138 GB, free: 13.59 MB / 0.7448 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000852/0.9633, allocations: 0.771 MB / 1.138 GB, free: 12.81 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.867e-05/0.9633, allocations: 27.7 kB / 1.138 GB, free: 12.78 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.497e-05/0.9634, allocations: 29.97 kB / 1.138 GB, free: 12.75 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.244e-06/0.9634, allocations: 7.984 kB / 1.138 GB, free: 12.75 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.9634, allocations: 0 / 1.138 GB, free: 12.75 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.64e-06/0.9635, allocations: 4 kB / 1.138 GB, free: 12.74 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001822/0.9653, allocations: 1.647 MB / 1.14 GB, free: 11.05 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.68e-06/0.9653, allocations: 3.984 kB / 1.14 GB, free: 11.04 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.044e-05/0.9654, allocations: 15.98 kB / 1.14 GB, free: 11.03 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.612e-06/0.9654, allocations: 3.938 kB / 1.14 GB, free: 11.02 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.021e-05/0.9654, allocations: 27.91 kB / 1.14 GB, free: 11 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/0.9654, allocations: 5.688 kB / 1.14 GB, free: 10.99 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.9654, allocations: 0 / 1.14 GB, free: 10.99 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001114/0.9666, allocations: 1.119 MB / 1.141 GB, free: 9.836 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 7.395e-05/0.9666, allocations: 104.7 kB / 1.141 GB, free: 9.715 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.707e-05/0.9667, allocations: 11.95 kB / 1.141 GB, free: 9.703 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002259/0.9669, allocations: 4 kB / 1.141 GB, free: 9.699 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001038/0.967, allocations: 55.86 kB / 1.141 GB, free: 9.645 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002444/0.9673, allocations: 219.7 kB / 1.142 GB, free: 9.434 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.000143/0.9675, allocations: 168.5 kB / 1.142 GB, free: 9.27 MB / 0.7448 GB Notification: Performance of sort global known variables: time 2.71e-07/0.9675, allocations: 0.9375 kB / 1.142 GB, free: 9.27 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.000473/0.9679, allocations: 48 kB / 1.142 GB, free: 9.223 MB / 0.7448 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) * 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.001504/0.9694, allocations: 1.921 MB / 1.144 GB, free: 7.262 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0008178/0.9703, allocations: 0.704 MB / 1.144 GB, free: 6.559 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.9703, allocations: 4 kB / 1.144 GB, free: 6.555 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.000457/0.9708, allocations: 387.8 kB / 1.145 GB, free: 6.176 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001563/0.9723, allocations: 363.6 kB / 1.145 GB, free: 5.84 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001514/0.9739, allocations: 0.902 MB / 1.146 GB, free: 4.895 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003795/0.9742, allocations: 0.7686 MB / 1.147 GB, free: 4.105 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.0003503/0.9746, allocations: 98.66 kB / 1.147 GB, free: 4.016 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001898/0.9748, allocations: 119.4 kB / 1.147 GB, free: 3.898 MB / 0.7448 GB Notification: Performance of SimCode: time 3.8e-07/0.9748, allocations: 4 kB / 1.147 GB, free: 3.895 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03081/1.006, allocations: 9.969 MB / 1.157 GB, free: 10.11 MB / 0.7605 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001902/1.006, allocations: 136.5 kB / 1.157 GB, free: 9.922 MB / 0.7605 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.307/3.313, allocations: 0 / 1.157 GB, free: 9.922 MB / 0.7605 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_DayType_fmu --startTime=-1.8144e+06 --stopTime=1.8144e+06 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_DayType.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe 2>&1)