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 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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType,fileNamePrefix="Buildings_7_0_0_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 7.0.1/package.mo): time 2.248/2.248, allocations: 251 MB / 265.9 MB, free: 11.68 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.001548/0.001548, allocations: 181.1 kB / 325.5 MB, free: 2.891 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.406/2.406, allocations: 205.4 MB / 0.5764 GB, free: 20.78 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.001154/0.001154, allocations: 99.91 kB / 0.6809 GB, free: 13.64 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0005016/0.0005017, allocations: 15.84 kB / 0.7951 GB, free: 135.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2101/0.2106, allocations: 106.3 MB / 0.8988 GB, free: 65.42 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2222/0.4329, allocations: 131.4 MB / 1.027 GB, free: 13.82 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002823/0.4333, allocations: 75.95 kB / 1.027 GB, free: 13.74 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.1068/0.5401, allocations: 22.31 MB / 1.049 GB, free: 7.395 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.653e-06/0.5402, allocations: 0 / 1.049 GB, free: 7.395 MB / 0.698 GB Notification: Performance of Transformations before backend: time 2.115e-05/0.5402, allocations: 8 kB / 1.049 GB, free: 7.387 MB / 0.698 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.001404/0.5416, allocations: 0.651 MB / 1.05 GB, free: 6.66 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.901e-05/0.5417, allocations: 8.031 kB / 1.05 GB, free: 6.652 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.079e-05/0.5418, allocations: 46.55 kB / 1.05 GB, free: 6.598 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.561e-05/0.5419, allocations: 31.67 kB / 1.05 GB, free: 6.566 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004316/0.5423, allocations: 249.7 kB / 1.05 GB, free: 6.285 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.458e-05/0.5424, allocations: 16.28 kB / 1.05 GB, free: 6.27 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.927e-05/0.5425, allocations: 16 kB / 1.05 GB, free: 6.254 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009795/0.5434, allocations: 462.7 kB / 1.05 GB, free: 5.785 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.345e-05/0.5435, allocations: 0 / 1.05 GB, free: 5.785 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.026e-05/0.5435, allocations: 0 / 1.05 GB, free: 5.785 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.112e-05/0.5435, allocations: 4 kB / 1.05 GB, free: 5.781 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007247/0.5443, allocations: 335.6 kB / 1.051 GB, free: 5.453 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001058/0.5453, allocations: 0.547 MB / 1.051 GB, free: 4.848 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00217/0.5475, allocations: 1.026 MB / 1.052 GB, free: 3.785 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 5.097e-05/0.5476, allocations: 8.031 kB / 1.052 GB, free: 3.777 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001003/0.5486, allocations: 486.7 kB / 1.053 GB, free: 3.277 MB / 0.698 GB Notification: Performance of pre-optimization done (n=37): time 5.11e-06/0.5486, allocations: 3.984 kB / 1.053 GB, free: 3.273 MB / 0.698 GB Notification: Performance of matching and sorting (n=37): time 0.002702/0.5514, allocations: 1.108 MB / 1.054 GB, free: 2.16 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001028/0.5515, allocations: 140.5 kB / 1.054 GB, free: 1.992 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003611/0.5519, allocations: 232 kB / 1.054 GB, free: 1.762 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 6.218e-05/0.5519, allocations: 41.64 kB / 1.054 GB, free: 1.715 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001028/0.5521, allocations: 121.1 kB / 1.054 GB, free: 1.59 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001189/0.5522, allocations: 82.98 kB / 1.054 GB, free: 1.508 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.383e-05/0.5522, allocations: 8 kB / 1.054 GB, free: 1.5 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001739/0.5524, allocations: 342.8 kB / 1.055 GB, free: 1.156 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007301/0.5532, allocations: 336.7 kB / 1.055 GB, free: 0.8242 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007893/0.554, allocations: 418.5 kB / 1.056 GB, free: 392 kB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008191/0.5548, allocations: 357.2 kB / 1.056 GB, free: 36 kB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.211e-06/0.5548, allocations: 0 / 1.056 GB, free: 36 kB / 0.698 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.6591/1.214, allocations: 0.8235 MB / 1.057 GB, free: 155.4 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 3.557e-05/1.214, allocations: 7.969 kB / 1.057 GB, free: 155.4 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.361e-05/1.214, allocations: 3.75 kB / 1.057 GB, free: 155.4 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.055e-05/1.214, allocations: 5.328 kB / 1.057 GB, free: 155.4 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002791/1.214, allocations: 44.34 kB / 1.057 GB, free: 155.4 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.766e-05/1.214, allocations: 8.953 kB / 1.057 GB, free: 155.4 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004101/1.215, allocations: 14.38 kB / 1.057 GB, free: 155.4 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003713/1.215, allocations: 209.2 kB / 1.057 GB, free: 155.4 MB / 0.698 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.0003128/1.216, allocations: 193.8 kB / 1.057 GB, free: 155.3 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.535e-05/1.216, allocations: 32.02 kB / 1.057 GB, free: 155.3 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.969e-05/1.216, allocations: 41.73 kB / 1.057 GB, free: 155.3 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.817e-06/1.216, allocations: 5.844 kB / 1.057 GB, free: 155.3 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.034e-05/1.216, allocations: 4.219 kB / 1.057 GB, free: 155.3 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.278e-06/1.216, allocations: 5.047 kB / 1.057 GB, free: 155.3 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002912/1.219, allocations: 1.699 MB / 1.059 GB, free: 154.8 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.134e-06/1.219, allocations: 0 / 1.059 GB, free: 154.8 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.403e-05/1.219, allocations: 26.59 kB / 1.059 GB, free: 154.8 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.669e-06/1.219, allocations: 6.312 kB / 1.059 GB, free: 154.8 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.49e-05/1.219, allocations: 23.95 kB / 1.059 GB, free: 154.8 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.334e-06/1.219, allocations: 6.688 kB / 1.059 GB, free: 154.8 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/1.219, allocations: 0 / 1.059 GB, free: 154.8 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001669/1.221, allocations: 1.147 MB / 1.06 GB, free: 154.4 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 8.264e-05/1.221, allocations: 104.2 kB / 1.06 GB, free: 154.3 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.268e-05/1.221, allocations: 10.03 kB / 1.06 GB, free: 154.3 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003721/1.221, allocations: 9.344 kB / 1.06 GB, free: 154.3 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001428/1.221, allocations: 57.48 kB / 1.06 GB, free: 154.3 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004393/1.222, allocations: 230.6 kB / 1.06 GB, free: 154.2 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0002387/1.222, allocations: 167.1 kB / 1.061 GB, free: 154.2 MB / 0.698 GB Notification: Performance of sort global known variables: time 4.41e-07/1.222, allocations: 0 / 1.061 GB, free: 154.2 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0006997/1.223, allocations: 64.62 kB / 1.061 GB, free: 154.2 MB / 0.698 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.00222/1.225, allocations: 1.937 MB / 1.063 GB, free: 153 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001708/1.227, allocations: 0.736 MB / 1.063 GB, free: 153 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 6.122e-06/1.227, allocations: 6.188 kB / 1.063 GB, free: 153 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.001068/1.228, allocations: 403.8 kB / 1.064 GB, free: 153 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002867/1.231, allocations: 364 kB / 1.064 GB, free: 153 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003573/1.234, allocations: 2.979 MB / 1.067 GB, free: 150.8 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003695/1.235, allocations: 0.7622 MB / 1.068 GB, free: 150.1 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0006836/1.236, allocations: 97.66 kB / 1.068 GB, free: 150 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003005/1.236, allocations: 117.1 kB / 1.068 GB, free: 150 MB / 0.698 GB Notification: Performance of SimCode: time 1.072e-06/1.236, allocations: 0.9375 kB / 1.068 GB, free: 150 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05175/1.288, allocations: 10.55 MB / 1.078 GB, free: 147.8 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002371/1.288, allocations: 181 kB / 1.078 GB, free: 147.6 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.856/4.144, allocations: 1.094 kB / 1.078 GB, free: 147.6 MB / 0.698 GB