Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Controls.SetPoints.Examples.OccupancySchedule.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="Buildings_6_0_0_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 loadModel(Buildings): time 3.941/3.941, allocations: 433 MB / 440.3 MB, free: 4.805 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5743/4.516, allocations: 104.3 MB / 0.5319 GB, free: 13.03 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2149/4.731, allocations: 98.72 MB / 0.6283 GB, free: 9.812 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2233/4.954, allocations: 124.3 MB / 0.7497 GB, free: 13.28 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002775/4.954, allocations: 79.58 kB / 0.7498 GB, free: 13.21 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.02105/4.975, allocations: 3.5 MB / 0.7532 GB, free: 9.641 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.062e-05/4.975, allocations: 19.98 kB / 0.7532 GB, free: 9.621 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001656/4.976, allocations: 23.91 kB / 0.7532 GB, free: 9.598 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001033/4.977, allocations: 281.3 kB / 0.7535 GB, free: 9.285 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.16e-05/4.977, allocations: 11.91 kB / 0.7535 GB, free: 9.273 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001123/4.977, allocations: 35.92 kB / 0.7536 GB, free: 9.238 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003084/4.977, allocations: 79.92 kB / 0.7536 GB, free: 9.16 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005297/4.978, allocations: 228.9 kB / 0.7539 GB, free: 8.918 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/4.978, allocations: 4 kB / 0.7539 GB, free: 8.914 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.474e-05/4.978, allocations: 7.984 kB / 0.7539 GB, free: 8.906 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.438e-06/4.978, allocations: 4 kB / 0.7539 GB, free: 8.902 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006625/4.978, allocations: 348.6 kB / 0.7542 GB, free: 8.516 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005999/4.979, allocations: 215.3 kB / 0.7544 GB, free: 8.27 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002741/4.979, allocations: 111.5 kB / 0.7545 GB, free: 8.148 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.598e-05/4.979, allocations: 0 / 0.7545 GB, free: 8.148 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005805/4.98, allocations: 254.2 kB / 0.7548 GB, free: 7.879 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=24): time 2.565e-06/4.98, allocations: 0 / 0.7548 GB, free: 7.879 MB / 0.6355 GB Notification: Performance of matching and sorting (n=24): time 0.0009272/4.981, allocations: 277.2 kB / 0.755 GB, free: 7.602 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.738e-05/4.981, allocations: 144.5 kB / 0.7552 GB, free: 7.43 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000177/4.981, allocations: 142.2 kB / 0.7553 GB, free: 7.285 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 8.827e-05/4.981, allocations: 33.7 kB / 0.7553 GB, free: 7.246 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 8.479e-05/4.981, allocations: 100.6 kB / 0.7554 GB, free: 7.141 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 9.162e-05/4.982, allocations: 55.27 kB / 0.7555 GB, free: 7.086 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.99e-05/4.982, allocations: 8 kB / 0.7555 GB, free: 7.078 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001478/4.982, allocations: 330.8 kB / 0.7558 GB, free: 6.746 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004653/4.982, allocations: 159.9 kB / 0.756 GB, free: 6.59 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005048/4.983, allocations: 207 kB / 0.7561 GB, free: 6.375 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005967/4.983, allocations: 149.2 kB / 0.7563 GB, free: 6.23 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/4.983, allocations: 0 / 0.7563 GB, free: 6.23 MB / 0.6355 GB Notification: Performance of matching and sorting (n=38) (initialization): time 0.00133/4.985, allocations: 432.3 kB / 0.7567 GB, free: 5.805 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.428e-05/4.985, allocations: 4 kB / 0.7567 GB, free: 5.801 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/4.985, allocations: 4.062 kB / 0.7567 GB, free: 5.797 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.499e-05/4.985, allocations: 4 kB / 0.7567 GB, free: 5.793 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001943/4.985, allocations: 23.92 kB / 0.7567 GB, free: 5.77 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/4.985, allocations: 7.906 kB / 0.7567 GB, free: 5.762 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007821/4.986, allocations: 71.83 kB / 0.7568 GB, free: 5.691 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001185/4.986, allocations: 23.98 kB / 0.7568 GB, free: 5.668 MB / 0.6355 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.0002618/4.986, allocations: 131.5 kB / 0.757 GB, free: 5.531 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.21e-05/4.986, allocations: 31.67 kB / 0.757 GB, free: 5.5 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.026e-05/4.986, allocations: 12.5 kB / 0.757 GB, free: 5.488 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.957e-06/4.987, allocations: 4 kB / 0.757 GB, free: 5.484 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.015e-05/4.987, allocations: 4 kB / 0.757 GB, free: 5.48 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.207e-06/4.987, allocations: 3.984 kB / 0.757 GB, free: 5.477 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004038/4.987, allocations: 234 kB / 0.7572 GB, free: 5.211 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/4.987, allocations: 0 / 0.7572 GB, free: 5.211 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001409/4.987, allocations: 19.83 kB / 0.7573 GB, free: 5.191 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.044e-05/4.987, allocations: 4 kB / 0.7573 GB, free: 5.188 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.581e-05/4.987, allocations: 11.97 kB / 0.7573 GB, free: 5.176 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.729e-06/4.987, allocations: 0 / 0.7573 GB, free: 5.176 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/4.987, allocations: 8 kB / 0.7573 GB, free: 5.168 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007702/4.988, allocations: 352.4 kB / 0.7576 GB, free: 4.777 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008898/4.989, allocations: 0.7117 MB / 0.7583 GB, free: 4.016 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 6.916e-05/4.989, allocations: 96.86 kB / 0.7584 GB, free: 3.902 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001171/4.989, allocations: 19.98 kB / 0.7584 GB, free: 3.883 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004229/4.99, allocations: 15.98 kB / 0.7584 GB, free: 3.867 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.711e-05/4.99, allocations: 27.81 kB / 0.7585 GB, free: 3.84 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.878e-05/4.99, allocations: 23.97 kB / 0.7585 GB, free: 3.816 MB / 0.6355 GB Notification: Performance of sort global known variables: time 0.0001573/4.99, allocations: 107.2 kB / 0.7586 GB, free: 3.715 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.001429/4.991, allocations: 79.92 kB / 0.7587 GB, free: 3.637 MB / 0.6355 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.0003559/4.992, allocations: 143.2 kB / 0.7588 GB, free: 3.488 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.001194/4.993, allocations: 467 kB / 0.7592 GB, free: 3.02 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/4.993, allocations: 0 / 0.7592 GB, free: 3.02 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0003853/4.993, allocations: 147.9 kB / 0.7594 GB, free: 2.875 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002257/4.994, allocations: 11.98 kB / 0.7594 GB, free: 2.863 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009708/4.995, allocations: 299.2 kB / 0.7597 GB, free: 2.535 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00043/4.995, allocations: 0.7409 MB / 0.7604 GB, free: 1.766 MB / 0.6355 GB Notification: Performance of SimCode: time 1.703e-06/4.995, allocations: 0 / 0.7604 GB, free: 1.766 MB / 0.6355 GB