Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_Buildings_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="Buildings_9_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.0117/0.0117, allocations: 100.7 kB / 15.73 MB, free: 6.035 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002598/0.002598, allocations: 199.3 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.466/2.466, allocations: 222.9 MB / 240.4 MB, free: 4.152 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 4.061/4.061, allocations: 390.2 MB / 0.6648 GB, free: 168 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002224/0.002225, allocations: 58.69 kB / 0.9504 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5189/0.5211, allocations: 140.4 MB / 1.087 GB, free: 1.996 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.00573/0.527, allocations: 1.422 MB / 1.089 GB, free: 0.5625 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001805/0.5289, allocations: 0.4919 MB / 1.089 GB, free: 72 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.026e-05/0.529, allocations: 4 kB / 1.089 GB, free: 68 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001434/0.5292, allocations: 11.92 kB / 1.089 GB, free: 56 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001034/0.5293, allocations: 7.938 kB / 1.089 GB, free: 48 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001445/0.5308, allocations: 231.2 kB / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000382/0.5312, allocations: 151.8 kB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 9.336e-05/0.5313, allocations: 11.97 kB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001244/0.5314, allocations: 55.84 kB / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001563/0.5316, allocations: 47.77 kB / 1.09 GB, free: 15.56 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.44e-05/0.5317, allocations: 12 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004591/0.5321, allocations: 167.8 kB / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001268/0.5323, allocations: 35.91 kB / 1.09 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001448/0.5324, allocations: 55.78 kB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0005875/0.533, allocations: 230.2 kB / 1.09 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 1.046e-05/0.5331, allocations: 4 kB / 1.09 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.938e-06/0.5331, allocations: 0 / 1.09 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.746e-06/0.5331, allocations: 0 / 1.09 GB, free: 15.07 MB / 0.8575 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.001071/0.5342, allocations: 451.9 kB / 1.091 GB, free: 14.58 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 7.805e-05/0.5343, allocations: 8.031 kB / 1.091 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.114e-05/0.5344, allocations: 34.73 kB / 1.091 GB, free: 14.53 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.548e-05/0.5345, allocations: 12.84 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004192/0.5349, allocations: 208 kB / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.701e-05/0.535, allocations: 12.38 kB / 1.091 GB, free: 14.26 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.035e-05/0.535, allocations: 8.375 kB / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003048/0.5354, allocations: 83.94 kB / 1.091 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.859e-05/0.5354, allocations: 7.938 kB / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.789e-05/0.5354, allocations: 0 / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.775e-06/0.5354, allocations: 0 / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001568/0.5356, allocations: 39.92 kB / 1.091 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000565/0.5362, allocations: 238.5 kB / 1.091 GB, free: 13.83 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000234/0.5364, allocations: 73.25 kB / 1.091 GB, free: 13.74 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001731/0.5366, allocations: 65.69 kB / 1.091 GB, free: 13.67 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.959e-05/0.5367, allocations: 3.984 kB / 1.091 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004539/0.5371, allocations: 109 kB / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=14): time 3.306e-06/0.5372, allocations: 0 / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14): time 0.0007589/0.5379, allocations: 189.4 kB / 1.092 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001262/0.5381, allocations: 89.11 kB / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002377/0.5383, allocations: 147.5 kB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 6.645e-05/0.5384, allocations: 33.7 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001293/0.5386, allocations: 104.5 kB / 1.092 GB, free: 12.94 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001014/0.5387, allocations: 35.53 kB / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001628/0.5389, allocations: 53.7 kB / 1.092 GB, free: 12.85 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0002516/0.5391, allocations: 322.8 kB / 1.093 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001362/0.5393, allocations: 39.98 kB / 1.093 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004109/0.5397, allocations: 199.3 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003127/0.54, allocations: 101.6 kB / 1.093 GB, free: 12.13 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.5401, allocations: 0 / 1.093 GB, free: 12.13 MB / 0.8575 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004775/0.5406, allocations: 169.8 kB / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.264e-05/0.5406, allocations: 8 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.843e-05/0.5407, allocations: 3.938 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.083e-05/0.5407, allocations: 4 kB / 1.093 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001523/0.5409, allocations: 7.938 kB / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.422e-05/0.5409, allocations: 4 kB / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006059/0.5415, allocations: 79.73 kB / 1.093 GB, free: 11.85 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.388e-05/0.5416, allocations: 4.156 kB / 1.093 GB, free: 11.85 MB / 0.8575 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.0002779/0.5419, allocations: 133.9 kB / 1.093 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.707e-05/0.5419, allocations: 15.84 kB / 1.093 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.15e-05/0.542, allocations: 20.7 kB / 1.093 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.162e-06/0.542, allocations: 0 / 1.093 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.438e-06/0.542, allocations: 0 / 1.093 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.542, allocations: 0 / 1.093 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003262/0.5424, allocations: 201.5 kB / 1.093 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.5424, allocations: 0 / 1.093 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.552e-05/0.5425, allocations: 7.938 kB / 1.093 GB, free: 11.42 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.937e-06/0.5425, allocations: 0 / 1.093 GB, free: 11.42 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.145e-05/0.5425, allocations: 4 kB / 1.093 GB, free: 11.41 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.5425, allocations: 0 / 1.093 GB, free: 11.41 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.781e-06/0.5426, allocations: 7.984 kB / 1.093 GB, free: 11.41 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004423/0.543, allocations: 181.8 kB / 1.094 GB, free: 11.21 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 8.397e-05/0.5431, allocations: 92.94 kB / 1.094 GB, free: 11.1 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.927e-05/0.5432, allocations: 4 kB / 1.094 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.75e-05/0.5433, allocations: 4 kB / 1.094 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.195e-05/0.5433, allocations: 7.984 kB / 1.094 GB, free: 11.08 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.544e-05/0.5434, allocations: 8 kB / 1.094 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001667/0.5436, allocations: 121.2 kB / 1.094 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of sort global known variables: time 3.21e-07/0.5436, allocations: 3.938 kB / 1.094 GB, free: 10.95 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0006332/0.5442, allocations: 68 kB / 1.094 GB, free: 10.89 MB / 0.8575 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.001214/0.5455, allocations: 0.7798 MB / 1.095 GB, free: 10.08 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000485/0.546, allocations: 167.3 kB / 1.095 GB, free: 9.902 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 4.638e-06/0.546, allocations: 0 / 1.095 GB, free: 9.902 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001504/0.5461, allocations: 47.92 kB / 1.095 GB, free: 9.855 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003164/0.5465, allocations: 4 kB / 1.095 GB, free: 9.852 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003466/0.55, allocations: 1.714 MB / 1.097 GB, free: 8.047 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005968/0.5506, allocations: 0.7078 MB / 1.097 GB, free: 7.312 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 7.734e-05/0.5507, allocations: 8.672 kB / 1.097 GB, free: 7.301 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.8e-05/0.5508, allocations: 31.42 kB / 1.097 GB, free: 7.27 MB / 0.8575 GB Notification: Performance of SimCode: time 1.112e-06/0.5508, allocations: 3.938 kB / 1.097 GB, free: 7.266 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04055/0.5914, allocations: 3.972 MB / 1.101 GB, free: 3.414 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.36/12.95, allocations: 12.72 kB / 1.101 GB, free: 3.41 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_SetPoints_Examples_OccupancySchedule_fmu --startTime=-86400 --stopTime=1.2096e+06 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_SetPoints_Examples_OccupancySchedule.fmu > Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1)