Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Controls.Sources.Examples.DayType.conf.json Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: translateModel(Buildings.Controls.Sources.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Controls.Sources.Examples.DayType") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.009318/0.009323, allocations: 109.1 kB / 15.06 MB, free: 5.562 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.00136/0.001359, allocations: 178.9 kB / 15.95 MB, free: 5.523 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 1.968/1.968, allocations: 194.6 MB / 211.3 MB, free: 10.99 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 2.342/2.342, allocations: 236.2 MB / 492.6 MB, free: 11.33 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004669/0.0004671, allocations: 11.98 kB / 0.5869 GB, free: 2.156 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6435/0.644, allocations: 98.72 MB / 0.6833 GB, free: 16.86 MB / 0.5261 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Sources.Examples.DayType): time 0.001517/0.6455, allocations: 1.113 MB / 0.6844 GB, free: 16.04 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.0006132/0.6462, allocations: 265.3 kB / 0.6847 GB, free: 15.86 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.021e-05/0.6462, allocations: 1.531 kB / 0.6847 GB, free: 15.86 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 9.223e-05/0.6464, allocations: 9.938 kB / 0.6847 GB, free: 15.86 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 7.015e-05/0.6464, allocations: 22.12 kB / 0.6847 GB, free: 15.84 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003473/0.6468, allocations: 73.56 kB / 0.6848 GB, free: 15.8 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0002402/0.647, allocations: 152.2 kB / 0.6849 GB, free: 15.73 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 5.861e-05/0.6471, allocations: 7.734 kB / 0.6849 GB, free: 15.73 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001004/0.6472, allocations: 78.95 kB / 0.685 GB, free: 15.71 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001815/0.6474, allocations: 106.1 kB / 0.6851 GB, free: 15.68 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 4.674e-05/0.6475, allocations: 8.906 kB / 0.6851 GB, free: 15.68 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 4.31e-05/0.6475, allocations: 8.062 kB / 0.6851 GB, free: 15.68 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 0.0001047/0.6477, allocations: 75.97 kB / 0.6852 GB, free: 15.65 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 6.46e-05/0.6477, allocations: 57.12 kB / 0.6853 GB, free: 15.6 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.0002475/0.648, allocations: 174.2 kB / 0.6854 GB, free: 15.56 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.537e-06/0.648, allocations: 4 kB / 0.6854 GB, free: 15.55 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.288e-06/0.648, allocations: 0 / 0.6854 GB, free: 15.55 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.188e-05/0.648, allocations: 0 / 0.6854 GB, free: 15.55 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.0009067/0.6489, allocations: 0.625 MB / 0.686 GB, free: 14.97 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.653e-05/0.649, allocations: 8.75 kB / 0.686 GB, free: 14.97 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.165e-05/0.6491, allocations: 29.98 kB / 0.6861 GB, free: 14.96 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003256/0.6494, allocations: 260.9 kB / 0.6863 GB, free: 14.72 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.777e-05/0.6495, allocations: 20.48 kB / 0.6863 GB, free: 14.71 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.981e-05/0.6496, allocations: 17.89 kB / 0.6864 GB, free: 14.7 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007805/0.6503, allocations: 462.2 kB / 0.6868 GB, free: 14.55 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.252e-05/0.6504, allocations: 0 / 0.6868 GB, free: 14.55 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.455e-05/0.6504, allocations: 7.672 kB / 0.6868 GB, free: 14.55 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.853e-06/0.6504, allocations: 6.766 kB / 0.6868 GB, free: 14.55 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005401/0.651, allocations: 323 kB / 0.6871 GB, free: 14.48 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000807/0.6518, allocations: 0.5607 MB / 0.6877 GB, free: 14.18 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001666/0.6535, allocations: 1.022 MB / 0.6887 GB, free: 13.9 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 3.898e-05/0.6536, allocations: 13.17 kB / 0.6887 GB, free: 13.89 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000802/0.6544, allocations: 481 kB / 0.6891 GB, free: 13.72 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=37): time 3.281e-06/0.6544, allocations: 0 / 0.6891 GB, free: 13.72 MB / 0.5261 GB Notification: Performance of matching and sorting (n=37): time 0.002554/0.657, allocations: 1.111 MB / 0.6902 GB, free: 13.46 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.705e-05/0.6571, allocations: 144.9 kB / 0.6904 GB, free: 13.3 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004886/0.6576, allocations: 255.6 kB / 0.6906 GB, free: 13.14 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 7.357e-05/0.6577, allocations: 38.72 kB / 0.6906 GB, free: 13.11 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001129/0.6578, allocations: 123.5 kB / 0.6908 GB, free: 13 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001669/0.658, allocations: 78.89 kB / 0.6908 GB, free: 12.94 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.798e-05/0.658, allocations: 9.875 kB / 0.6908 GB, free: 12.93 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001373/0.6582, allocations: 344.3 kB / 0.6912 GB, free: 12.6 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001093/0.6593, allocations: 330.7 kB / 0.6915 GB, free: 12.54 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001155/0.6605, allocations: 422.6 kB / 0.6919 GB, free: 12.37 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001024/0.6615, allocations: 360.5 kB / 0.6922 GB, free: 12.29 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.157e-06/0.6616, allocations: 1.125 kB / 0.6922 GB, free: 12.29 MB / 0.5261 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.002545/0.6641, allocations: 0.8255 MB / 0.693 GB, free: 12.07 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 3.576e-05/0.6642, allocations: 5.5 kB / 0.693 GB, free: 12.07 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.782e-05/0.6643, allocations: 3.406 kB / 0.693 GB, free: 12.07 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.3e-05/0.6643, allocations: 5.5 kB / 0.6931 GB, free: 12.07 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000348/0.6647, allocations: 48.94 kB / 0.6931 GB, free: 12.05 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.163e-05/0.6647, allocations: 8.719 kB / 0.6931 GB, free: 12.05 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005708/0.6653, allocations: 29.34 kB / 0.6931 GB, free: 12.03 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006551/0.666, allocations: 267.2 kB / 0.6934 GB, free: 12.02 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 45 ($PRE.dayTypMonThr.skipIDayIncrement,dayTypMonThr.skipIDayIncrement,$whenCondition4,dayTypMonThr.sampleTrigger,dayTypMonThr.y[1],dayTypMonThr.y[2],dayTypMonThr.y[3],$PRE.dayTypMonThr.iDay,dayTypMonThr.iDay,$PRE.dayTypTwoWeeks.skipIDayIncrement,dayTypTwoWeeks.skipIDayIncrement,$whenCondition3,dayTypTwoWeeks.sampleTrigger,dayTypTwoWeeks.y[1],dayTypTwoWeeks.y[2],dayTypTwoWeeks.y[3],dayTypTwoWeeks.y[4],dayTypTwoWeeks.y[5],dayTypTwoWeeks.y[6],dayTypTwoWeeks.y[7],dayTypTwoWeeks.y[8],dayTypTwoWeeks.y[9],dayTypTwoWeeks.y[10],dayTypTwoWeeks.y[11],dayTypTwoWeeks.y[12],dayTypTwoWeeks.y[13],dayTypTwoWeeks.y[14],$PRE.dayTypTwoWeeks.iDay,dayTypTwoWeeks.iDay,$PRE.dayTypSat.skipIDayIncrement,dayTypSat.skipIDayIncrement,$whenCondition2,dayTypSat.sampleTrigger,dayTypSat.y[1],dayTypSat.y[2],$PRE.dayTypSat.iDay,dayTypSat.iDay,$PRE.dayTypMon.skipIDayIncrement,dayTypMon.skipIDayIncrement,$whenCondition1,dayTypMon.sampleTrigger,dayTypMon.y[1],dayTypMon.y[2],$PRE.dayTypMon.iDay,dayTypMon.iDay) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000424/0.6664, allocations: 192.7 kB / 0.6936 GB, free: 11.87 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001228/0.6666, allocations: 26.11 kB / 0.6936 GB, free: 11.86 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001191/0.6667, allocations: 37 kB / 0.6936 GB, free: 11.83 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.114e-05/0.6667, allocations: 5.109 kB / 0.6936 GB, free: 11.83 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.054e-05/0.6668, allocations: 1.219 kB / 0.6936 GB, free: 11.83 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.334e-05/0.6668, allocations: 6.938 kB / 0.6936 GB, free: 11.82 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00443/0.6712, allocations: 1.723 MB / 0.6953 GB, free: 11.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.256e-05/0.6713, allocations: 1.312 kB / 0.6953 GB, free: 11.02 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001082/0.6714, allocations: 24.84 kB / 0.6954 GB, free: 11.02 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.465e-05/0.6714, allocations: 2.375 kB / 0.6954 GB, free: 11.02 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.428e-05/0.6715, allocations: 23.2 kB / 0.6954 GB, free: 11.01 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-05/0.6716, allocations: 7.578 kB / 0.6954 GB, free: 11 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.121e-06/0.6716, allocations: 1.188 kB / 0.6954 GB, free: 11 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002581/0.6742, allocations: 1.143 MB / 0.6965 GB, free: 10.43 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001301/0.6744, allocations: 111.1 kB / 0.6966 GB, free: 10.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001264/0.6745, allocations: 17.2 kB / 0.6966 GB, free: 10.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007495/0.6753, allocations: 7.859 kB / 0.6966 GB, free: 10.3 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002213/0.6755, allocations: 49.56 kB / 0.6967 GB, free: 10.29 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007526/0.6763, allocations: 281.1 kB / 0.6969 GB, free: 10.27 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0003465/0.6767, allocations: 172.1 kB / 0.6971 GB, free: 10.17 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.232e-06/0.6767, allocations: 0 / 0.6971 GB, free: 10.17 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.001335/0.678, allocations: 63.52 kB / 0.6972 GB, free: 10.16 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 37 (dayTypMon.sampleTrigger,$whenCondition1,dayTypMon.y[1],dayTypMon.y[2],dayTypMon.iDay,dayTypMon.skipIDayIncrement,dayTypSat.sampleTrigger,$whenCondition2,dayTypSat.y[1],dayTypSat.y[2],dayTypSat.iDay,dayTypSat.skipIDayIncrement,dayTypTwoWeeks.sampleTrigger,$whenCondition3,dayTypTwoWeeks.y[1],dayTypTwoWeeks.y[2],dayTypTwoWeeks.y[3],dayTypTwoWeeks.y[4],dayTypTwoWeeks.y[5],dayTypTwoWeeks.y[6],dayTypTwoWeeks.y[7],dayTypTwoWeeks.y[8],dayTypTwoWeeks.y[9],dayTypTwoWeeks.y[10],dayTypTwoWeeks.y[11],dayTypTwoWeeks.y[12],dayTypTwoWeeks.y[13],dayTypTwoWeeks.y[14],dayTypTwoWeeks.iDay,dayTypTwoWeeks.skipIDayIncrement,dayTypMonThr.sampleTrigger,$whenCondition4,dayTypMonThr.y[1],dayTypMonThr.y[2],dayTypMonThr.y[3],dayTypMonThr.iDay,dayTypMonThr.skipIDayIncrement) * Number of discrete states: 8 (dayTypMonThr.skipIDayIncrement,dayTypMonThr.iDay,dayTypTwoWeeks.skipIDayIncrement,dayTypTwoWeeks.iDay,dayTypSat.skipIDayIncrement,dayTypSat.iDay,dayTypMon.skipIDayIncrement,dayTypMon.iDay) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002634/0.6783, allocations: 132.2 kB / 0.6973 GB, free: 10.06 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002336/0.6807, allocations: 0.7443 MB / 0.698 GB, free: 9.844 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.6807, allocations: 0 / 0.698 GB, free: 9.844 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001339/0.6821, allocations: 412.8 kB / 0.6984 GB, free: 9.703 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003128/0.6853, allocations: 311.1 kB / 0.6987 GB, free: 9.566 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003105/0.6884, allocations: 1.018 MB / 0.6997 GB, free: 9.039 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004011/0.6889, allocations: 0.7673 MB / 0.7005 GB, free: 8.293 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0008051/0.6897, allocations: 97.58 kB / 0.7006 GB, free: 8.258 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002852/0.69, allocations: 66.12 kB / 0.7006 GB, free: 8.23 MB / 0.5261 GB Notification: Performance of SimCode: time 2.694e-06/0.69, allocations: 1 kB / 0.7006 GB, free: 8.23 MB / 0.5261 GB Notification: Performance of Templates: time 0.0301/0.7201, allocations: 8.133 MB / 0.7086 GB, free: 4.133 MB / 0.5261 GB