Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="Buildings_latest_Buildings_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 1.849/1.849, allocations: 390.4 MB / 397.7 MB, free: 11.21 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000962/0.000962, allocations: 185.3 kB / 490.8 MB, free: 1.914 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.158/1.158, allocations: 221.4 MB / 0.7863 GB, free: 13.68 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000856/0.000856, allocations: 103.2 kB / 0.9264 GB, free: 14.2 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.4459/0.4468, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.19/0.6368, allocations: 143 MB / 1.212 GB, free: 40.03 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5125/1.149, allocations: 149.6 MB / 1.358 GB, free: 17.21 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001893/1.15, allocations: 72.97 kB / 1.358 GB, free: 17.21 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.01088/1.16, allocations: 4.034 MB / 1.362 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.213e-05/1.16, allocations: 9.656 kB / 1.362 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.968e-05/1.161, allocations: 15.72 kB / 1.362 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000253/1.161, allocations: 213.8 kB / 1.362 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.124e-05/1.161, allocations: 4.219 kB / 1.362 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.004e-05/1.161, allocations: 9.031 kB / 1.362 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001035/1.161, allocations: 40.61 kB / 1.362 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001099/1.161, allocations: 84.22 kB / 1.362 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.703e-06/1.161, allocations: 1.156 kB / 1.362 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.062e-05/1.161, allocations: 4 kB / 1.362 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/1.161, allocations: 1.062 kB / 1.362 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000189/1.161, allocations: 211 kB / 1.362 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 8.903e-05/1.161, allocations: 83.16 kB / 1.362 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.224e-05/1.161, allocations: 60.91 kB / 1.363 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.023e-05/1.162, allocations: 5.25 kB / 1.363 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001099/1.162, allocations: 110.8 kB / 1.363 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=14): time 1.293e-06/1.162, allocations: 0 / 1.363 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14): time 0.0002935/1.162, allocations: 136.6 kB / 1.363 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.649e-05/1.162, allocations: 83.03 kB / 1.363 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.535e-05/1.162, allocations: 148.1 kB / 1.363 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.853e-05/1.162, allocations: 29.08 kB / 1.363 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.456e-05/1.162, allocations: 94.92 kB / 1.363 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.685e-05/1.162, allocations: 34.81 kB / 1.363 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.131e-06/1.162, allocations: 0 / 1.363 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.009e-05/1.162, allocations: 325.7 kB / 1.363 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.808e-05/1.162, allocations: 40.7 kB / 1.363 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000168/1.163, allocations: 210.6 kB / 1.364 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001341/1.163, allocations: 77.05 kB / 1.364 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/1.163, allocations: 0 / 1.364 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002611/1.163, allocations: 165.3 kB / 1.364 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.094e-05/1.163, allocations: 7.281 kB / 1.364 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.353e-05/1.163, allocations: 6.219 kB / 1.364 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/1.163, allocations: 1.938 kB / 1.364 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.727e-05/1.163, allocations: 12.69 kB / 1.364 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/1.163, allocations: 1.469 kB / 1.364 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002543/1.163, allocations: 79.28 kB / 1.364 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.334e-05/1.163, allocations: 5.719 kB / 1.364 GB, free: 31.08 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition2,$PRE.occSchWee.occupied,occSchWee.occupied,$PRE.occSchWee.tOcc,occSchWee.tOcc,$PRE.occSchWee.tNonOcc,occSchWee.tNonOcc,$PRE.occSchWee.tNext,occSchWee.tNext,$whenCondition1,$PRE.occSchDay.occupied,occSchDay.occupied,$PRE.occSchDay.tOcc,occSchDay.tOcc,$PRE.occSchDay.tNonOcc,occSchDay.tNonOcc,$PRE.occSchDay.tNext,occSchDay.tNext) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 7.88e-05/1.163, allocations: 121.4 kB / 1.364 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.065e-05/1.164, allocations: 13.25 kB / 1.364 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.022e-05/1.164, allocations: 12.09 kB / 1.364 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-06/1.164, allocations: 10.56 kB / 1.364 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/1.164, allocations: 0.875 kB / 1.364 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/1.164, allocations: 2.703 kB / 1.364 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.634e-05/1.164, allocations: 170.3 kB / 1.364 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/1.164, allocations: 0 / 1.364 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.564e-05/1.164, allocations: 15.84 kB / 1.364 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/1.164, allocations: 1 kB / 1.364 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.355e-05/1.164, allocations: 9.625 kB / 1.364 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.355e-06/1.164, allocations: 1.312 kB / 1.364 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/1.164, allocations: 1.25 kB / 1.364 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002231/1.164, allocations: 173.8 kB / 1.365 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003377/1.164, allocations: 0.549 MB / 1.365 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.828e-05/1.164, allocations: 90.73 kB / 1.365 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.57e-05/1.164, allocations: 1.406 kB / 1.365 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.66e-05/1.164, allocations: 4.438 kB / 1.365 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.551e-05/1.165, allocations: 8.469 kB / 1.365 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.299e-05/1.165, allocations: 5.578 kB / 1.365 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of sort global known variables: time 7.536e-05/1.165, allocations: 111.9 kB / 1.365 GB, free: 30.03 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0008584/1.165, allocations: 87.27 kB / 1.365 GB, free: 30.01 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,occSchWee.occupied,occSchWee.tOcc,occSchWee.tNonOcc,occSchWee.tNext,$whenCondition1,occSchDay.occupied,occSchDay.tOcc,occSchDay.tNonOcc,occSchDay.tNext) * Number of discrete states: 2 (occSchDay.tNext,occSchWee.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.000267/1.166, allocations: 174.9 kB / 1.366 GB, free: 29.91 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000223/1.166, allocations: 163.4 kB / 1.366 GB, free: 29.84 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/1.166, allocations: 0 / 1.366 GB, free: 29.84 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 6.556e-05/1.166, allocations: 47.25 kB / 1.366 GB, free: 29.83 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001144/1.166, allocations: 2.938 kB / 1.366 GB, free: 29.83 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003284/1.167, allocations: 156.2 kB / 1.366 GB, free: 29.74 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003064/1.167, allocations: 0.7272 MB / 1.367 GB, free: 29.03 MB / 0.8386 GB Notification: Performance of SimCode: time 2.41e-07/1.167, allocations: 0 / 1.367 GB, free: 29.03 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_SetPoints_Examples_OccupancySchedule_fmu --startTime=-86400 --stopTime=1.2096e+06 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_SetPoints_Examples_OccupancySchedule.fmu > Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1)