Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Controls.SetPoints.Examples.OccupancySchedule.conf.json 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/IDEAS 3.0.0-master/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: "" <> buildModelFMU(IDEAS.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="IDEAS_IDEAS_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="IDEAS_IDEAS_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/Complex 4.0.0+maint.om/package.mo): time 0.005182/0.005181, allocations: 183.7 kB / 7.459 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7328/0.7328, allocations: 133.5 MB / 141.4 MB, free: 15.65 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.683/1.683, allocations: 221.3 MB / 395 MB, free: 10.21 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009675/0.0009673, allocations: 98.41 kB / 477.8 MB, free: 10.87 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5131/0.5141, allocations: 88.43 MB / 0.5529 GB, free: 89.07 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2359/0.7501, allocations: 82.31 MB / 0.6333 GB, free: 14.04 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6095/1.36, allocations: 110.9 MB / 0.7416 GB, free: 11 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002325/1.36, allocations: 70.17 kB / 0.7417 GB, free: 11 MB / 0.4948 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.01181/1.372, allocations: 4.037 MB / 0.7456 GB, free: 26.38 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6.756e-05/1.372, allocations: 7.719 kB / 0.7456 GB, free: 26.38 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.818e-05/1.372, allocations: 11.53 kB / 0.7456 GB, free: 26.38 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004962/1.372, allocations: 220.3 kB / 0.7458 GB, free: 26.17 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.445e-05/1.372, allocations: 4.469 kB / 0.7459 GB, free: 26.17 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.931e-05/1.373, allocations: 9.094 kB / 0.7459 GB, free: 26.17 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001506/1.373, allocations: 46.72 kB / 0.7459 GB, free: 26.16 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001766/1.373, allocations: 85 kB / 0.746 GB, free: 26.11 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/1.373, allocations: 3.844 kB / 0.746 GB, free: 26.11 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.814e-05/1.373, allocations: 0 / 0.746 GB, free: 26.11 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.077e-06/1.373, allocations: 0.625 kB / 0.746 GB, free: 26.11 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003323/1.373, allocations: 207.2 kB / 0.7462 GB, free: 25.95 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001599/1.373, allocations: 86.75 kB / 0.7463 GB, free: 25.89 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.936e-05/1.374, allocations: 60 kB / 0.7463 GB, free: 25.87 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 1.491e-05/1.374, allocations: 0.7031 kB / 0.7463 GB, free: 25.87 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00016/1.374, allocations: 107.5 kB / 0.7464 GB, free: 25.81 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=14): time 1.232e-06/1.374, allocations: 0 / 0.7464 GB, free: 25.81 MB / 0.5105 GB Notification: Performance of matching and sorting (n=14): time 0.0004178/1.374, allocations: 138.8 kB / 0.7466 GB, free: 25.77 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.706e-05/1.374, allocations: 90.27 kB / 0.7466 GB, free: 25.67 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000136/1.374, allocations: 133.7 kB / 0.7468 GB, free: 25.57 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.787e-05/1.374, allocations: 33.89 kB / 0.7468 GB, free: 25.54 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 5.393e-05/1.374, allocations: 86.33 kB / 0.7469 GB, free: 25.46 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 5.078e-05/1.375, allocations: 38.2 kB / 0.7469 GB, free: 25.44 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.843e-06/1.375, allocations: 3.938 kB / 0.7469 GB, free: 25.43 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.00015/1.375, allocations: 325.7 kB / 0.7472 GB, free: 25.12 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.788e-05/1.375, allocations: 37.58 kB / 0.7473 GB, free: 25.12 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001983/1.375, allocations: 221.8 kB / 0.7475 GB, free: 24.95 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001521/1.375, allocations: 73.67 kB / 0.7476 GB, free: 24.94 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/1.375, allocations: 0 / 0.7476 GB, free: 24.94 MB / 0.5105 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002928/1.375, allocations: 173.8 kB / 0.7477 GB, free: 24.89 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/1.375, allocations: 3.844 kB / 0.7477 GB, free: 24.89 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.508e-05/1.376, allocations: 8.297 kB / 0.7477 GB, free: 24.89 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.98e-05/1.376, allocations: 0.75 kB / 0.7477 GB, free: 24.89 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.537e-05/1.376, allocations: 20.16 kB / 0.7478 GB, free: 24.88 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.654e-06/1.376, allocations: 0.6562 kB / 0.7478 GB, free: 24.88 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002964/1.376, allocations: 75.2 kB / 0.7478 GB, free: 24.86 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.557e-05/1.376, allocations: 8.109 kB / 0.7478 GB, free: 24.86 MB / 0.5105 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 0.0001466/1.376, allocations: 123.8 kB / 0.748 GB, free: 24.75 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.906e-05/1.376, allocations: 7.875 kB / 0.748 GB, free: 24.75 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.335e-05/1.376, allocations: 13.47 kB / 0.748 GB, free: 24.74 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/1.376, allocations: 0 / 0.748 GB, free: 24.74 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/1.376, allocations: 7.844 kB / 0.748 GB, free: 24.73 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/1.376, allocations: 4.359 kB / 0.748 GB, free: 24.73 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001967/1.376, allocations: 167.6 kB / 0.7481 GB, free: 24.57 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/1.376, allocations: 4 kB / 0.7482 GB, free: 24.57 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.669e-05/1.377, allocations: 5.281 kB / 0.7482 GB, free: 24.57 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/1.377, allocations: 3.906 kB / 0.7482 GB, free: 24.57 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.68e-05/1.377, allocations: 8.141 kB / 0.7482 GB, free: 24.57 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/1.377, allocations: 0 / 0.7482 GB, free: 24.57 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/1.377, allocations: 3.812 kB / 0.7482 GB, free: 24.57 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002951/1.377, allocations: 174.3 kB / 0.7483 GB, free: 24.46 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003676/1.377, allocations: 0.5551 MB / 0.7489 GB, free: 23.99 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 7.35e-05/1.377, allocations: 85.59 kB / 0.749 GB, free: 23.89 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.815e-05/1.377, allocations: 0.75 kB / 0.749 GB, free: 23.89 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.959e-05/1.377, allocations: 9.281 kB / 0.749 GB, free: 23.89 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.045e-05/1.377, allocations: 13.36 kB / 0.749 GB, free: 23.89 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.392e-05/1.378, allocations: 3.328 kB / 0.749 GB, free: 23.89 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.021e-05/1.378, allocations: 109.4 kB / 0.7491 GB, free: 23.81 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.001079/1.379, allocations: 80.36 kB / 0.7492 GB, free: 23.8 MB / 0.5105 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.0003438/1.379, allocations: 179.8 kB / 0.7493 GB, free: 23.69 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0002687/1.379, allocations: 159 kB / 0.7495 GB, free: 23.62 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/1.379, allocations: 4 kB / 0.7495 GB, free: 23.62 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 6.196e-05/1.379, allocations: 42.72 kB / 0.7495 GB, free: 23.61 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001423/1.38, allocations: 4.609 kB / 0.7495 GB, free: 23.61 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003582/1.38, allocations: 147.8 kB / 0.7497 GB, free: 23.53 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003172/1.38, allocations: 0.725 MB / 0.7504 GB, free: 22.82 MB / 0.5105 GB Notification: Performance of SimCode: time 5.21e-07/1.38, allocations: 0 / 0.7504 GB, free: 22.82 MB / 0.5105 GB (rm -f IDEAS_IDEAS.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo IDEAS_IDEAS.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/IDEAS_IDEAS.Controls.SetPoints.Examples.OccupancySchedule.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Controls_SetPoints_Examples_OccupancySchedule_fmu --startTime=-86400 --stopTime=1.2096e+06 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Controls_SetPoints_Examples_OccupancySchedule.fmu > IDEAS_IDEAS.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1)