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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.233/2.233, allocations: 248.6 MB / 255.9 MB, free: 7.121 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.002085/0.002085, allocations: 182.8 kB / 315.1 MB, free: 4.273 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.148/2.148, allocations: 205.1 MB / 0.5658 GB, free: 292 kB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001515/0.001514, allocations: 98.89 kB / 0.67 GB, free: 5.5 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.4998/0.5014, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2302/0.7317, allocations: 106.3 MB / 0.8835 GB, free: 13.33 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7177/1.449, allocations: 131.6 MB / 1.012 GB, free: 8.5 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000276/1.45, allocations: 72.95 kB / 1.012 GB, free: 8.461 MB / 0.6355 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.1071/1.557, allocations: 22.11 MB / 1.034 GB, free: 6.625 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.064e-05/1.557, allocations: 8 kB / 1.034 GB, free: 6.617 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001384/1.557, allocations: 31.62 kB / 1.034 GB, free: 6.586 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005651/1.558, allocations: 245.2 kB / 1.034 GB, free: 6.32 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.942e-05/1.558, allocations: 12 kB / 1.034 GB, free: 6.309 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.866e-05/1.558, allocations: 8 kB / 1.034 GB, free: 6.301 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001089/1.559, allocations: 311.5 kB / 1.034 GB, free: 6.051 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009123/1.56, allocations: 454.5 kB / 1.035 GB, free: 5.66 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.472e-05/1.56, allocations: 4 kB / 1.035 GB, free: 5.656 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.938e-05/1.56, allocations: 4 kB / 1.035 GB, free: 5.652 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.491e-05/1.56, allocations: 7.906 kB / 1.035 GB, free: 5.645 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001095/1.561, allocations: 0.5172 MB / 1.035 GB, free: 5.148 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002061/1.563, allocations: 1.033 MB / 1.036 GB, free: 4.242 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00126/1.564, allocations: 0.649 MB / 1.037 GB, free: 3.691 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 5.139e-05/1.565, allocations: 11.98 kB / 1.037 GB, free: 3.68 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001092/1.566, allocations: 472.3 kB / 1.037 GB, free: 3.27 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=37): time 1.208e-05/1.566, allocations: 4 kB / 1.037 GB, free: 3.266 MB / 0.6511 GB Notification: Performance of matching and sorting (n=37): time 0.002216/1.568, allocations: 0.7489 MB / 1.038 GB, free: 2.625 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001583/1.568, allocations: 144 kB / 1.038 GB, free: 2.457 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003676/1.569, allocations: 216.2 kB / 1.038 GB, free: 2.27 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 6.861e-05/1.569, allocations: 36.95 kB / 1.038 GB, free: 2.23 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 7.429e-05/1.569, allocations: 99.45 kB / 1.039 GB, free: 2.137 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001156/1.569, allocations: 68.58 kB / 1.039 GB, free: 2.078 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.715e-05/1.569, allocations: 3.312 kB / 1.039 GB, free: 2.078 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001789/1.569, allocations: 336.6 kB / 1.039 GB, free: 1.75 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006654/1.57, allocations: 328 kB / 1.039 GB, free: 1.488 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007396/1.571, allocations: 411.1 kB / 1.04 GB, free: 1.121 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008028/1.571, allocations: 363.3 kB / 1.04 GB, free: 0.8281 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.058e-06/1.571, allocations: 4 kB / 1.04 GB, free: 0.8242 MB / 0.6511 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0024/1.574, allocations: 0.7987 MB / 1.041 GB, free: 148 kB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 3.037e-05/1.574, allocations: 8 kB / 1.041 GB, free: 140 kB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.367e-05/1.574, allocations: 4.172 kB / 1.041 GB, free: 136 kB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.967e-05/1.574, allocations: 8 kB / 1.041 GB, free: 128 kB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003079/1.574, allocations: 47.44 kB / 1.041 GB, free: 84 kB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.835e-05/1.574, allocations: 8 kB / 1.041 GB, free: 76 kB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004917/1.575, allocations: 15.98 kB / 1.041 GB, free: 60 kB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004413/1.575, allocations: 204.8 kB / 1.041 GB, free: 15.87 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.0002178/1.576, allocations: 140.1 kB / 1.041 GB, free: 15.73 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001521/1.576, allocations: 31.7 kB / 1.041 GB, free: 15.7 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001365/1.576, allocations: 31.09 kB / 1.041 GB, free: 15.69 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.739e-05/1.576, allocations: 11.89 kB / 1.041 GB, free: 15.68 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.807e-06/1.576, allocations: 0 / 1.041 GB, free: 15.68 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/1.576, allocations: 0 / 1.041 GB, free: 15.68 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003288/1.579, allocations: 1.641 MB / 1.043 GB, free: 14.19 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.618e-06/1.579, allocations: 3.938 kB / 1.043 GB, free: 14.18 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.147e-05/1.579, allocations: 23.09 kB / 1.043 GB, free: 14.16 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.111e-05/1.579, allocations: 8 kB / 1.043 GB, free: 14.16 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.657e-05/1.579, allocations: 19.59 kB / 1.043 GB, free: 14.14 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.055e-06/1.579, allocations: 4 kB / 1.043 GB, free: 14.14 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/1.579, allocations: 0 / 1.043 GB, free: 14.14 MB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001751/1.581, allocations: 1.112 MB / 1.044 GB, free: 13.11 MB / 0.6667 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001933/1.583, allocations: 1.496 MB / 1.045 GB, free: 11.7 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000118/1.583, allocations: 104.7 kB / 1.046 GB, free: 11.58 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000114/1.584, allocations: 3.438 kB / 1.046 GB, free: 11.58 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004395/1.584, allocations: 11.98 kB / 1.046 GB, free: 11.57 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001438/1.584, allocations: 46.28 kB / 1.046 GB, free: 11.54 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004368/1.585, allocations: 225.6 kB / 1.046 GB, free: 11.32 MB / 0.6667 GB Notification: Performance of sort global known variables: time 0.0002543/1.585, allocations: 158.9 kB / 1.046 GB, free: 11.19 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.001677/1.587, allocations: 52 kB / 1.046 GB, free: 11.14 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.000353/1.587, allocations: 131.3 kB / 1.046 GB, free: 11 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.001587/1.589, allocations: 0.723 MB / 1.047 GB, free: 10.4 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/1.589, allocations: 0 / 1.047 GB, free: 10.4 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.001023/1.59, allocations: 403.1 kB / 1.047 GB, free: 10.07 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003126/1.593, allocations: 354.5 kB / 1.048 GB, free: 9.75 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00245/1.595, allocations: 0.8677 MB / 1.048 GB, free: 8.961 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008767/1.596, allocations: 0.8277 MB / 1.049 GB, free: 8.117 MB / 0.6667 GB Notification: Performance of SimCode: time 1.984e-06/1.596, allocations: 0 / 1.049 GB, free: 8.117 MB / 0.6667 GB