Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.Sources.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.Sources.Examples.DayType,fileNamePrefix="Buildings_7_0_0_Buildings_Controls_Sources_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.488/2.488, allocations: 248.6 MB / 255.9 MB, free: 7.172 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.001668/0.001668, allocations: 190.5 kB / 315.1 MB, free: 4.305 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.008/2.008, allocations: 205.1 MB / 0.5658 GB, free: 340 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.001267/0.001266, allocations: 93.83 kB / 0.67 GB, free: 5.543 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.5499/0.5512, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2633/0.8145, allocations: 106.3 MB / 0.8835 GB, free: 13.39 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6624/1.477, allocations: 132.3 MB / 1.013 GB, free: 7.895 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002937/1.477, allocations: 72.45 kB / 1.013 GB, free: 7.855 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.08512/1.563, allocations: 18.76 MB / 1.031 GB, free: 8.73 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.615e-05/1.563, allocations: 8 kB / 1.031 GB, free: 8.723 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001055/1.563, allocations: 27.62 kB / 1.031 GB, free: 8.695 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004966/1.563, allocations: 252.2 kB / 1.031 GB, free: 8.426 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.864e-05/1.563, allocations: 7.984 kB / 1.031 GB, free: 8.418 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.543e-05/1.563, allocations: 12 kB / 1.031 GB, free: 8.406 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006693/1.564, allocations: 314.2 kB / 1.032 GB, free: 8.152 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008428/1.565, allocations: 453.7 kB / 1.032 GB, free: 7.762 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/1.565, allocations: 0 / 1.032 GB, free: 7.762 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.298e-05/1.565, allocations: 0 / 1.032 GB, free: 7.762 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.277e-05/1.565, allocations: 7.906 kB / 1.032 GB, free: 7.754 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009414/1.566, allocations: 0.5105 MB / 1.033 GB, free: 7.266 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001938/1.568, allocations: 1.021 MB / 1.034 GB, free: 6.371 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001229/1.569, allocations: 0.6543 MB / 1.034 GB, free: 5.816 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 4.659e-05/1.569, allocations: 11.92 kB / 1.034 GB, free: 5.805 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000877/1.57, allocations: 487.6 kB / 1.035 GB, free: 5.379 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=37): time 2.865e-06/1.57, allocations: 0 / 1.035 GB, free: 5.379 MB / 0.6511 GB Notification: Performance of matching and sorting (n=37): time 0.001692/1.572, allocations: 0.7489 MB / 1.035 GB, free: 4.742 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001115/1.572, allocations: 148.2 kB / 1.036 GB, free: 4.57 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003497/1.572, allocations: 219.4 kB / 1.036 GB, free: 4.379 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 5.326e-05/1.572, allocations: 28.89 kB / 1.036 GB, free: 4.348 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 6.522e-05/1.572, allocations: 100.1 kB / 1.036 GB, free: 4.254 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001164/1.573, allocations: 73.73 kB / 1.036 GB, free: 4.191 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.565e-05/1.573, allocations: 0 / 1.036 GB, free: 4.191 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001576/1.573, allocations: 344.7 kB / 1.036 GB, free: 3.859 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006252/1.573, allocations: 324.2 kB / 1.037 GB, free: 3.602 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00079/1.574, allocations: 412.3 kB / 1.037 GB, free: 3.23 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007637/1.575, allocations: 364.2 kB / 1.037 GB, free: 2.934 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/1.575, allocations: 0 / 1.037 GB, free: 2.934 MB / 0.6511 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001689/1.577, allocations: 0.8014 MB / 1.038 GB, free: 2.254 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.061e-05/1.577, allocations: 4 kB / 1.038 GB, free: 2.25 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.419e-05/1.577, allocations: 4 kB / 1.038 GB, free: 2.246 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.703e-05/1.577, allocations: 4 kB / 1.038 GB, free: 2.242 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002796/1.577, allocations: 55.39 kB / 1.038 GB, free: 2.191 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.67e-05/1.577, allocations: 4 kB / 1.038 GB, free: 2.188 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000479/1.578, allocations: 11.88 kB / 1.038 GB, free: 2.176 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000422/1.578, allocations: 207.4 kB / 1.038 GB, free: 1.977 MB / 0.6511 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.578, allocations: 147.1 kB / 1.039 GB, free: 1.832 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.071e-05/1.578, allocations: 23.72 kB / 1.039 GB, free: 1.809 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001434/1.579, allocations: 33.64 kB / 1.039 GB, free: 1.797 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.269e-05/1.579, allocations: 7.906 kB / 1.039 GB, free: 1.789 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.338e-05/1.579, allocations: 8.062 kB / 1.039 GB, free: 1.781 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.747e-06/1.579, allocations: 4 kB / 1.039 GB, free: 1.777 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003061/1.582, allocations: 1.622 MB / 1.04 GB, free: 316 kB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.212e-06/1.582, allocations: 0 / 1.04 GB, free: 316 kB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.141e-05/1.582, allocations: 31.03 kB / 1.04 GB, free: 288 kB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.279e-05/1.582, allocations: 4 kB / 1.04 GB, free: 284 kB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.198e-05/1.582, allocations: 19.53 kB / 1.04 GB, free: 268 kB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.35e-06/1.582, allocations: 0 / 1.04 GB, free: 268 kB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/1.582, allocations: 4 kB / 1.04 GB, free: 264 kB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001681/1.584, allocations: 1.112 MB / 1.041 GB, free: 15.23 MB / 0.6667 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00178/1.585, allocations: 1.495 MB / 1.043 GB, free: 13.82 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001414/1.586, allocations: 104.7 kB / 1.043 GB, free: 13.7 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.974e-05/1.586, allocations: 7.062 kB / 1.043 GB, free: 13.7 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004314/1.586, allocations: 3.984 kB / 1.043 GB, free: 13.69 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001353/1.586, allocations: 52.84 kB / 1.043 GB, free: 13.65 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004252/1.587, allocations: 223.4 kB / 1.043 GB, free: 13.44 MB / 0.6667 GB Notification: Performance of sort global known variables: time 0.000239/1.587, allocations: 162.7 kB / 1.043 GB, free: 13.3 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.001541/1.589, allocations: 55.94 kB / 1.043 GB, free: 13.25 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.0002525/1.589, allocations: 129.6 kB / 1.044 GB, free: 13.12 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.001512/1.59, allocations: 0.7221 MB / 1.044 GB, free: 12.52 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 4.359e-06/1.59, allocations: 192 / 1.044 GB, free: 12.52 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0008193/1.591, allocations: 403.3 kB / 1.045 GB, free: 12.18 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002815/1.594, allocations: 290 kB / 1.045 GB, free: 11.93 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002216/1.596, allocations: 0.8679 MB / 1.046 GB, free: 11.14 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007234/1.597, allocations: 0.8286 MB / 1.047 GB, free: 10.3 MB / 0.6667 GB Notification: Performance of SimCode: time 1.523e-06/1.597, allocations: 0 / 1.047 GB, free: 10.3 MB / 0.6667 GB