Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_DayType",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType,fileNamePrefix="Buildings_maint_8_0_x_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.0.1-maint.8.0.x/package.mo): time 1.346/1.346, allocations: 285.5 MB / 292.8 MB, free: 10.41 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.0009156/0.0009156, allocations: 181.2 kB / 361.1 MB, free: 7.094 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.012/1.012, allocations: 205.1 MB / 0.6195 GB, free: 10.3 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.0008079/0.0008079, allocations: 96.41 kB / 0.7326 GB, free: 44.24 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.1789/0.1798, allocations: 121.5 MB / 0.8512 GB, free: 2.879 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4077/0.5875, allocations: 115.3 MB / 0.9638 GB, free: 78.25 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1278/0.7153, allocations: 136.8 MB / 1.097 GB, free: 3.215 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001459/0.7155, allocations: 73.42 kB / 1.097 GB, free: 3.148 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.05193/0.7674, allocations: 22.07 MB / 1.119 GB, free: 13.09 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.345e-05/0.7674, allocations: 9.219 kB / 1.119 GB, free: 13.08 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.473e-05/0.7675, allocations: 32.36 kB / 1.119 GB, free: 13.05 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002953/0.7678, allocations: 242.4 kB / 1.119 GB, free: 12.77 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.824e-05/0.7679, allocations: 12.62 kB / 1.119 GB, free: 12.76 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.273e-05/0.7679, allocations: 15.94 kB / 1.119 GB, free: 12.75 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003732/0.7683, allocations: 317 kB / 1.12 GB, free: 12.44 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004923/0.7688, allocations: 442.9 kB / 1.12 GB, free: 12 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.897e-06/0.7688, allocations: 0 / 1.12 GB, free: 12 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.01e-05/0.7688, allocations: 0.5 kB / 1.12 GB, free: 12 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.7688, allocations: 4 kB / 1.12 GB, free: 11.99 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005623/0.7694, allocations: 0.5209 MB / 1.121 GB, free: 11.43 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009924/0.7704, allocations: 1.025 MB / 1.122 GB, free: 10.37 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006362/0.7711, allocations: 0.6577 MB / 1.122 GB, free: 9.703 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 3.525e-05/0.7711, allocations: 11.98 kB / 1.122 GB, free: 9.691 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004876/0.7716, allocations: 475.4 kB / 1.123 GB, free: 9.207 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=37): time 2.234e-06/0.7716, allocations: 0 / 1.123 GB, free: 9.207 MB / 0.7292 GB Notification: Performance of matching and sorting (n=37): time 0.0009124/0.7725, allocations: 0.7508 MB / 1.123 GB, free: 8.449 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.22e-05/0.7726, allocations: 144.5 kB / 1.123 GB, free: 8.277 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001702/0.7728, allocations: 215.9 kB / 1.124 GB, free: 8.062 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 2.973e-05/0.7728, allocations: 33.7 kB / 1.124 GB, free: 8.023 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 3.843e-05/0.7728, allocations: 96.91 kB / 1.124 GB, free: 7.922 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 6.348e-05/0.7729, allocations: 71.06 kB / 1.124 GB, free: 7.852 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.391e-05/0.7729, allocations: 0 / 1.124 GB, free: 7.852 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001079/0.7731, allocations: 342.8 kB / 1.124 GB, free: 7.508 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003447/0.7734, allocations: 328.7 kB / 1.125 GB, free: 7.188 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003868/0.7738, allocations: 421.6 kB / 1.125 GB, free: 6.742 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000376/0.7742, allocations: 363.9 kB / 1.125 GB, free: 6.387 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.7742, allocations: 3.938 kB / 1.125 GB, free: 6.383 MB / 0.7292 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009246/0.7751, allocations: 0.7937 MB / 1.126 GB, free: 5.582 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.255e-05/0.7751, allocations: 4.125 kB / 1.126 GB, free: 5.578 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.346e-05/0.7752, allocations: 8 kB / 1.126 GB, free: 5.57 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.273e-05/0.7752, allocations: 4 kB / 1.126 GB, free: 5.566 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000138/0.7753, allocations: 47.03 kB / 1.126 GB, free: 5.523 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.885e-06/0.7753, allocations: 7.938 kB / 1.126 GB, free: 5.516 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002215/0.7756, allocations: 11.89 kB / 1.126 GB, free: 5.504 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002304/0.7758, allocations: 207.6 kB / 1.126 GB, free: 5.301 MB / 0.7292 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.0001139/0.7759, allocations: 137.1 kB / 1.126 GB, free: 5.16 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.033e-05/0.776, allocations: 27.62 kB / 1.126 GB, free: 5.133 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.451e-05/0.7761, allocations: 35.11 kB / 1.127 GB, free: 5.102 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.7761, allocations: 8 kB / 1.127 GB, free: 5.094 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.7761, allocations: 5.75 kB / 1.127 GB, free: 5.09 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.7761, allocations: 3.984 kB / 1.127 GB, free: 5.086 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001578/0.7777, allocations: 1.63 MB / 1.128 GB, free: 3.41 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.7777, allocations: 0 / 1.128 GB, free: 3.41 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.139e-05/0.7778, allocations: 23.92 kB / 1.128 GB, free: 3.387 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.7778, allocations: 4 kB / 1.128 GB, free: 3.383 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.844e-05/0.7778, allocations: 19.97 kB / 1.128 GB, free: 3.363 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.957e-06/0.7778, allocations: 2.438 kB / 1.128 GB, free: 3.363 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.7778, allocations: 7.875 kB / 1.128 GB, free: 3.355 MB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008568/0.7787, allocations: 1.111 MB / 1.129 GB, free: 2.207 MB / 0.7292 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001016/0.7797, allocations: 1.504 MB / 1.131 GB, free: 0.6641 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 6.448e-05/0.7798, allocations: 106.9 kB / 1.131 GB, free: 0.543 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.763e-05/0.7798, allocations: 4 kB / 1.131 GB, free: 0.5391 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002309/0.7801, allocations: 0 / 1.131 GB, free: 0.5391 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.049e-05/0.7802, allocations: 47.94 kB / 1.131 GB, free: 0.4922 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000224/0.7804, allocations: 221.7 kB / 1.131 GB, free: 284 kB / 0.7292 GB Notification: Performance of sort global known variables: time 0.0001217/0.7805, allocations: 164.5 kB / 1.131 GB, free: 116 kB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0009712/0.7815, allocations: 48 kB / 1.131 GB, free: 68 kB / 0.7292 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.0001613/0.7817, allocations: 137.3 kB / 1.131 GB, free: 15.92 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0007739/0.7824, allocations: 0.7259 MB / 1.132 GB, free: 15.2 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.7825, allocations: 0 / 1.132 GB, free: 15.2 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0004422/0.7829, allocations: 403.8 kB / 1.133 GB, free: 14.8 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001356/0.7843, allocations: 341 kB / 1.133 GB, free: 14.49 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001196/0.7855, allocations: 0.8775 MB / 1.134 GB, free: 13.59 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004254/0.7859, allocations: 0.8235 MB / 1.135 GB, free: 12.74 MB / 0.7448 GB Notification: Performance of SimCode: time 3.5e-07/0.7859, allocations: 8 kB / 1.135 GB, free: 12.73 MB / 0.7448 GB (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_DayType_fmu --startTime=-1.8144e+06 --stopTime=1.8144e+06 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_DayType.fmu > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe 2>&1)