Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule") translateModel(BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7974/0.7974, allocations: 143.4 MB / 159.2 MB, free: 4.809 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001122/0.001122, allocations: 192.5 kB / 191.9 MB, free: 5.691 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.335/1.335, allocations: 222.9 MB / 447.3 MB, free: 5.848 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00101/0.00101, allocations: 95.75 kB / 0.517 GB, free: 3.699 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001985/0.001985, allocations: 276.9 kB / 0.5973 GB, free: 49.36 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001397/0.001397, allocations: 75.89 kB / 0.6886 GB, free: 3.832 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3031/0.3045, allocations: 81.29 MB / 0.7679 GB, free: 27.65 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule): time 0.002088/0.3066, allocations: 1.484 MB / 0.7694 GB, free: 26.16 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006992/0.3073, allocations: 0.5101 MB / 0.7699 GB, free: 25.65 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.509e-05/0.3074, allocations: 0 / 0.7699 GB, free: 25.65 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 6.458e-05/0.3074, allocations: 4 kB / 0.7699 GB, free: 25.65 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 4.849e-05/0.3075, allocations: 11.91 kB / 0.7699 GB, free: 25.64 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005254/0.308, allocations: 191.8 kB / 0.7701 GB, free: 25.45 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001456/0.3082, allocations: 139.7 kB / 0.7702 GB, free: 25.32 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.579e-05/0.3082, allocations: 7.984 kB / 0.7702 GB, free: 25.31 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.436e-05/0.3083, allocations: 51.91 kB / 0.7703 GB, free: 25.26 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.811e-05/0.3083, allocations: 39.83 kB / 0.7703 GB, free: 25.22 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 2.511e-05/0.3084, allocations: 8 kB / 0.7703 GB, free: 25.21 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001894/0.3086, allocations: 159.8 kB / 0.7705 GB, free: 25.05 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 5.623e-05/0.3086, allocations: 31.91 kB / 0.7705 GB, free: 25.02 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 6.114e-05/0.3087, allocations: 51.72 kB / 0.7705 GB, free: 24.97 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002241/0.3089, allocations: 234.1 kB / 0.7708 GB, free: 24.75 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.3089, allocations: 0 / 0.7708 GB, free: 24.75 MB / 458.7 MB Notification: Performance of FrontEnd: time 7.51e-07/0.3089, allocations: 0 / 0.7708 GB, free: 24.75 MB / 458.7 MB Notification: Performance of Transformations before backend: time 3.737e-06/0.309, allocations: 4 kB / 0.7708 GB, free: 24.74 MB / 458.7 MB 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.0004054/0.3094, allocations: 445.6 kB / 0.7712 GB, free: 24.26 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.783e-05/0.3094, allocations: 12.03 kB / 0.7712 GB, free: 24.25 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.671e-05/0.3095, allocations: 16.78 kB / 0.7712 GB, free: 24.23 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001515/0.3096, allocations: 208.1 kB / 0.7714 GB, free: 23.99 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.25e-05/0.3096, allocations: 8.375 kB / 0.7714 GB, free: 23.98 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.158e-05/0.3097, allocations: 12.38 kB / 0.7714 GB, free: 23.97 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001168/0.3098, allocations: 87.88 kB / 0.7715 GB, free: 23.87 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.233e-06/0.3098, allocations: 192 / 0.7715 GB, free: 23.87 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.057e-06/0.3098, allocations: 7.938 kB / 0.7715 GB, free: 23.86 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.967e-06/0.3098, allocations: 0 / 0.7715 GB, free: 23.86 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.201e-05/0.3099, allocations: 35.97 kB / 0.7716 GB, free: 23.83 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001574/0.31, allocations: 226.6 kB / 0.7718 GB, free: 23.55 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.467e-05/0.3101, allocations: 89.17 kB / 0.7719 GB, free: 23.45 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.562e-05/0.3102, allocations: 49.81 kB / 0.7719 GB, free: 23.39 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.594e-06/0.3102, allocations: 7.938 kB / 0.7719 GB, free: 23.39 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001489/0.3104, allocations: 113 kB / 0.772 GB, free: 23.26 MB / 458.7 MB Notification: Performance of pre-optimization done (n=14): time 1.102e-06/0.3104, allocations: 0 / 0.772 GB, free: 23.26 MB / 458.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002563/0.3106, allocations: 189.4 kB / 0.7722 GB, free: 23.07 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.805e-05/0.3107, allocations: 89.03 kB / 0.7723 GB, free: 22.96 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.928e-05/0.3108, allocations: 149.8 kB / 0.7724 GB, free: 22.8 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 2.042e-05/0.3108, allocations: 33.7 kB / 0.7725 GB, free: 22.77 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.646e-05/0.3108, allocations: 96.52 kB / 0.7726 GB, free: 22.66 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.363e-05/0.3109, allocations: 43.53 kB / 0.7726 GB, free: 22.62 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.093e-05/0.3109, allocations: 49.7 kB / 0.7727 GB, free: 22.57 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 4.222e-05/0.311, allocations: 322.8 kB / 0.773 GB, free: 22.24 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.406e-05/0.311, allocations: 43.97 kB / 0.773 GB, free: 22.2 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000138/0.3112, allocations: 200.8 kB / 0.7732 GB, free: 21.95 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001162/0.3113, allocations: 101.5 kB / 0.7733 GB, free: 21.84 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3113, allocations: 4 kB / 0.7733 GB, free: 21.84 MB / 458.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0001716/0.3115, allocations: 165.3 kB / 0.7735 GB, free: 21.67 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.072e-05/0.3115, allocations: 6.188 kB / 0.7735 GB, free: 21.67 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.779e-05/0.3115, allocations: 4 kB / 0.7735 GB, free: 21.66 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.047e-05/0.3116, allocations: 0 / 0.7735 GB, free: 21.66 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.49e-05/0.3116, allocations: 15.98 kB / 0.7735 GB, free: 21.65 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.52e-06/0.3116, allocations: 0.625 kB / 0.7735 GB, free: 21.65 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002444/0.3119, allocations: 67.81 kB / 0.7735 GB, free: 21.58 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.666e-06/0.3119, allocations: 8 kB / 0.7736 GB, free: 21.57 MB / 458.7 MB 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 7.303e-05/0.312, allocations: 138.3 kB / 0.7737 GB, free: 21.43 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.641e-05/0.312, allocations: 11.84 kB / 0.7737 GB, free: 21.42 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.561e-05/0.312, allocations: 16.72 kB / 0.7737 GB, free: 21.4 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-06/0.312, allocations: 0 / 0.7737 GB, free: 21.4 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.312, allocations: 8 kB / 0.7737 GB, free: 21.39 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.075e-06/0.3121, allocations: 3.984 kB / 0.7737 GB, free: 21.39 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.591e-05/0.3121, allocations: 193.6 kB / 0.7739 GB, free: 21.15 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.3122, allocations: 11.88 kB / 0.7739 GB, free: 21.14 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.191e-05/0.3122, allocations: 11.98 kB / 0.7739 GB, free: 21.13 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.3122, allocations: 0 / 0.7739 GB, free: 21.13 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.516e-06/0.3122, allocations: 3.984 kB / 0.7739 GB, free: 21.12 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.3122, allocations: 4 kB / 0.7739 GB, free: 21.12 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3122, allocations: 0 / 0.7739 GB, free: 21.12 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003138/0.3125, allocations: 0.7847 MB / 0.7747 GB, free: 20.27 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.147e-05/0.3126, allocations: 85.02 kB / 0.7748 GB, free: 20.17 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.783e-05/0.3126, allocations: 4 kB / 0.7748 GB, free: 20.17 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.876e-05/0.3126, allocations: 3.984 kB / 0.7748 GB, free: 20.16 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.152e-05/0.3127, allocations: 4 kB / 0.7748 GB, free: 20.16 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.194e-06/0.3127, allocations: 11.94 kB / 0.7748 GB, free: 20.15 MB / 458.7 MB Notification: Performance of sorting global known variables: time 4.708e-05/0.3127, allocations: 121.4 kB / 0.7749 GB, free: 20.03 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3127, allocations: 0 / 0.7749 GB, free: 20.03 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0003578/0.3131, allocations: 75.92 kB / 0.775 GB, free: 19.96 MB / 458.7 MB 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.0001785/0.3133, allocations: 163.2 kB / 0.7751 GB, free: 19.79 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0001861/0.3135, allocations: 167.3 kB / 0.7753 GB, free: 19.61 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.3135, allocations: 0 / 0.7753 GB, free: 19.61 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 5.346e-05/0.3136, allocations: 43.98 kB / 0.7754 GB, free: 19.57 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001475/0.3137, allocations: 8 kB / 0.7754 GB, free: 19.56 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000373/0.3141, allocations: 387.9 kB / 0.7757 GB, free: 19.14 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001041/0.3142, allocations: 0.7121 MB / 0.7764 GB, free: 18.4 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 3.305e-05/0.3142, allocations: 16.61 kB / 0.7764 GB, free: 18.38 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.746e-05/0.3143, allocations: 11.44 kB / 0.7765 GB, free: 18.37 MB / 458.7 MB Notification: Performance of SimCode: time 2.11e-07/0.3143, allocations: 0 / 0.7765 GB, free: 18.37 MB / 458.7 MB Notification: Performance of Templates: time 0.003967/0.3182, allocations: 2.47 MB / 0.7789 GB, free: 15.93 MB / 458.7 MB make -j1 -f BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule.makefile (rm -f BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule.sim & ./BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1)