Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType,fileNamePrefix="Buildings_8_0_0_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_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 8.0.0/package.mo): time 2.107/2.107, allocations: 284.8 MB / 292.1 MB, free: 10.74 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.001517/0.001517, allocations: 177.3 kB / 360.3 MB, free: 7.543 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.642/1.642, allocations: 205.1 MB / 0.6187 GB, free: 13.21 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.001187/0.001187, allocations: 91.52 kB / 0.7317 GB, free: 45.12 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2462/0.2474, allocations: 121.4 MB / 0.8502 GB, free: 3.906 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5522/0.7996, allocations: 115.2 MB / 0.9628 GB, free: 78.59 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2043/1.004, allocations: 136.6 MB / 1.096 GB, free: 4.227 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002418/1.004, allocations: 64.91 kB / 1.096 GB, free: 4.164 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.09863/1.103, allocations: 22.07 MB / 1.118 GB, free: 14.12 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.646e-05/1.103, allocations: 12.44 kB / 1.118 GB, free: 14.11 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001053/1.103, allocations: 25.59 kB / 1.118 GB, free: 14.09 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004603/1.104, allocations: 252.6 kB / 1.118 GB, free: 13.8 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.563e-05/1.104, allocations: 11.89 kB / 1.118 GB, free: 13.79 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.626e-05/1.104, allocations: 12 kB / 1.118 GB, free: 13.78 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006622/1.104, allocations: 314.8 kB / 1.118 GB, free: 13.48 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000842/1.105, allocations: 446 kB / 1.119 GB, free: 13.03 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.307e-05/1.105, allocations: 0.8438 kB / 1.119 GB, free: 13.03 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.517e-05/1.105, allocations: 4 kB / 1.119 GB, free: 13.02 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.027e-05/1.105, allocations: 4.688 kB / 1.119 GB, free: 13.02 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009862/1.106, allocations: 0.5191 MB / 1.119 GB, free: 12.46 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001926/1.108, allocations: 1.024 MB / 1.12 GB, free: 11.4 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001293/1.11, allocations: 0.6568 MB / 1.121 GB, free: 10.73 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 4.695e-05/1.11, allocations: 4 kB / 1.121 GB, free: 10.73 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008675/1.111, allocations: 474.3 kB / 1.121 GB, free: 10.24 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=37): time 2.875e-06/1.111, allocations: 4 kB / 1.121 GB, free: 10.24 MB / 0.7292 GB Notification: Performance of matching and sorting (n=37): time 0.001729/1.112, allocations: 0.7496 MB / 1.122 GB, free: 9.484 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000105/1.112, allocations: 152.4 kB / 1.122 GB, free: 9.305 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003383/1.113, allocations: 219.9 kB / 1.123 GB, free: 9.086 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 4.792e-05/1.113, allocations: 25.7 kB / 1.123 GB, free: 9.055 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 7.381e-05/1.113, allocations: 104.9 kB / 1.123 GB, free: 8.945 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001149/1.113, allocations: 71.06 kB / 1.123 GB, free: 8.875 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.719e-05/1.113, allocations: 4 kB / 1.123 GB, free: 8.871 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001631/1.113, allocations: 338.8 kB / 1.123 GB, free: 8.531 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006453/1.114, allocations: 324.7 kB / 1.123 GB, free: 8.215 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000739/1.115, allocations: 415.7 kB / 1.124 GB, free: 7.777 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007609/1.115, allocations: 359.8 kB / 1.124 GB, free: 7.426 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.019e-06/1.115, allocations: 0 / 1.124 GB, free: 7.426 MB / 0.7292 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001768/1.117, allocations: 0.8091 MB / 1.125 GB, free: 6.613 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.96e-05/1.117, allocations: 5.25 kB / 1.125 GB, free: 6.609 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.29e-05/1.117, allocations: 4 kB / 1.125 GB, free: 6.605 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.51e-05/1.117, allocations: 4 kB / 1.125 GB, free: 6.602 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002674/1.118, allocations: 43.89 kB / 1.125 GB, free: 6.559 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.313e-05/1.118, allocations: 7.938 kB / 1.125 GB, free: 6.551 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004261/1.118, allocations: 7.906 kB / 1.125 GB, free: 6.543 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004063/1.119, allocations: 209.2 kB / 1.125 GB, free: 6.34 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.0002434/1.119, allocations: 142.9 kB / 1.125 GB, free: 6.195 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.076e-05/1.119, allocations: 27.62 kB / 1.125 GB, free: 6.168 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001349/1.119, allocations: 33.89 kB / 1.125 GB, free: 6.137 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.827e-06/1.119, allocations: 4 kB / 1.125 GB, free: 6.133 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.186e-06/1.119, allocations: 4 kB / 1.125 GB, free: 6.129 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.565e-06/1.119, allocations: 0 / 1.125 GB, free: 6.129 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003018/1.122, allocations: 1.64 MB / 1.127 GB, free: 4.441 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.975e-06/1.122, allocations: 4 kB / 1.127 GB, free: 4.438 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.491e-05/1.122, allocations: 18.72 kB / 1.127 GB, free: 4.422 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.479e-05/1.122, allocations: 4 kB / 1.127 GB, free: 4.418 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.3e-05/1.122, allocations: 27.84 kB / 1.127 GB, free: 4.391 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.232e-06/1.122, allocations: 6.031 kB / 1.127 GB, free: 4.387 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.442e-06/1.122, allocations: 4.844 kB / 1.127 GB, free: 4.383 MB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00175/1.124, allocations: 1.104 MB / 1.128 GB, free: 3.242 MB / 0.7292 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001868/1.126, allocations: 1.502 MB / 1.13 GB, free: 1.699 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001016/1.126, allocations: 100.8 kB / 1.13 GB, free: 1.582 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.327e-05/1.126, allocations: 7.984 kB / 1.13 GB, free: 1.574 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004577/1.127, allocations: 11.98 kB / 1.13 GB, free: 1.562 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001413/1.127, allocations: 47.94 kB / 1.13 GB, free: 1.516 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000414/1.127, allocations: 217.5 kB / 1.13 GB, free: 1.305 MB / 0.7292 GB Notification: Performance of sort global known variables: time 0.0002472/1.128, allocations: 164.5 kB / 1.13 GB, free: 1.141 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.001572/1.129, allocations: 55.75 kB / 1.13 GB, free: 1.09 MB / 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.0002561/1.129, allocations: 122.3 kB / 1.13 GB, free: 0.9609 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.001545/1.131, allocations: 0.7261 MB / 1.131 GB, free: 240 kB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/1.131, allocations: 4.062 kB / 1.131 GB, free: 236 kB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0008652/1.132, allocations: 406.3 kB / 1.131 GB, free: 15.84 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003027/1.135, allocations: 346.8 kB / 1.132 GB, free: 15.52 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002134/1.137, allocations: 0.8633 MB / 1.133 GB, free: 14.62 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006852/1.138, allocations: 0.8228 MB / 1.133 GB, free: 13.77 MB / 0.7448 GB Notification: Performance of SimCode: time 9.22e-07/1.138, allocations: 0 / 1.133 GB, free: 13.77 MB / 0.7448 GB (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_DayType_fmu --startTime=-1.8144e+06 --stopTime=1.8144e+06 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_DayType.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe 2>&1)