Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.Sources.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.Sources.Examples.DayType,fileNamePrefix="Buildings_8_Buildings_Controls_Sources_Examples_DayType",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Sources.Examples.DayType,fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.361/1.361, allocations: 289.8 MB / 297.1 MB, free: 6.684 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.0008988/0.0008988, allocations: 177.3 kB / 366.3 MB, free: 2.008 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.053/1.053, allocations: 205.1 MB / 0.6256 GB, free: 5.844 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.0008273/0.0008273, allocations: 102.8 kB / 0.7396 GB, free: 39.64 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2021/0.203, allocations: 122.4 MB / 0.8591 GB, free: 13.29 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4207/0.6237, allocations: 116.3 MB / 0.9726 GB, free: 68.51 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1364/0.7602, allocations: 138.8 MB / 1.108 GB, free: 9.711 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001767/0.7604, allocations: 79.88 kB / 1.108 GB, free: 9.633 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.04484/0.8052, allocations: 18.75 MB / 1.127 GB, free: 6.809 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.8053, allocations: 8 kB / 1.127 GB, free: 6.801 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.187e-05/0.8054, allocations: 27.7 kB / 1.127 GB, free: 6.773 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000304/0.8057, allocations: 253.8 kB / 1.127 GB, free: 6.484 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.27e-05/0.8057, allocations: 7.906 kB / 1.127 GB, free: 6.477 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.404e-05/0.8057, allocations: 20 kB / 1.127 GB, free: 6.457 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003385/0.8061, allocations: 308.4 kB / 1.127 GB, free: 6.156 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004535/0.8065, allocations: 454.5 kB / 1.128 GB, free: 5.695 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.186e-06/0.8066, allocations: 0 / 1.128 GB, free: 5.695 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.963e-05/0.8066, allocations: 0.5625 kB / 1.128 GB, free: 5.695 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.602e-06/0.8066, allocations: 4 kB / 1.128 GB, free: 5.691 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005194/0.8071, allocations: 0.5239 MB / 1.128 GB, free: 5.121 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001027/0.8082, allocations: 1.019 MB / 1.129 GB, free: 4.066 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006498/0.8088, allocations: 0.661 MB / 1.13 GB, free: 3.395 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 2.864e-05/0.8088, allocations: 4 kB / 1.13 GB, free: 3.391 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004439/0.8093, allocations: 475.7 kB / 1.13 GB, free: 2.902 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=37): time 1.463e-06/0.8093, allocations: 0 / 1.13 GB, free: 2.902 MB / 0.7292 GB Notification: Performance of matching and sorting (n=37): time 0.0008489/0.8102, allocations: 0.7536 MB / 1.131 GB, free: 2.145 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.268e-05/0.8102, allocations: 140.5 kB / 1.131 GB, free: 1.977 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001758/0.8104, allocations: 228 kB / 1.131 GB, free: 1.75 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 2.763e-05/0.8104, allocations: 25.7 kB / 1.131 GB, free: 1.719 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 4.061e-05/0.8105, allocations: 100.9 kB / 1.131 GB, free: 1.613 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 6.521e-05/0.8106, allocations: 75.06 kB / 1.131 GB, free: 1.539 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.511e-05/0.8106, allocations: 0 / 1.131 GB, free: 1.539 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 9.577e-05/0.8107, allocations: 338.8 kB / 1.132 GB, free: 1.199 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003279/0.811, allocations: 324.7 kB / 1.132 GB, free: 0.8828 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003671/0.8114, allocations: 417.6 kB / 1.132 GB, free: 444 kB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003864/0.8118, allocations: 360.7 kB / 1.133 GB, free: 84 kB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.8118, allocations: 0 / 1.133 GB, free: 84 kB / 0.7292 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.000878/0.8127, allocations: 0.7995 MB / 1.134 GB, free: 15.28 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.193e-05/0.8127, allocations: 4 kB / 1.134 GB, free: 15.27 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.8127, allocations: 4 kB / 1.134 GB, free: 15.27 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.554e-05/0.8127, allocations: 4 kB / 1.134 GB, free: 15.27 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001496/0.8129, allocations: 47.78 kB / 1.134 GB, free: 15.22 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.013e-06/0.8129, allocations: 8.062 kB / 1.134 GB, free: 15.21 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002099/0.8131, allocations: 15.83 kB / 1.134 GB, free: 15.2 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002298/0.8134, allocations: 211.8 kB / 1.134 GB, free: 14.99 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.0001121/0.8135, allocations: 141.1 kB / 1.134 GB, free: 14.84 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.099e-05/0.8135, allocations: 27.62 kB / 1.134 GB, free: 14.82 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.344e-05/0.8136, allocations: 33.89 kB / 1.134 GB, free: 14.79 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.419e-06/0.8136, allocations: 4 kB / 1.134 GB, free: 14.79 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.8136, allocations: 4 kB / 1.134 GB, free: 14.78 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.8136, allocations: 3.984 kB / 1.134 GB, free: 14.78 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001607/0.8152, allocations: 1.636 MB / 1.136 GB, free: 13.1 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.8153, allocations: 4 kB / 1.136 GB, free: 13.09 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.031e-05/0.8153, allocations: 19.92 kB / 1.136 GB, free: 13.07 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.8153, allocations: 8 kB / 1.136 GB, free: 13.07 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.992e-05/0.8153, allocations: 20.09 kB / 1.136 GB, free: 13.05 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.8154, allocations: 4 kB / 1.136 GB, free: 13.04 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.8154, allocations: 4 kB / 1.136 GB, free: 13.04 MB / 0.7448 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000914/0.8163, allocations: 1.111 MB / 1.137 GB, free: 11.89 MB / 0.7448 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009318/0.8172, allocations: 1.49 MB / 1.138 GB, free: 10.36 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 5.288e-05/0.8173, allocations: 106.2 kB / 1.138 GB, free: 10.24 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.636e-05/0.8173, allocations: 15.98 kB / 1.138 GB, free: 10.22 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002371/0.8176, allocations: 4 kB / 1.138 GB, free: 10.22 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.953e-05/0.8177, allocations: 43.94 kB / 1.138 GB, free: 10.18 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002133/0.8179, allocations: 219.5 kB / 1.139 GB, free: 9.961 MB / 0.7448 GB Notification: Performance of sort global known variables: time 0.0001193/0.818, allocations: 168.5 kB / 1.139 GB, free: 9.801 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.001029/0.8191, allocations: 52 kB / 1.139 GB, free: 9.75 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.0001395/0.8192, allocations: 127.3 kB / 1.139 GB, free: 9.613 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0007602/0.82, allocations: 0.7264 MB / 1.14 GB, free: 8.887 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.82, allocations: 192 / 1.14 GB, free: 8.887 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.000425/0.8204, allocations: 395.8 kB / 1.14 GB, free: 8.5 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001312/0.8217, allocations: 293.5 kB / 1.14 GB, free: 8.227 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001092/0.8228, allocations: 0.8702 MB / 1.141 GB, free: 7.324 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004024/0.8232, allocations: 0.8247 MB / 1.142 GB, free: 6.473 MB / 0.7448 GB Notification: Performance of SimCode: time 3.11e-07/0.8232, allocations: 4 kB / 1.142 GB, free: 6.469 MB / 0.7448 GB (rm -f Buildings_8_Buildings.Controls.Sources.Examples.DayType.pipe ; mkfifo Buildings_8_Buildings.Controls.Sources.Examples.DayType.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.Sources.Examples.DayType.pipe >> ../files/Buildings_8_Buildings.Controls.Sources.Examples.DayType.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_Sources_Examples_DayType_fmu --startTime=-1.8144e+06 --stopTime=1.8144e+06 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_Sources_Examples_DayType.fmu > Buildings_8_Buildings.Controls.Sources.Examples.DayType.pipe 2>&1)