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.69/1.69, allocations: 292.6 MB / 307.5 MB, free: 5.184 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.001617/0.001617, allocations: 189 kB / 377.1 MB, free: 1.504 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.699/1.699, allocations: 205.4 MB / 0.6366 GB, free: 8.539 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.0009238/0.0009237, allocations: 91.08 kB / 0.7509 GB, free: 63.08 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003169/0.000317, allocations: 8 kB / 0.8749 GB, free: 11.07 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2412/0.2415, allocations: 116.3 MB / 0.9884 GB, free: 6.617 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6354/0.8769, allocations: 138.6 MB / 1.124 GB, free: 35.89 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002263/0.8772, allocations: 64.42 kB / 1.124 GB, free: 35.84 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.05276/0.93, allocations: 22.26 MB / 1.146 GB, free: 19.79 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.954e-06/0.93, allocations: 0.6562 kB / 1.146 GB, free: 19.79 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 2.114e-05/0.9301, allocations: 4 kB / 1.146 GB, free: 19.79 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.00101/0.9311, allocations: 0.6483 MB / 1.146 GB, free: 19.13 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.9311, allocations: 12.81 kB / 1.146 GB, free: 19.12 MB / 0.7292 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.414e-05/0.9312, allocations: 45.98 kB / 1.146 GB, free: 19.07 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.392e-05/0.9313, allocations: 34.3 kB / 1.146 GB, free: 19.04 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003404/0.9317, allocations: 245.4 kB / 1.147 GB, free: 18.78 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.157e-05/0.9317, allocations: 20.89 kB / 1.147 GB, free: 18.77 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.474e-05/0.9317, allocations: 17.41 kB / 1.147 GB, free: 18.75 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005338/0.9323, allocations: 460.2 kB / 1.147 GB, free: 18.37 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.9323, allocations: 4 kB / 1.147 GB, free: 18.36 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.163e-05/0.9323, allocations: 5.406 kB / 1.147 GB, free: 18.36 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.9323, allocations: 7.984 kB / 1.147 GB, free: 18.35 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003245/0.9327, allocations: 322.6 kB / 1.147 GB, free: 18.08 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005298/0.9332, allocations: 0.5569 MB / 1.148 GB, free: 17.55 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009481/0.9342, allocations: 1.032 MB / 1.149 GB, free: 16.62 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 3.358e-05/0.9342, allocations: 9.25 kB / 1.149 GB, free: 16.61 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005072/0.9347, allocations: 483.3 kB / 1.149 GB, free: 16.2 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=37): time 1.903e-06/0.9347, allocations: 0 / 1.149 GB, free: 16.2 MB / 0.7292 GB Notification: Performance of matching and sorting (n=37): time 0.001274/0.936, allocations: 1.111 MB / 1.15 GB, free: 15.24 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.155e-05/0.9361, allocations: 138.4 kB / 1.151 GB, free: 15.07 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002135/0.9363, allocations: 229.7 kB / 1.151 GB, free: 14.87 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 3.852e-05/0.9364, allocations: 38.31 kB / 1.151 GB, free: 14.83 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 5.793e-05/0.9364, allocations: 126 kB / 1.151 GB, free: 14.71 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 6.631e-05/0.9365, allocations: 79.33 kB / 1.151 GB, free: 14.63 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.508e-05/0.9365, allocations: 4 kB / 1.151 GB, free: 14.63 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 8.097e-05/0.9366, allocations: 349.2 kB / 1.151 GB, free: 14.29 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003563/0.937, allocations: 329 kB / 1.152 GB, free: 14.01 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003771/0.9373, allocations: 419.8 kB / 1.152 GB, free: 13.62 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003662/0.9377, allocations: 361.7 kB / 1.152 GB, free: 13.31 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/0.9377, allocations: 0 / 1.152 GB, free: 13.31 MB / 0.7292 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008954/0.9386, allocations: 0.8389 MB / 1.153 GB, free: 12.58 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.9387, allocations: 4 kB / 1.153 GB, free: 12.58 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.9387, allocations: 4.562 kB / 1.153 GB, free: 12.57 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.291e-05/0.9387, allocations: 4 kB / 1.153 GB, free: 12.57 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001553/0.9389, allocations: 41.5 kB / 1.153 GB, free: 12.54 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.161e-05/0.9389, allocations: 9.297 kB / 1.153 GB, free: 12.53 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002261/0.9391, allocations: 25.55 kB / 1.153 GB, free: 12.51 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002254/0.9394, allocations: 206.3 kB / 1.154 GB, free: 12.4 MB / 0.7292 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.0001786/0.9395, allocations: 193.7 kB / 1.154 GB, free: 12.21 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.062e-05/0.9396, allocations: 28.84 kB / 1.154 GB, free: 12.19 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.958e-05/0.9397, allocations: 37.09 kB / 1.154 GB, free: 12.16 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.9397, allocations: 4 kB / 1.154 GB, free: 12.15 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.638e-06/0.9397, allocations: 6 kB / 1.154 GB, free: 12.15 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.9397, allocations: 2.531 kB / 1.154 GB, free: 12.15 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001673/0.9414, allocations: 1.703 MB / 1.155 GB, free: 10.61 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/0.9414, allocations: 7.984 kB / 1.155 GB, free: 10.6 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.208e-05/0.9414, allocations: 19.41 kB / 1.155 GB, free: 10.59 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.38e-06/0.9415, allocations: 7.938 kB / 1.155 GB, free: 10.58 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.971e-05/0.9415, allocations: 19.08 kB / 1.155 GB, free: 10.57 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.9415, allocations: 4.938 kB / 1.155 GB, free: 10.56 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.9415, allocations: 5.812 kB / 1.156 GB, free: 10.56 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008789/0.9424, allocations: 1.143 MB / 1.157 GB, free: 9.488 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 5.555e-05/0.9425, allocations: 102.1 kB / 1.157 GB, free: 9.371 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.093e-05/0.9425, allocations: 13.45 kB / 1.157 GB, free: 9.359 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002295/0.9428, allocations: 8 kB / 1.157 GB, free: 9.352 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.311e-05/0.9429, allocations: 53.52 kB / 1.157 GB, free: 9.316 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002307/0.9431, allocations: 221.6 kB / 1.157 GB, free: 9.203 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0001237/0.9433, allocations: 175 kB / 1.157 GB, free: 9.051 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9433, allocations: 0 / 1.157 GB, free: 9.051 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0004858/0.9438, allocations: 66.44 kB / 1.157 GB, free: 8.988 MB / 0.7292 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.001138/0.9449, allocations: 1.942 MB / 1.159 GB, free: 7.121 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0007501/0.9457, allocations: 0.7385 MB / 1.16 GB, free: 6.484 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.9457, allocations: 0 / 1.16 GB, free: 6.484 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0004031/0.9461, allocations: 406.5 kB / 1.16 GB, free: 6.145 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00148/0.9476, allocations: 362.4 kB / 1.161 GB, free: 5.871 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001991/0.9496, allocations: 2.985 MB / 1.163 GB, free: 2.785 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002363/0.9498, allocations: 0.7608 MB / 1.164 GB, free: 2 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0003925/0.9502, allocations: 102.4 kB / 1.164 GB, free: 1.902 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001819/0.9504, allocations: 115.4 kB / 1.164 GB, free: 1.789 MB / 0.7292 GB Notification: Performance of SimCode: time 5.31e-07/0.9504, allocations: 0 / 1.164 GB, free: 1.789 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02519/0.9756, allocations: 10.54 MB / 1.175 GB, free: 7.531 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002064/0.9759, allocations: 175.9 kB / 1.175 GB, free: 7.293 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.101/3.077, allocations: 0 / 1.175 GB, free: 7.293 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)