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/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009634/0.0009636, allocations: 90.36 kB / 15.36 MB, free: 0.7383 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.004903/0.004903, allocations: 170.7 kB / 16.26 MB, free: 6.613 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.298/1.298, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001736/0.001736, allocations: 278 kB / 291.7 MB, free: 1.859 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9228/0.9228, allocations: 169.5 MB / 0.5004 GB, free: 14.11 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004416/0.0004416, allocations: 12.38 kB / 0.5986 GB, free: 28.03 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1706/0.171, allocations: 88.55 MB / 0.6851 GB, free: 15.07 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule): time 0.001436/0.1725, allocations: 1.124 MB / 0.6862 GB, free: 13.93 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009091/0.1734, allocations: 0.5001 MB / 0.6867 GB, free: 13.43 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.666e-05/0.1735, allocations: 4.75 kB / 0.6867 GB, free: 13.43 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 5.944e-05/0.1735, allocations: 3.984 kB / 0.6867 GB, free: 13.43 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.971e-05/0.1736, allocations: 8.719 kB / 0.6867 GB, free: 13.42 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005884/0.1742, allocations: 200.8 kB / 0.6869 GB, free: 13.23 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001896/0.1744, allocations: 143.7 kB / 0.6871 GB, free: 13.09 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.501e-05/0.1744, allocations: 4 kB / 0.6871 GB, free: 13.08 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.265e-05/0.1745, allocations: 48.84 kB / 0.6871 GB, free: 13.04 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.208e-05/0.1746, allocations: 43.27 kB / 0.6871 GB, free: 13 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.246e-05/0.1746, allocations: 4 kB / 0.6872 GB, free: 12.99 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002432/0.1749, allocations: 167.8 kB / 0.6873 GB, free: 12.83 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.394e-05/0.175, allocations: 31.91 kB / 0.6873 GB, free: 12.8 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 8.792e-05/0.175, allocations: 73.48 kB / 0.6874 GB, free: 12.72 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002925/0.1753, allocations: 219.7 kB / 0.6876 GB, free: 12.5 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.451e-06/0.1754, allocations: 4 kB / 0.6876 GB, free: 12.5 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.1754, allocations: 0 / 0.6876 GB, free: 12.5 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.167e-06/0.1754, allocations: 0 / 0.6876 GB, free: 12.5 MB / 494.1 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.0005062/0.1759, allocations: 420.9 kB / 0.688 GB, free: 12.04 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.1759, allocations: 16.02 kB / 0.688 GB, free: 12.02 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.976e-05/0.176, allocations: 13.66 kB / 0.6881 GB, free: 12.01 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001996/0.1762, allocations: 205.8 kB / 0.6883 GB, free: 11.77 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.843e-05/0.1762, allocations: 10.09 kB / 0.6883 GB, free: 11.77 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.707e-05/0.1763, allocations: 8.375 kB / 0.6883 GB, free: 11.76 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001772/0.1764, allocations: 88.62 kB / 0.6884 GB, free: 11.66 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.564e-06/0.1765, allocations: 192 / 0.6884 GB, free: 11.66 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.389e-05/0.1765, allocations: 9.109 kB / 0.6884 GB, free: 11.65 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.182e-06/0.1765, allocations: 4 kB / 0.6884 GB, free: 11.65 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.404e-05/0.1766, allocations: 31.98 kB / 0.6884 GB, free: 11.62 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002434/0.1768, allocations: 235.6 kB / 0.6886 GB, free: 11.34 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001152/0.1769, allocations: 79.62 kB / 0.6887 GB, free: 11.24 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.437e-05/0.177, allocations: 53.81 kB / 0.6887 GB, free: 11.18 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.208e-06/0.177, allocations: 4 kB / 0.6888 GB, free: 11.18 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002253/0.1773, allocations: 111.5 kB / 0.6889 GB, free: 11.05 MB / 494.1 MB Notification: Performance of pre-optimization done (n=14): time 1.323e-06/0.1773, allocations: 0 / 0.6889 GB, free: 11.05 MB / 494.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003572/0.1776, allocations: 201.2 kB / 0.6891 GB, free: 10.85 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.796e-05/0.1777, allocations: 87.8 kB / 0.6891 GB, free: 10.75 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001307/0.1779, allocations: 151.8 kB / 0.6893 GB, free: 10.59 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.502e-05/0.1779, allocations: 37.7 kB / 0.6893 GB, free: 10.55 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.438e-05/0.178, allocations: 104.5 kB / 0.6894 GB, free: 10.44 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.384e-05/0.178, allocations: 35.56 kB / 0.6894 GB, free: 10.41 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.267e-05/0.1781, allocations: 22.48 kB / 0.6895 GB, free: 10.38 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.1782, allocations: 326.8 kB / 0.6898 GB, free: 10.05 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.339e-05/0.1783, allocations: 37.7 kB / 0.6898 GB, free: 10.02 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002132/0.1785, allocations: 207.1 kB / 0.69 GB, free: 9.762 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001356/0.1786, allocations: 102.6 kB / 0.6901 GB, free: 9.656 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.1786, allocations: 0 / 0.6901 GB, free: 9.656 MB / 494.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002267/0.1789, allocations: 161.8 kB / 0.6903 GB, free: 9.492 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.192e-05/0.1789, allocations: 8 kB / 0.6903 GB, free: 9.484 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.077e-05/0.1789, allocations: 4 kB / 0.6903 GB, free: 9.48 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.1789, allocations: 0 / 0.6903 GB, free: 9.48 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.12e-05/0.179, allocations: 15.98 kB / 0.6903 GB, free: 9.465 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.179, allocations: 0 / 0.6903 GB, free: 9.465 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000312/0.1793, allocations: 91.75 kB / 0.6904 GB, free: 9.375 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.28e-05/0.1794, allocations: 12.09 kB / 0.6904 GB, free: 9.363 MB / 494.1 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 0.0001196/0.1795, allocations: 139.1 kB / 0.6905 GB, free: 9.219 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.874e-05/0.1795, allocations: 11.84 kB / 0.6905 GB, free: 9.207 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.087e-05/0.1795, allocations: 12.72 kB / 0.6905 GB, free: 9.195 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.1795, allocations: 0 / 0.6905 GB, free: 9.195 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.1796, allocations: 4 kB / 0.6906 GB, free: 9.191 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.1796, allocations: 0 / 0.6906 GB, free: 9.191 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001477/0.1797, allocations: 193.5 kB / 0.6907 GB, free: 8.953 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.1797, allocations: 3.938 kB / 0.6907 GB, free: 8.949 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.951e-05/0.1798, allocations: 8.094 kB / 0.6907 GB, free: 8.941 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.1798, allocations: 3.984 kB / 0.6908 GB, free: 8.938 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.925e-06/0.1798, allocations: 4 kB / 0.6908 GB, free: 8.934 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.659e-06/0.1798, allocations: 7.984 kB / 0.6908 GB, free: 8.926 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.063e-06/0.1798, allocations: 3.984 kB / 0.6908 GB, free: 8.922 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002131/0.18, allocations: 177.8 kB / 0.6909 GB, free: 8.727 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.584e-05/0.1801, allocations: 92.89 kB / 0.691 GB, free: 8.617 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.984e-05/0.1801, allocations: 4 kB / 0.691 GB, free: 8.613 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.43e-05/0.1802, allocations: 4 kB / 0.691 GB, free: 8.609 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.471e-05/0.1802, allocations: 11.98 kB / 0.691 GB, free: 8.598 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.384e-06/0.1802, allocations: 4 kB / 0.691 GB, free: 8.594 MB / 494.1 MB Notification: Performance of sorting global known variables: time 7.037e-05/0.1803, allocations: 113.1 kB / 0.6912 GB, free: 8.484 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1803, allocations: 0 / 0.6912 GB, free: 8.484 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002929/0.1806, allocations: 75.98 kB / 0.6912 GB, free: 8.41 MB / 494.1 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.0002202/0.1808, allocations: 168.5 kB / 0.6914 GB, free: 8.242 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002321/0.1811, allocations: 163.2 kB / 0.6915 GB, free: 8.07 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.1811, allocations: 4 kB / 0.6915 GB, free: 8.066 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 6.453e-05/0.1811, allocations: 43.92 kB / 0.6916 GB, free: 8.023 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001673/0.1813, allocations: 15.92 kB / 0.6916 GB, free: 8.008 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003772/0.1817, allocations: 250.5 kB / 0.6918 GB, free: 7.73 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002397/0.182, allocations: 0.7004 MB / 0.6925 GB, free: 7.004 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.578e-05/0.182, allocations: 12.66 kB / 0.6925 GB, free: 6.988 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.006e-05/0.182, allocations: 11.44 kB / 0.6926 GB, free: 6.977 MB / 494.1 MB Notification: Performance of SimCode: time 2.31e-07/0.182, allocations: 0 / 0.6926 GB, free: 6.977 MB / 494.1 MB Notification: Performance of Templates: time 0.004949/0.187, allocations: 2.382 MB / 0.6949 GB, free: 4.625 MB / 494.1 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)