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/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001242/0.001242, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001366/0.001366, allocations: 198.9 kB / 16.54 MB, free: 6.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.334/1.334, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.603/2.603, allocations: 461.9 MB / 0.7346 GB, free: 14.8 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001441/0.001441, allocations: 62.48 kB / 0.8992 GB, free: 37.03 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2662/0.2677, allocations: 157.4 MB / 1.053 GB, free: 8.328 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.002412/0.2701, allocations: 1.413 MB / 1.054 GB, free: 6.902 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00081/0.2709, allocations: 0.5021 MB / 1.055 GB, free: 6.398 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.07e-05/0.271, allocations: 4 kB / 1.055 GB, free: 6.395 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 7.05e-05/0.2711, allocations: 3.938 kB / 1.055 GB, free: 6.391 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.878e-05/0.2711, allocations: 11.92 kB / 1.055 GB, free: 6.379 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000678/0.2718, allocations: 235 kB / 1.055 GB, free: 6.152 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001929/0.272, allocations: 143.7 kB / 1.055 GB, free: 6.012 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.746e-05/0.2721, allocations: 11.98 kB / 1.055 GB, free: 6 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.513e-05/0.2721, allocations: 55.89 kB / 1.055 GB, free: 5.945 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.837e-05/0.2722, allocations: 47.83 kB / 1.055 GB, free: 5.898 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.373e-05/0.2723, allocations: 8 kB / 1.055 GB, free: 5.891 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000246/0.2725, allocations: 171.8 kB / 1.055 GB, free: 5.723 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.863e-05/0.2726, allocations: 39.89 kB / 1.055 GB, free: 5.684 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.474e-05/0.2727, allocations: 51.78 kB / 1.056 GB, free: 5.633 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002833/0.273, allocations: 231.7 kB / 1.056 GB, free: 5.406 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.273, allocations: 0 / 1.056 GB, free: 5.406 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.342e-06/0.273, allocations: 0 / 1.056 GB, free: 5.406 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.07e-06/0.273, allocations: 0 / 1.056 GB, free: 5.406 MB / 0.8106 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.0005545/0.2735, allocations: 451 kB / 1.056 GB, free: 4.914 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.2736, allocations: 8.625 kB / 1.056 GB, free: 4.906 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.254e-05/0.2736, allocations: 38.75 kB / 1.056 GB, free: 4.859 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.82e-05/0.2737, allocations: 12.84 kB / 1.056 GB, free: 4.848 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002027/0.2739, allocations: 201.9 kB / 1.056 GB, free: 4.613 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.18e-05/0.2739, allocations: 8.375 kB / 1.056 GB, free: 4.605 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.869e-05/0.274, allocations: 12.31 kB / 1.056 GB, free: 4.594 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000152/0.2741, allocations: 83.95 kB / 1.057 GB, free: 4.5 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.2741, allocations: 3.938 kB / 1.057 GB, free: 4.496 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.887e-06/0.2741, allocations: 0 / 1.057 GB, free: 4.496 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.109e-06/0.2742, allocations: 4 kB / 1.057 GB, free: 4.492 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.071e-05/0.2742, allocations: 35.97 kB / 1.057 GB, free: 4.457 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002406/0.2745, allocations: 238.3 kB / 1.057 GB, free: 4.172 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001112/0.2746, allocations: 85.23 kB / 1.057 GB, free: 4.07 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.099e-05/0.2747, allocations: 49.81 kB / 1.057 GB, free: 4.016 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 8.786e-06/0.2747, allocations: 4 kB / 1.057 GB, free: 4.012 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001975/0.2749, allocations: 116.9 kB / 1.057 GB, free: 3.879 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=14): time 1.162e-06/0.2749, allocations: 0 / 1.057 GB, free: 3.879 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14): time 0.0003216/0.2752, allocations: 189.4 kB / 1.057 GB, free: 3.688 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.295e-05/0.2753, allocations: 85.09 kB / 1.057 GB, free: 3.586 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001286/0.2754, allocations: 163.2 kB / 1.057 GB, free: 3.418 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.187e-05/0.2755, allocations: 33.7 kB / 1.057 GB, free: 3.379 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.711e-05/0.2755, allocations: 100.5 kB / 1.058 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.68e-05/0.2756, allocations: 39.55 kB / 1.058 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.418e-05/0.2757, allocations: 45.7 kB / 1.058 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.936e-05/0.2758, allocations: 326.8 kB / 1.058 GB, free: 2.855 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.279e-05/0.2758, allocations: 47.98 kB / 1.058 GB, free: 2.809 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001882/0.276, allocations: 207.3 kB / 1.058 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001293/0.2762, allocations: 93.64 kB / 1.058 GB, free: 2.453 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.2762, allocations: 4 kB / 1.058 GB, free: 2.449 MB / 0.8106 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002079/0.2764, allocations: 161.3 kB / 1.058 GB, free: 2.285 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.104e-05/0.2764, allocations: 4 kB / 1.058 GB, free: 2.281 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.95e-05/0.2764, allocations: 7.984 kB / 1.058 GB, free: 2.273 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.839e-06/0.2764, allocations: 0 / 1.058 GB, free: 2.273 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.717e-05/0.2765, allocations: 8 kB / 1.058 GB, free: 2.266 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.711e-06/0.2765, allocations: 3.938 kB / 1.058 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002606/0.2768, allocations: 81.94 kB / 1.059 GB, free: 2.184 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.035e-06/0.2768, allocations: 4 kB / 1.059 GB, free: 2.18 MB / 0.8106 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 (occSchWee.tNext,$PRE.occSchWee.tNext,occSchWee.tNonOcc,$PRE.occSchWee.tNonOcc,occSchWee.tOcc,$PRE.occSchWee.tOcc,occSchWee.occupied,$PRE.occSchWee.occupied,$whenCondition2,occSchDay.tNext,$PRE.occSchDay.tNext,occSchDay.tNonOcc,$PRE.occSchDay.tNonOcc,occSchDay.tOcc,$PRE.occSchDay.tOcc,occSchDay.occupied,$PRE.occSchDay.occupied,$whenCondition1) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000102/0.2769, allocations: 145.9 kB / 1.059 GB, free: 2.027 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.986e-05/0.2769, allocations: 11.84 kB / 1.059 GB, free: 2.016 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.447e-05/0.277, allocations: 12.72 kB / 1.059 GB, free: 2.004 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.522e-06/0.277, allocations: 0 / 1.059 GB, free: 2.004 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.277, allocations: 3.984 kB / 1.059 GB, free: 2 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.277, allocations: 4 kB / 1.059 GB, free: 1.996 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000125/0.2771, allocations: 189.6 kB / 1.059 GB, free: 1.762 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.2771, allocations: 0 / 1.059 GB, free: 1.762 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.505e-05/0.2772, allocations: 11.98 kB / 1.059 GB, free: 1.75 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.724e-06/0.2772, allocations: 0 / 1.059 GB, free: 1.75 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.838e-06/0.2772, allocations: 8 kB / 1.059 GB, free: 1.742 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.2772, allocations: 0 / 1.059 GB, free: 1.742 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2772, allocations: 8.562 kB / 1.059 GB, free: 1.734 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001964/0.2774, allocations: 181.7 kB / 1.059 GB, free: 1.535 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.643e-05/0.2775, allocations: 88.95 kB / 1.059 GB, free: 1.43 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.927e-05/0.2775, allocations: 4 kB / 1.059 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.003e-05/0.2775, allocations: 3.984 kB / 1.059 GB, free: 1.422 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.416e-05/0.2776, allocations: 8 kB / 1.059 GB, free: 1.414 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.226e-06/0.2776, allocations: 8 kB / 1.059 GB, free: 1.406 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.919e-05/0.2777, allocations: 113.1 kB / 1.059 GB, free: 1.297 MB / 0.8106 GB Notification: Performance of sort global known variables: time 9e-08/0.2777, allocations: 0 / 1.059 GB, free: 1.297 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002665/0.2779, allocations: 67.98 kB / 1.059 GB, free: 1.23 MB / 0.8106 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005749/0.2785, allocations: 0.7989 MB / 1.06 GB, free: 412 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002323/0.2788, allocations: 167.3 kB / 1.06 GB, free: 232 kB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2788, allocations: 0 / 1.06 GB, free: 232 kB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 6.709e-05/0.2788, allocations: 43.92 kB / 1.06 GB, free: 188 kB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000157/0.279, allocations: 9.562 kB / 1.06 GB, free: 180 kB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001475/0.2805, allocations: 1.689 MB / 1.062 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002343/0.2807, allocations: 0.7041 MB / 1.063 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.404e-05/0.2808, allocations: 16.66 kB / 1.063 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.29e-05/0.2808, allocations: 23.44 kB / 1.063 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of SimCode: time 2.51e-07/0.2808, allocations: 0 / 1.063 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01849/0.2993, allocations: 3.938 MB / 1.067 GB, free: 9.793 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.352/7.652, allocations: 3.797 kB / 1.067 GB, free: 9.793 MB / 0.8262 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/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)