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.31/2.31, allocations: 248.7 MB / 256.2 MB, free: 7.078 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001479/0.001479, allocations: 189.2 kB / 315.4 MB, free: 3.988 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.06/2.06, allocations: 205.3 MB / 0.5662 GB, free: 0.582 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001086/0.001086, allocations: 105 kB / 0.6704 GB, free: 5.766 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.108e-05/3.109e-05, allocations: 4 kB / 0.7804 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.209/0.2091, allocations: 106.3 MB / 0.8841 GB, free: 12.95 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8775/1.087, allocations: 131.6 MB / 1.013 GB, free: 7.09 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002536/1.087, allocations: 71.89 kB / 1.013 GB, free: 7.051 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.1002/1.187, allocations: 22.13 MB / 1.034 GB, free: 5.277 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.412e-06/1.187, allocations: 0 / 1.034 GB, free: 5.277 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 2.129e-05/1.187, allocations: 12 kB / 1.034 GB, free: 5.266 MB / 0.6511 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.001316/1.189, allocations: 0.6086 MB / 1.035 GB, free: 4.602 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.968e-05/1.189, allocations: 8.031 kB / 1.035 GB, free: 4.594 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001091/1.189, allocations: 35.58 kB / 1.035 GB, free: 4.559 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004691/1.189, allocations: 240.2 kB / 1.035 GB, free: 4.297 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.451e-05/1.189, allocations: 4 kB / 1.035 GB, free: 4.293 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.485e-05/1.189, allocations: 19.92 kB / 1.035 GB, free: 4.277 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006358/1.19, allocations: 308.2 kB / 1.036 GB, free: 4.027 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007982/1.191, allocations: 441.8 kB / 1.036 GB, free: 3.648 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.327e-05/1.191, allocations: 0 / 1.036 GB, free: 3.648 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.259e-05/1.191, allocations: 0 / 1.036 GB, free: 3.648 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.287e-06/1.191, allocations: 11.94 kB / 1.036 GB, free: 3.637 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008856/1.192, allocations: 0.5182 MB / 1.036 GB, free: 3.141 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001831/1.194, allocations: 0.9985 MB / 1.037 GB, free: 2.27 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001159/1.195, allocations: 0.6421 MB / 1.038 GB, free: 1.727 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 4.806e-05/1.195, allocations: 15.3 kB / 1.038 GB, free: 1.715 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008583/1.196, allocations: 468.8 kB / 1.039 GB, free: 1.305 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=37): time 2.675e-06/1.196, allocations: 0 / 1.039 GB, free: 1.305 MB / 0.6511 GB Notification: Performance of matching and sorting (n=37): time 0.001657/1.197, allocations: 0.7659 MB / 1.039 GB, free: 0.6523 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001232/1.198, allocations: 144 kB / 1.039 GB, free: 496 kB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003362/1.198, allocations: 216.6 kB / 1.04 GB, free: 308 kB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 5.757e-05/1.198, allocations: 25.7 kB / 1.04 GB, free: 276 kB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001044/1.198, allocations: 122.9 kB / 1.04 GB, free: 176 kB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001036/1.198, allocations: 71.3 kB / 1.04 GB, free: 116 kB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.37e-05/1.198, allocations: 0 / 1.04 GB, free: 116 kB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0002071/1.199, allocations: 346.8 kB / 1.04 GB, free: 15.78 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006173/1.199, allocations: 318 kB / 1.04 GB, free: 15.53 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007003/1.2, allocations: 409.8 kB / 1.041 GB, free: 15.16 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007392/1.201, allocations: 350.6 kB / 1.041 GB, free: 14.88 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.661e-06/1.201, allocations: 0 / 1.041 GB, free: 14.88 MB / 0.6667 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001621/1.202, allocations: 0.7899 MB / 1.042 GB, free: 14.21 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 2.75e-05/1.202, allocations: 15.88 kB / 1.042 GB, free: 14.19 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/1.202, allocations: 480 / 1.042 GB, free: 14.19 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.712e-05/1.202, allocations: 8 kB / 1.042 GB, free: 14.18 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002784/1.203, allocations: 47.14 kB / 1.042 GB, free: 14.14 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.287e-05/1.203, allocations: 4 kB / 1.042 GB, free: 14.14 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004184/1.203, allocations: 15.84 kB / 1.042 GB, free: 14.12 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000425/1.204, allocations: 210.5 kB / 1.042 GB, free: 13.92 MB / 0.6667 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.0002136/1.204, allocations: 145.5 kB / 1.042 GB, free: 13.78 MB / 0.6667 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001588/1.205, allocations: 0.7623 MB / 1.043 GB, free: 13.12 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.241e-05/1.205, allocations: 31.61 kB / 1.043 GB, free: 13.09 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001181/1.206, allocations: 31.66 kB / 1.043 GB, free: 13.08 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.458e-06/1.206, allocations: 4.125 kB / 1.043 GB, free: 13.08 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.129e-05/1.206, allocations: 8 kB / 1.043 GB, free: 13.07 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/1.206, allocations: 7.984 kB / 1.043 GB, free: 13.06 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002945/1.209, allocations: 1.627 MB / 1.045 GB, free: 11.59 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.305e-06/1.209, allocations: 4 kB / 1.045 GB, free: 11.59 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.901e-05/1.209, allocations: 27.28 kB / 1.045 GB, free: 11.57 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.232e-05/1.209, allocations: 4 kB / 1.045 GB, free: 11.56 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.043e-05/1.209, allocations: 19.22 kB / 1.045 GB, free: 11.55 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/1.209, allocations: 0 / 1.045 GB, free: 11.55 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.979e-06/1.209, allocations: 8.188 kB / 1.045 GB, free: 11.54 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001677/1.211, allocations: 1.123 MB / 1.046 GB, free: 10.5 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001148/1.211, allocations: 104.7 kB / 1.046 GB, free: 10.38 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.128e-05/1.211, allocations: 6.859 kB / 1.046 GB, free: 10.38 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004081/1.211, allocations: 4 kB / 1.046 GB, free: 10.38 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001415/1.211, allocations: 54.25 kB / 1.046 GB, free: 10.34 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004439/1.212, allocations: 230.2 kB / 1.046 GB, free: 10.11 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0002445/1.212, allocations: 160.2 kB / 1.046 GB, free: 9.98 MB / 0.6667 GB Notification: Performance of sort global known variables: time 4.61e-07/1.212, allocations: 0 / 1.046 GB, free: 9.98 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0007856/1.213, allocations: 48 kB / 1.047 GB, free: 9.934 MB / 0.6667 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.002293/1.215, allocations: 1.93 MB / 1.048 GB, free: 8.098 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.001538/1.217, allocations: 0.6957 MB / 1.049 GB, free: 7.52 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/1.217, allocations: 0 / 1.049 GB, free: 7.52 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0008093/1.218, allocations: 400.7 kB / 1.049 GB, free: 7.195 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002632/1.22, allocations: 372.8 kB / 1.05 GB, free: 6.859 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002443/1.223, allocations: 0.9076 MB / 1.051 GB, free: 6.016 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004595/1.223, allocations: 0.7607 MB / 1.051 GB, free: 5.23 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0005288/1.224, allocations: 95.23 kB / 1.052 GB, free: 5.141 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002701/1.224, allocations: 122.4 kB / 1.052 GB, free: 5.074 MB / 0.6667 GB Notification: Performance of SimCode: time 1.192e-06/1.224, allocations: 0 / 1.052 GB, free: 5.074 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05749/1.282, allocations: 9.955 MB / 1.061 GB, free: 11.16 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003387/1.282, allocations: 149.1 kB / 1.062 GB, free: 10.96 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.619/3.901, allocations: 0 / 1.062 GB, free: 10.96 MB / 0.6823 GB