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.786/1.786, allocations: 289.7 MB / 302.3 MB, free: 2.145 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.001077/0.001078, allocations: 181.5 kB / 371.6 MB, free: 3.375 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.549/1.549, allocations: 205.2 MB / 0.6309 GB, free: 11.75 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.0007792/0.0007789, allocations: 90.31 kB / 0.745 GB, free: 54.52 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 2.997e-05/3e-05, allocations: 4 kB / 0.8663 GB, free: 14.94 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2582/0.2583, allocations: 116.3 MB / 0.9799 GB, free: 10.47 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.788/1.046, allocations: 138.5 MB / 1.115 GB, free: 44.92 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002006/1.047, allocations: 69.02 kB / 1.115 GB, free: 44.89 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.04827/1.095, allocations: 22.19 MB / 1.137 GB, free: 32.84 MB / 0.7448 GB Notification: Performance of FrontEnd: time 2.174e-06/1.095, allocations: 3.938 kB / 1.137 GB, free: 32.83 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 1.532e-05/1.095, allocations: 8 kB / 1.137 GB, free: 32.82 MB / 0.7448 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.0008007/1.096, allocations: 0.6013 MB / 1.137 GB, free: 32.23 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.104e-05/1.096, allocations: 8.875 kB / 1.137 GB, free: 32.23 MB / 0.7448 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.278e-05/1.096, allocations: 51.5 kB / 1.138 GB, free: 32.18 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.783e-05/1.096, allocations: 30.05 kB / 1.138 GB, free: 32.15 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003095/1.096, allocations: 255.8 kB / 1.138 GB, free: 31.9 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.995e-05/1.096, allocations: 15.31 kB / 1.138 GB, free: 31.89 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.761e-05/1.096, allocations: 23.31 kB / 1.138 GB, free: 31.88 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005714/1.097, allocations: 448.2 kB / 1.138 GB, free: 31.57 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.724e-05/1.097, allocations: 3.125 kB / 1.138 GB, free: 31.57 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.559e-05/1.097, allocations: 15.03 kB / 1.138 GB, free: 31.56 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/1.097, allocations: 4 kB / 1.138 GB, free: 31.56 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000384/1.097, allocations: 314.7 kB / 1.139 GB, free: 31.34 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006123/1.098, allocations: 0.5608 MB / 1.139 GB, free: 30.89 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001105/1.099, allocations: 1.029 MB / 1.14 GB, free: 30.12 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006968/1.1, allocations: 0.6526 MB / 1.141 GB, free: 29.65 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 4.735e-05/1.1, allocations: 8.594 kB / 1.141 GB, free: 29.64 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000618/1.1, allocations: 469.9 kB / 1.141 GB, free: 29.31 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=37): time 1.773e-06/1.101, allocations: 0 / 1.141 GB, free: 29.31 MB / 0.7448 GB Notification: Performance of matching and sorting (n=37): time 0.001041/1.102, allocations: 0.7833 MB / 1.142 GB, free: 28.75 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.395e-05/1.102, allocations: 142.7 kB / 1.142 GB, free: 28.58 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000204/1.102, allocations: 226.8 kB / 1.142 GB, free: 28.41 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 3.171e-05/1.102, allocations: 33.23 kB / 1.142 GB, free: 28.38 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 5.372e-05/1.102, allocations: 128 kB / 1.143 GB, free: 28.29 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 5.851e-05/1.102, allocations: 74.14 kB / 1.143 GB, free: 28.23 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.34e-05/1.102, allocations: 11.81 kB / 1.143 GB, free: 28.22 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 7.783e-05/1.102, allocations: 346.6 kB / 1.143 GB, free: 27.89 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003471/1.102, allocations: 328.2 kB / 1.143 GB, free: 27.67 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003804/1.103, allocations: 422.8 kB / 1.144 GB, free: 27.33 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004014/1.103, allocations: 361.9 kB / 1.144 GB, free: 27.09 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/1.103, allocations: 0 / 1.144 GB, free: 27.09 MB / 0.7448 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009151/1.104, allocations: 0.8166 MB / 1.145 GB, free: 26.52 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 2.009e-05/1.104, allocations: 10.7 kB / 1.145 GB, free: 26.51 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/1.104, allocations: 4 kB / 1.145 GB, free: 26.5 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/1.104, allocations: 8.125 kB / 1.145 GB, free: 26.5 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001827/1.104, allocations: 48.19 kB / 1.145 GB, free: 26.46 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.14e-05/1.104, allocations: 4.516 kB / 1.145 GB, free: 26.46 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002285/1.105, allocations: 17.73 kB / 1.145 GB, free: 26.45 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002939/1.105, allocations: 211.7 kB / 1.145 GB, free: 26.34 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.0001215/1.105, allocations: 152.6 kB / 1.145 GB, free: 26.21 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.919e-05/1.105, allocations: 31.61 kB / 1.145 GB, free: 26.18 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.628e-05/1.105, allocations: 36.31 kB / 1.145 GB, free: 26.16 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/1.105, allocations: 8.75 kB / 1.145 GB, free: 26.16 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.675e-06/1.105, allocations: 4 kB / 1.145 GB, free: 26.15 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.283e-06/1.105, allocations: 1.781 kB / 1.145 GB, free: 26.15 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001798/1.107, allocations: 1.696 MB / 1.147 GB, free: 24.84 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.598e-06/1.107, allocations: 4.562 kB / 1.147 GB, free: 24.83 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.999e-05/1.107, allocations: 26.41 kB / 1.147 GB, free: 24.82 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.422e-06/1.107, allocations: 4 kB / 1.147 GB, free: 24.81 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.779e-05/1.107, allocations: 21.97 kB / 1.147 GB, free: 24.8 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/1.107, allocations: 4 kB / 1.147 GB, free: 24.8 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/1.107, allocations: 0 / 1.147 GB, free: 24.8 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009672/1.108, allocations: 1.144 MB / 1.148 GB, free: 23.86 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 5.748e-05/1.108, allocations: 105.6 kB / 1.148 GB, free: 23.74 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.196e-05/1.108, allocations: 12.02 kB / 1.148 GB, free: 23.74 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002289/1.109, allocations: 13.06 kB / 1.148 GB, free: 23.73 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001094/1.109, allocations: 46.83 kB / 1.148 GB, free: 23.71 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002949/1.109, allocations: 230.8 kB / 1.149 GB, free: 23.59 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0001389/1.109, allocations: 169.2 kB / 1.149 GB, free: 23.46 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.5e-07/1.109, allocations: 0 / 1.149 GB, free: 23.46 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0004375/1.11, allocations: 63.06 kB / 1.149 GB, free: 23.41 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.001307/1.111, allocations: 1.937 MB / 1.151 GB, free: 21.7 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0008412/1.112, allocations: 0.7313 MB / 1.151 GB, free: 21.18 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/1.112, allocations: 0 / 1.151 GB, free: 21.18 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0004541/1.112, allocations: 407 kB / 1.152 GB, free: 20.89 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00161/1.114, allocations: 371.8 kB / 1.152 GB, free: 20.68 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001479/1.115, allocations: 0.9397 MB / 1.153 GB, free: 19.95 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002338/1.116, allocations: 0.7621 MB / 1.154 GB, free: 19.2 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.0003035/1.116, allocations: 98.86 kB / 1.154 GB, free: 19.12 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000164/1.116, allocations: 118.2 kB / 1.154 GB, free: 19.08 MB / 0.7448 GB Notification: Performance of SimCode: time 2.81e-07/1.116, allocations: 0.6562 kB / 1.154 GB, free: 19.08 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02361/1.14, allocations: 10.59 MB / 1.164 GB, free: 13.1 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001386/1.14, allocations: 155.9 kB / 1.164 GB, free: 12.88 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.222/3.362, allocations: 0.8438 kB / 1.164 GB, free: 12.88 MB / 0.7448 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)