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"}) [: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 8.1.4-maint.8.1.x/package.mo): time 1.364/1.364, allocations: 289.8 MB / 297 MB, free: 6.672 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.0009427/0.0009427, allocations: 181.3 kB / 366.3 MB, free: 1.996 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.109/1.109, allocations: 205.1 MB / 0.6256 GB, free: 5.914 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.0009017/0.0009018, allocations: 80.8 kB / 0.7395 GB, free: 39.7 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2072/0.2082, allocations: 122.4 MB / 0.8591 GB, free: 13.28 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4434/0.6516, allocations: 116.3 MB / 0.9727 GB, free: 68.69 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1435/0.7952, allocations: 137.8 MB / 1.107 GB, free: 10.67 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002068/0.7954, allocations: 61.12 kB / 1.107 GB, free: 10.61 MB / 0.7136 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.05431/0.8498, allocations: 22.07 MB / 1.129 GB, free: 4.457 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.347e-05/0.8498, allocations: 12 kB / 1.129 GB, free: 4.445 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.958e-05/0.8499, allocations: 27.72 kB / 1.129 GB, free: 4.418 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003104/0.8502, allocations: 245.8 kB / 1.129 GB, free: 4.137 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.788e-05/0.8503, allocations: 19.83 kB / 1.129 GB, free: 4.117 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.13e-05/0.8503, allocations: 12 kB / 1.129 GB, free: 4.105 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003546/0.8507, allocations: 314.2 kB / 1.129 GB, free: 3.801 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004709/0.8511, allocations: 450.5 kB / 1.13 GB, free: 3.344 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.8512, allocations: 0 / 1.13 GB, free: 3.344 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.158e-05/0.8512, allocations: 4 kB / 1.13 GB, free: 3.34 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.8512, allocations: 4 kB / 1.13 GB, free: 3.336 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005482/0.8518, allocations: 0.5162 MB / 1.13 GB, free: 2.773 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001045/0.8528, allocations: 1.027 MB / 1.131 GB, free: 1.711 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006379/0.8535, allocations: 0.6487 MB / 1.132 GB, free: 1.051 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 3.273e-05/0.8535, allocations: 15.94 kB / 1.132 GB, free: 1.035 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004563/0.854, allocations: 466.4 kB / 1.132 GB, free: 0.5547 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=37): time 4.238e-06/0.854, allocations: 3.984 kB / 1.132 GB, free: 0.5508 MB / 0.7292 GB Notification: Performance of matching and sorting (n=37): time 0.0008863/0.8549, allocations: 0.7584 MB / 1.133 GB, free: 15.79 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.023e-05/0.8549, allocations: 144.5 kB / 1.133 GB, free: 15.62 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002329/0.8552, allocations: 215.9 kB / 1.134 GB, free: 15.4 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 3.25e-05/0.8552, allocations: 25.7 kB / 1.134 GB, free: 15.37 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 4.372e-05/0.8553, allocations: 100.9 kB / 1.134 GB, free: 15.27 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 7.436e-05/0.8554, allocations: 79.05 kB / 1.134 GB, free: 15.19 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.506e-05/0.8554, allocations: 0 / 1.134 GB, free: 15.19 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001027/0.8555, allocations: 338.8 kB / 1.134 GB, free: 14.85 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003325/0.8558, allocations: 330.1 kB / 1.134 GB, free: 14.53 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004104/0.8562, allocations: 413.6 kB / 1.135 GB, free: 14.08 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004142/0.8567, allocations: 364.4 kB / 1.135 GB, free: 13.73 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.8567, allocations: 0 / 1.135 GB, free: 13.73 MB / 0.7448 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009248/0.8576, allocations: 0.7946 MB / 1.136 GB, free: 12.93 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.202e-05/0.8576, allocations: 4 kB / 1.136 GB, free: 12.92 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.8576, allocations: 8.125 kB / 1.136 GB, free: 12.91 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.8577, allocations: 4 kB / 1.136 GB, free: 12.91 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001421/0.8578, allocations: 47.83 kB / 1.136 GB, free: 12.86 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.685e-06/0.8578, allocations: 4 kB / 1.136 GB, free: 12.86 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002267/0.8581, allocations: 11.91 kB / 1.136 GB, free: 12.85 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002405/0.8583, allocations: 216 kB / 1.136 GB, free: 12.64 MB / 0.7448 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.0001199/0.8584, allocations: 136.8 kB / 1.136 GB, free: 12.5 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.605e-05/0.8585, allocations: 31.56 kB / 1.136 GB, free: 12.46 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.789e-05/0.8586, allocations: 37.89 kB / 1.136 GB, free: 12.43 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.591e-06/0.8586, allocations: 8.562 kB / 1.136 GB, free: 12.43 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.8586, allocations: 0 / 1.136 GB, free: 12.43 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.8586, allocations: 0 / 1.136 GB, free: 12.43 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001743/0.8604, allocations: 1.638 MB / 1.138 GB, free: 10.74 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.8604, allocations: 0 / 1.138 GB, free: 10.74 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.404e-05/0.8604, allocations: 24.03 kB / 1.138 GB, free: 10.72 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.631e-06/0.8604, allocations: 4.562 kB / 1.138 GB, free: 10.71 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.496e-05/0.8605, allocations: 23.97 kB / 1.138 GB, free: 10.69 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.8605, allocations: 7.938 kB / 1.138 GB, free: 10.68 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.8605, allocations: 0 / 1.138 GB, free: 10.68 MB / 0.7448 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009751/0.8615, allocations: 1.107 MB / 1.139 GB, free: 9.539 MB / 0.7448 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001006/0.8625, allocations: 1.502 MB / 1.141 GB, free: 7.996 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 6.481e-05/0.8626, allocations: 105.6 kB / 1.141 GB, free: 7.875 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.727e-05/0.8626, allocations: 0 / 1.141 GB, free: 7.875 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002439/0.8629, allocations: 7.984 kB / 1.141 GB, free: 7.867 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.729e-05/0.863, allocations: 43.94 kB / 1.141 GB, free: 7.824 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002255/0.8632, allocations: 223.5 kB / 1.141 GB, free: 7.605 MB / 0.7448 GB Notification: Performance of sort global known variables: time 0.0001518/0.8634, allocations: 160.5 kB / 1.141 GB, free: 7.453 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.001057/0.8644, allocations: 52 kB / 1.141 GB, free: 7.402 MB / 0.7448 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.0001774/0.8646, allocations: 139.3 kB / 1.141 GB, free: 7.254 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0007786/0.8654, allocations: 0.7222 MB / 1.142 GB, free: 6.531 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.8654, allocations: 4.844 kB / 1.142 GB, free: 6.527 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0004408/0.8659, allocations: 403.8 kB / 1.142 GB, free: 6.133 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001386/0.8672, allocations: 341.9 kB / 1.143 GB, free: 5.812 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001154/0.8684, allocations: 0.8636 MB / 1.144 GB, free: 4.918 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004308/0.8689, allocations: 0.8344 MB / 1.144 GB, free: 4.055 MB / 0.7448 GB Notification: Performance of SimCode: time 3.31e-07/0.8689, allocations: 4 kB / 1.144 GB, free: 4.051 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)