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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.00137/0.00137, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001513/0.001513, allocations: 189.2 kB / 16.14 MB, free: 6.711 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.34/1.34, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.288/2.288, allocations: 390.2 MB / 0.6643 GB, free: 0.6758 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 67.89 kB / 0.812 GB, free: 14.83 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7606/0.7619, allocations: 140.4 MB / 0.949 GB, free: 9.113 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.002217/0.7642, allocations: 1.466 MB / 0.9505 GB, free: 7.957 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007605/0.765, allocations: 0.5236 MB / 0.951 GB, free: 7.555 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.811e-05/0.765, allocations: 1.469 kB / 0.951 GB, free: 7.555 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 7.465e-05/0.7651, allocations: 5.062 kB / 0.951 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.057e-05/0.7652, allocations: 10.64 kB / 0.951 GB, free: 7.543 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005735/0.7657, allocations: 194 kB / 0.9512 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001651/0.7659, allocations: 141.8 kB / 0.9513 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.321e-05/0.766, allocations: 2.75 kB / 0.9513 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.68e-05/0.766, allocations: 56.72 kB / 0.9514 GB, free: 7.32 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.163e-05/0.7661, allocations: 42.95 kB / 0.9514 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.053e-05/0.7661, allocations: 5.5 kB / 0.9514 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002146/0.7664, allocations: 160.4 kB / 0.9516 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.135e-05/0.7664, allocations: 31.41 kB / 0.9516 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.221e-05/0.7665, allocations: 47.72 kB / 0.9517 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002556/0.7668, allocations: 220.2 kB / 0.9519 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.7668, allocations: 0 / 0.9519 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of FrontEnd: time 6.91e-07/0.7668, allocations: 1.281 kB / 0.9519 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.115e-06/0.7668, allocations: 4 kB / 0.9519 GB, free: 7.02 MB / 0.7169 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.0004707/0.7673, allocations: 451.2 kB / 0.9523 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.7673, allocations: 10.47 kB / 0.9523 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.797e-05/0.7673, allocations: 39.86 kB / 0.9523 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.785e-05/0.7674, allocations: 16.84 kB / 0.9524 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001588/0.7676, allocations: 207.9 kB / 0.9526 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.493e-05/0.7676, allocations: 9.656 kB / 0.9526 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.55e-05/0.7676, allocations: 9.812 kB / 0.9526 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000133/0.7677, allocations: 90.88 kB / 0.9527 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.385e-06/0.7678, allocations: 3.938 kB / 0.9527 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.939e-06/0.7678, allocations: 5.344 kB / 0.9527 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.09e-06/0.7678, allocations: 1.312 kB / 0.9527 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.498e-05/0.7679, allocations: 38.89 kB / 0.9527 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001776/0.768, allocations: 228.5 kB / 0.9529 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 9.769e-05/0.7682, allocations: 78.77 kB / 0.953 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.813e-05/0.7682, allocations: 60.75 kB / 0.9531 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.658e-06/0.7682, allocations: 1.25 kB / 0.9531 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000169/0.7684, allocations: 107.6 kB / 0.9532 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=14): time 1.072e-06/0.7684, allocations: 4 kB / 0.9532 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14): time 0.0003097/0.7687, allocations: 191 kB / 0.9534 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.341e-05/0.7688, allocations: 82.45 kB / 0.9534 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.452e-05/0.7689, allocations: 153.7 kB / 0.9536 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.364e-05/0.7689, allocations: 33.89 kB / 0.9536 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.497e-05/0.769, allocations: 103.5 kB / 0.9537 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.631e-05/0.769, allocations: 40.27 kB / 0.9537 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.751e-05/0.7691, allocations: 48.73 kB / 0.9538 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.84e-05/0.7691, allocations: 330.2 kB / 0.9541 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.32e-05/0.7692, allocations: 44.48 kB / 0.9542 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001603/0.7694, allocations: 202.8 kB / 0.9543 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001488/0.7695, allocations: 109.7 kB / 0.9545 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.7695, allocations: 0 / 0.9545 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002186/0.7698, allocations: 155.2 kB / 0.9546 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.307e-05/0.7698, allocations: 4.469 kB / 0.9546 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.118e-05/0.7698, allocations: 7.297 kB / 0.9546 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.7698, allocations: 1.125 kB / 0.9546 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.118e-05/0.7699, allocations: 14.97 kB / 0.9546 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.033e-06/0.7699, allocations: 5.453 kB / 0.9546 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002461/0.7702, allocations: 73.5 kB / 0.9547 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.214e-05/0.7702, allocations: 7.531 kB / 0.9547 GB, free: 4.48 MB / 0.7169 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 8.547e-05/0.7703, allocations: 135.8 kB / 0.9548 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.97e-05/0.7703, allocations: 15.91 kB / 0.9549 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.666e-05/0.7703, allocations: 11.91 kB / 0.9549 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.7703, allocations: 2 kB / 0.9549 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.7703, allocations: 0 / 0.9549 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.7703, allocations: 1.438 kB / 0.9549 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.975e-05/0.7704, allocations: 194.1 kB / 0.9551 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.7705, allocations: 1.125 kB / 0.9551 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.265e-05/0.7705, allocations: 9.688 kB / 0.9551 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.7705, allocations: 5.125 kB / 0.9551 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.929e-06/0.7705, allocations: 5.094 kB / 0.9551 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.7705, allocations: 1.156 kB / 0.9551 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.7705, allocations: 1 kB / 0.9551 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001969/0.7707, allocations: 189.2 kB / 0.9553 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.588e-05/0.7708, allocations: 88.11 kB / 0.9553 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.032e-05/0.7708, allocations: 1.125 kB / 0.9553 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.935e-05/0.7708, allocations: 6.375 kB / 0.9553 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.08e-05/0.7709, allocations: 14.23 kB / 0.9554 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.193e-06/0.7709, allocations: 3.562 kB / 0.9554 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6e-05/0.771, allocations: 112.7 kB / 0.9555 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.771, allocations: 1.188 kB / 0.9555 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002876/0.7713, allocations: 72.48 kB / 0.9555 GB, free: 3.746 MB / 0.7169 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.0004726/0.7717, allocations: 0.7887 MB / 0.9563 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001996/0.7719, allocations: 155.2 kB / 0.9565 GB, free: 2.965 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.772, allocations: 4 kB / 0.9565 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 6.087e-05/0.772, allocations: 42.89 kB / 0.9565 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001591/0.7722, allocations: 15.02 kB / 0.9565 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001318/0.7735, allocations: 1.724 MB / 0.9582 GB, free: 1.469 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001262/0.7736, allocations: 0.7099 MB / 0.9589 GB, free: 0.7539 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.4e-05/0.7737, allocations: 6.891 kB / 0.9589 GB, free: 0.7539 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.77e-05/0.7737, allocations: 28.8 kB / 0.9589 GB, free: 0.7305 MB / 0.7169 GB Notification: Performance of SimCode: time 4.01e-07/0.7737, allocations: 0 / 0.9589 GB, free: 0.7305 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01411/0.7879, allocations: 3.711 MB / 0.9626 GB, free: 14.89 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001906/0.7881, allocations: 210.4 kB / 0.9628 GB, free: 14.63 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.988/2.776, allocations: 2.25 kB / 0.9628 GB, free: 14.63 MB / 0.7325 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)