Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.SetPoints.Examples.OccupancySchedule.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_SetPoints_Examples_OccupancySchedule",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 7.0.3-maint.7.0.x/package.mo): time 1.232/1.232, allocations: 249.4 MB / 256.7 MB, free: 7.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001004/0.001004, allocations: 173.3 kB / 316 MB, free: 3.578 MB / 250.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.2 MB / 0.5667 GB, free: 15.65 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008212/0.0008212, allocations: 82.02 kB / 0.671 GB, free: 4.789 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3136/0.3145, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1514/0.4658, allocations: 106.3 MB / 0.8846 GB, free: 12.57 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4279/0.8938, allocations: 132.5 MB / 1.014 GB, free: 6.113 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001717/0.894, allocations: 70.52 kB / 1.014 GB, free: 6.074 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.01046/0.9045, allocations: 3.514 MB / 1.018 GB, free: 2.957 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.102e-05/0.9045, allocations: 8 kB / 1.018 GB, free: 2.949 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.405e-05/0.9046, allocations: 27.91 kB / 1.018 GB, free: 2.922 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005509/0.9052, allocations: 294.2 kB / 1.018 GB, free: 2.621 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.628e-05/0.9052, allocations: 7.906 kB / 1.018 GB, free: 2.613 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.604e-05/0.9053, allocations: 35.66 kB / 1.018 GB, free: 2.582 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001756/0.9055, allocations: 77.52 kB / 1.018 GB, free: 2.523 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003099/0.9058, allocations: 233.9 kB / 1.018 GB, free: 2.324 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.9058, allocations: 3.938 kB / 1.018 GB, free: 2.32 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.655e-05/0.9058, allocations: 7.984 kB / 1.018 GB, free: 2.312 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.9058, allocations: 4 kB / 1.018 GB, free: 2.309 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003447/0.9062, allocations: 345.2 kB / 1.019 GB, free: 1.98 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002411/0.9064, allocations: 211.8 kB / 1.019 GB, free: 1.773 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001354/0.9066, allocations: 107.6 kB / 1.019 GB, free: 1.68 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.92e-05/0.9066, allocations: 15.78 kB / 1.019 GB, free: 1.668 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000282/0.9069, allocations: 243.8 kB / 1.019 GB, free: 1.453 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=24): time 1.553e-06/0.9069, allocations: 0 / 1.019 GB, free: 1.453 MB / 0.6355 GB Notification: Performance of matching and sorting (n=24): time 0.0004451/0.9073, allocations: 274.5 kB / 1.019 GB, free: 1.227 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.999e-05/0.9074, allocations: 144.3 kB / 1.02 GB, free: 1.059 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.567e-05/0.9075, allocations: 133.8 kB / 1.02 GB, free: 0.9297 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 4.678e-05/0.9076, allocations: 45.56 kB / 1.02 GB, free: 0.8828 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.771e-05/0.9076, allocations: 92.33 kB / 1.02 GB, free: 0.7891 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 5.398e-05/0.9077, allocations: 64.62 kB / 1.02 GB, free: 0.7344 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.752e-05/0.9077, allocations: 8 kB / 1.02 GB, free: 0.7266 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001058/0.9078, allocations: 329 kB / 1.02 GB, free: 416 kB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002223/0.9081, allocations: 164.3 kB / 1.02 GB, free: 300 kB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002343/0.9083, allocations: 197.2 kB / 1.021 GB, free: 140 kB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003012/0.9086, allocations: 153.7 kB / 1.021 GB, free: 28 kB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.9086, allocations: 0 / 1.021 GB, free: 28 kB / 0.6355 GB Notification: Performance of matching and sorting (n=38) (initialization): time 0.00071/0.9093, allocations: 425.9 kB / 1.021 GB, free: 15.69 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.019e-05/0.9094, allocations: 4 kB / 1.021 GB, free: 15.69 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.9094, allocations: 4.062 kB / 1.021 GB, free: 15.68 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.03e-05/0.9094, allocations: 4 kB / 1.021 GB, free: 15.68 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.692e-05/0.9095, allocations: 23.11 kB / 1.021 GB, free: 15.66 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.691e-06/0.9095, allocations: 3.906 kB / 1.021 GB, free: 15.66 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003774/0.9099, allocations: 83.7 kB / 1.021 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.909e-05/0.9099, allocations: 19.17 kB / 1.021 GB, free: 15.56 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 32 ($whenCondition3,$whenCondition4,$PRE.occSchWee.occupied,occSchWee.occupied,$PRE.occSchWee.nexStaInd,occSchWee.nexStaInd,$PRE.occSchWee.nexStoInd,occSchWee.nexStoInd,$PRE.occSchWee.iPerSta,occSchWee.iPerSta,$PRE.occSchWee.iPerSto,occSchWee.iPerSto,$PRE.occSchWee.tOcc,occSchWee.tOcc,$PRE.occSchWee.tNonOcc,occSchWee.tNonOcc,$whenCondition1,$whenCondition2,$PRE.occSchDay.occupied,occSchDay.occupied,$PRE.occSchDay.nexStaInd,occSchDay.nexStaInd,$PRE.occSchDay.nexStoInd,occSchDay.nexStoInd,$PRE.occSchDay.iPerSta,occSchDay.iPerSta,$PRE.occSchDay.iPerSto,occSchDay.iPerSto,$PRE.occSchDay.tOcc,occSchDay.tOcc,$PRE.occSchDay.tNonOcc,occSchDay.tNonOcc) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 2 * 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.0001136/0.9101, allocations: 131.4 kB / 1.021 GB, free: 15.43 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.088e-05/0.9101, allocations: 23.8 kB / 1.021 GB, free: 15.41 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.743e-05/0.9102, allocations: 18.75 kB / 1.021 GB, free: 15.39 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.9102, allocations: 7.938 kB / 1.021 GB, free: 15.39 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.9102, allocations: 3.984 kB / 1.021 GB, free: 15.38 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.9102, allocations: 0 / 1.021 GB, free: 15.38 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001979/0.9104, allocations: 240.4 kB / 1.022 GB, free: 15.14 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.9104, allocations: 0 / 1.022 GB, free: 15.14 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.107e-05/0.9105, allocations: 12 kB / 1.022 GB, free: 15.12 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.947e-06/0.9105, allocations: 7.844 kB / 1.022 GB, free: 15.12 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.934e-05/0.9105, allocations: 15.22 kB / 1.022 GB, free: 15.11 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.029e-05/0.9105, allocations: 4 kB / 1.022 GB, free: 15.1 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.9105, allocations: 3.938 kB / 1.022 GB, free: 15.1 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004076/0.9109, allocations: 352.1 kB / 1.022 GB, free: 14.77 MB / 0.6511 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005261/0.9115, allocations: 0.7213 MB / 1.023 GB, free: 14.06 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 5.119e-05/0.9115, allocations: 96.92 kB / 1.023 GB, free: 13.95 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.477e-05/0.9116, allocations: 18.3 kB / 1.023 GB, free: 13.94 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000166/0.9118, allocations: 11.98 kB / 1.023 GB, free: 13.93 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.646e-05/0.9119, allocations: 23.75 kB / 1.023 GB, free: 13.91 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.032e-05/0.9119, allocations: 23.78 kB / 1.023 GB, free: 13.89 MB / 0.6511 GB Notification: Performance of sort global known variables: time 6.484e-05/0.912, allocations: 111 kB / 1.023 GB, free: 13.79 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.00084/0.9128, allocations: 78.86 kB / 1.023 GB, free: 13.71 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition3,$whenCondition4,occSchWee.occupied,occSchWee.nexStaInd,occSchWee.nexStoInd,occSchWee.iPerSta,occSchWee.iPerSto,occSchWee.tOcc,occSchWee.tNonOcc,$whenCondition1,$whenCondition2,occSchDay.occupied,occSchDay.nexStaInd,occSchDay.nexStoInd,occSchDay.iPerSta,occSchDay.iPerSto,occSchDay.tOcc,occSchDay.tNonOcc) * Number of discrete states: 14 (occSchDay.tNonOcc,occSchDay.iPerSto,occSchDay.nexStoInd,occSchDay.occupied,occSchDay.tOcc,occSchDay.nexStaInd,occSchDay.iPerSta,occSchWee.tNonOcc,occSchWee.iPerSto,occSchWee.nexStoInd,occSchWee.occupied,occSchWee.tOcc,occSchWee.nexStaInd,occSchWee.iPerSta) * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 14 * 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.000194/0.913, allocations: 145.5 kB / 1.023 GB, free: 13.57 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0005397/0.9136, allocations: 458.4 kB / 1.024 GB, free: 13.25 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.9136, allocations: 0 / 1.024 GB, free: 13.25 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001959/0.9138, allocations: 146.5 kB / 1.024 GB, free: 13.15 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001387/0.9139, allocations: 11.17 kB / 1.024 GB, free: 13.14 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005395/0.9145, allocations: 304 kB / 1.024 GB, free: 12.85 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000336/0.9148, allocations: 0.7389 MB / 1.025 GB, free: 12.08 MB / 0.6511 GB Notification: Performance of SimCode: time 2.21e-07/0.9148, allocations: 0 / 1.025 GB, free: 12.08 MB / 0.6511 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_SetPoints_Examples_OccupancySchedule_fmu --startTime=-86400 --stopTime=1.2096e+06 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_SetPoints_Examples_OccupancySchedule.fmu > Buildings_maint.7.0.x_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1)