Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.Sources.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.Sources.Examples.DayType,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_Sources_Examples_DayType",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Sources.Examples.DayType,fileNamePrefix="Buildings_maint_8_0_x_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.0.1-maint.8.0.x/package.mo): time 1.311/1.311, allocations: 285.5 MB / 292.8 MB, free: 10.45 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.0009119/0.0009119, allocations: 177.3 kB / 361.1 MB, free: 7.086 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9931/0.9931, allocations: 205.1 MB / 0.6195 GB, free: 10.29 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.0007681/0.0007681, allocations: 92.45 kB / 0.7325 GB, free: 44.24 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.1724/0.1732, allocations: 121.4 MB / 0.8511 GB, free: 2.891 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.409/0.5822, allocations: 115.3 MB / 0.9637 GB, free: 78.22 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1317/0.7139, allocations: 137.8 MB / 1.098 GB, free: 2.207 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001819/0.7141, allocations: 72.89 kB / 1.098 GB, free: 2.137 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.04396/0.7581, allocations: 18.75 MB / 1.117 GB, free: 15.39 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.27e-05/0.7582, allocations: 13 kB / 1.117 GB, free: 15.38 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.134e-05/0.7582, allocations: 26.31 kB / 1.117 GB, free: 15.36 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002738/0.7585, allocations: 249.8 kB / 1.117 GB, free: 15.07 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.263e-05/0.7585, allocations: 9.969 kB / 1.117 GB, free: 15.07 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.29e-05/0.7586, allocations: 12 kB / 1.117 GB, free: 15.05 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003357/0.7589, allocations: 315.6 kB / 1.117 GB, free: 14.75 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004379/0.7594, allocations: 447.3 kB / 1.118 GB, free: 14.3 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.714e-06/0.7594, allocations: 0 / 1.118 GB, free: 14.3 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.086e-05/0.7594, allocations: 0 / 1.118 GB, free: 14.3 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.092e-06/0.7594, allocations: 9.719 kB / 1.118 GB, free: 14.29 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005148/0.7599, allocations: 0.5229 MB / 1.118 GB, free: 13.73 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009342/0.7609, allocations: 1.018 MB / 1.119 GB, free: 12.67 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005967/0.7615, allocations: 0.6584 MB / 1.12 GB, free: 12 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 2.834e-05/0.7615, allocations: 14.08 kB / 1.12 GB, free: 11.99 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004256/0.7619, allocations: 471.4 kB / 1.12 GB, free: 11.51 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=37): time 1.503e-06/0.762, allocations: 0 / 1.12 GB, free: 11.51 MB / 0.7292 GB Notification: Performance of matching and sorting (n=37): time 0.0008483/0.7628, allocations: 0.7569 MB / 1.121 GB, free: 10.75 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.509e-05/0.7629, allocations: 148.4 kB / 1.121 GB, free: 10.57 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001641/0.763, allocations: 216 kB / 1.121 GB, free: 10.36 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 2.931e-05/0.7631, allocations: 37.69 kB / 1.121 GB, free: 10.32 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 3.577e-05/0.7631, allocations: 96.91 kB / 1.122 GB, free: 10.21 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 6.114e-05/0.7632, allocations: 67.08 kB / 1.122 GB, free: 10.15 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.365e-05/0.7632, allocations: 0 / 1.122 GB, free: 10.15 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 8.642e-05/0.7633, allocations: 346.8 kB / 1.122 GB, free: 9.801 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003252/0.7636, allocations: 320.7 kB / 1.122 GB, free: 9.488 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003867/0.764, allocations: 413.6 kB / 1.123 GB, free: 9.051 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003882/0.7644, allocations: 370.5 kB / 1.123 GB, free: 8.691 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.7644, allocations: 0 / 1.123 GB, free: 8.691 MB / 0.7292 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008446/0.7653, allocations: 0.8015 MB / 1.124 GB, free: 7.883 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.135e-05/0.7653, allocations: 11.06 kB / 1.124 GB, free: 7.875 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.225e-06/0.7653, allocations: 4 kB / 1.124 GB, free: 7.871 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.7653, allocations: 4 kB / 1.124 GB, free: 7.867 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001428/0.7655, allocations: 43.84 kB / 1.124 GB, free: 7.824 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.7655, allocations: 4 kB / 1.124 GB, free: 7.82 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002134/0.7657, allocations: 15.83 kB / 1.124 GB, free: 7.805 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002176/0.7659, allocations: 206.3 kB / 1.124 GB, free: 7.605 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.0001085/0.7661, allocations: 138.8 kB / 1.124 GB, free: 7.465 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.137e-05/0.7661, allocations: 31.62 kB / 1.124 GB, free: 7.434 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.829e-05/0.7662, allocations: 33.89 kB / 1.124 GB, free: 7.402 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.7662, allocations: 4 kB / 1.124 GB, free: 7.398 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.7662, allocations: 0 / 1.124 GB, free: 7.398 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.7662, allocations: 11.92 kB / 1.124 GB, free: 7.387 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001576/0.7678, allocations: 1.63 MB / 1.126 GB, free: 5.711 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.7678, allocations: 3.984 kB / 1.126 GB, free: 5.707 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.913e-05/0.7679, allocations: 25.11 kB / 1.126 GB, free: 5.684 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.7679, allocations: 0 / 1.126 GB, free: 5.684 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.922e-05/0.7679, allocations: 19.97 kB / 1.126 GB, free: 5.664 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.7679, allocations: 4 kB / 1.126 GB, free: 5.66 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.7679, allocations: 0 / 1.126 GB, free: 5.66 MB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008509/0.7688, allocations: 1.115 MB / 1.127 GB, free: 4.508 MB / 0.7292 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009193/0.7697, allocations: 1.495 MB / 1.128 GB, free: 2.973 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 4.706e-05/0.7698, allocations: 104.7 kB / 1.129 GB, free: 2.852 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.545e-05/0.7698, allocations: 7.984 kB / 1.129 GB, free: 2.844 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002302/0.7701, allocations: 1.688 kB / 1.129 GB, free: 2.844 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.046e-05/0.7701, allocations: 51.94 kB / 1.129 GB, free: 2.793 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001996/0.7704, allocations: 214 kB / 1.129 GB, free: 2.586 MB / 0.7292 GB Notification: Performance of sort global known variables: time 0.0001081/0.7705, allocations: 164.5 kB / 1.129 GB, free: 2.422 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0009562/0.7714, allocations: 55.98 kB / 1.129 GB, free: 2.367 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.0001604/0.7716, allocations: 134.9 kB / 1.129 GB, free: 2.227 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0007783/0.7724, allocations: 0.7297 MB / 1.13 GB, free: 1.496 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.7724, allocations: 192 / 1.13 GB, free: 1.496 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0004483/0.7728, allocations: 403.9 kB / 1.13 GB, free: 1.102 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001287/0.7741, allocations: 287.2 kB / 1.131 GB, free: 0.8398 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001101/0.7753, allocations: 0.8708 MB / 1.131 GB, free: 15.94 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003748/0.7756, allocations: 0.8275 MB / 1.132 GB, free: 15.09 MB / 0.7448 GB Notification: Performance of SimCode: time 2.5e-07/0.7756, allocations: 0 / 1.132 GB, free: 15.09 MB / 0.7448 GB (rm -f Buildings_maint.8.0.x_Buildings.Controls.Sources.Examples.DayType.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.Sources.Examples.DayType.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.Sources.Examples.DayType.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.Sources.Examples.DayType.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Controls_Sources_Examples_DayType_fmu --startTime=-1.8144e+06 --stopTime=1.8144e+06 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Controls_Sources_Examples_DayType.fmu > Buildings_maint.8.0.x_Buildings.Controls.Sources.Examples.DayType.pipe 2>&1)