Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus,fileNamePrefix="Buildings_6_0_0_Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonthsMinus",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.177/4.177, allocations: 433.2 MB / 440.7 MB, free: 4.562 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 8.407e-05/8.421e-05, allocations: 7.219 kB / 0.5325 GB, free: 12.8 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2148/0.2149, allocations: 98.72 MB / 0.6289 GB, free: 9.098 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2324/0.4473, allocations: 126 MB / 0.7519 GB, free: 10.98 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002846/0.4476, allocations: 79.94 kB / 0.752 GB, free: 10.9 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.02393/0.4716, allocations: 4.857 MB / 0.7567 GB, free: 6.027 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.034e-06/0.4716, allocations: 0 / 0.7567 GB, free: 6.027 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 9.929e-06/0.4717, allocations: 8 kB / 0.7568 GB, free: 6.02 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.001419/0.4731, allocations: 0.5714 MB / 0.7573 GB, free: 5.375 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.226e-05/0.4732, allocations: 8.031 kB / 0.7573 GB, free: 5.367 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002023/0.4734, allocations: 39.59 kB / 0.7574 GB, free: 5.328 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002364/0.4736, allocations: 193.9 kB / 0.7575 GB, free: 5.102 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.058e-05/0.4737, allocations: 4 kB / 0.7575 GB, free: 5.098 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001327/0.4738, allocations: 16 kB / 0.7576 GB, free: 5.082 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002182/0.4741, allocations: 63.91 kB / 0.7576 GB, free: 5.02 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003836/0.4745, allocations: 154.7 kB / 0.7578 GB, free: 4.863 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.4745, allocations: 0 / 0.7578 GB, free: 4.863 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.14e-05/0.4745, allocations: 8 kB / 0.7578 GB, free: 4.855 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.051e-06/0.4746, allocations: 0 / 0.7578 GB, free: 4.855 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001822/0.4764, allocations: 0.5361 MB / 0.7583 GB, free: 4.281 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003279/0.4768, allocations: 118.7 kB / 0.7584 GB, free: 4.156 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001517/0.4769, allocations: 53.09 kB / 0.7585 GB, free: 4.102 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.593e-05/0.477, allocations: 8 kB / 0.7585 GB, free: 4.094 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005599/0.4775, allocations: 208.5 kB / 0.7587 GB, free: 3.879 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=18): time 2.635e-06/0.4776, allocations: 0 / 0.7587 GB, free: 3.879 MB / 0.6355 GB Notification: Performance of matching and sorting (n=18): time 0.0007074/0.4783, allocations: 210.6 kB / 0.7589 GB, free: 3.668 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.351e-05/0.4783, allocations: 63.39 kB / 0.7589 GB, free: 3.594 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003378/0.4787, allocations: 208.5 kB / 0.7591 GB, free: 3.387 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 9.758e-05/0.4788, allocations: 41.64 kB / 0.7592 GB, free: 3.34 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/0.4789, allocations: 96.81 kB / 0.7593 GB, free: 3.242 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 6.68e-05/0.479, allocations: 39.52 kB / 0.7593 GB, free: 3.203 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.315e-05/0.4791, allocations: 4 kB / 0.7593 GB, free: 3.199 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.000143/0.4792, allocations: 334.8 kB / 0.7596 GB, free: 2.863 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003285/0.4796, allocations: 96.22 kB / 0.7597 GB, free: 2.77 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003685/0.4799, allocations: 150.1 kB / 0.7599 GB, free: 2.602 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003068/0.4803, allocations: 86.39 kB / 0.7599 GB, free: 2.516 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.678e-06/0.4803, allocations: 0 / 0.7599 GB, free: 2.516 MB / 0.6355 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.001005/0.4813, allocations: 331.6 kB / 0.7603 GB, free: 2.188 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001048/0.4814, allocations: 75.39 kB / 0.7603 GB, free: 2.102 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.282e-05/0.4815, allocations: 4 kB / 0.7603 GB, free: 2.098 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.83e-05/0.4815, allocations: 0 / 0.7603 GB, free: 2.098 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002738/0.4818, allocations: 32.11 kB / 0.7604 GB, free: 2.066 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.708e-05/0.4818, allocations: 11.97 kB / 0.7604 GB, free: 2.055 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006268/0.4824, allocations: 43.81 kB / 0.7604 GB, free: 2.012 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001131/0.4826, allocations: 39.98 kB / 0.7605 GB, free: 1.973 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.calTim.calTim.firstDaySampling,calTim.calTim.firstDaySampling,$PRE.calTim.calTim.firstHourSampling,calTim.calTim.firstHourSampling,$whenCondition3,calTim.calTim.hourSampleTrigger,$whenCondition4,calTim.calTim.daySampleTrigger,$whenCondition2,$whenCondition1,$PRE.calTim.calTim.year,calTim.calTim.year,$PRE.calTim.calTim.month,calTim.calTim.month,$PRE.calTim.calTim.day,calTim.calTim.day,$PRE.calTim.calTim.hour,calTim.calTim.hour,$PRE.calTim.calTim.weekDay,calTim.calTim.weekDay,$PRE.calTim.calTim.daysSinceEpoch,calTim.calTim.daysSinceEpoch,$PRE.calTim.calTim.yearIndex,calTim.calTim.yearIndex,$PRE.calTim.calTim.epochLastMonth,calTim.calTim.epochLastMonth) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 2 * 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.0002261/0.4828, allocations: 132 kB / 0.7606 GB, free: 1.836 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005525/0.4834, allocations: 211.7 kB / 0.7608 GB, free: 1.625 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001132/0.4835, allocations: 23.72 kB / 0.7608 GB, free: 1.602 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001288/0.4837, allocations: 25.95 kB / 0.7608 GB, free: 1.574 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.212e-06/0.4837, allocations: 0 / 0.7608 GB, free: 1.574 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.4837, allocations: 0 / 0.7608 GB, free: 1.574 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.654e-06/0.4837, allocations: 3.938 kB / 0.7608 GB, free: 1.57 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001948/0.4857, allocations: 0.53 MB / 0.7613 GB, free: 0.9961 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.4857, allocations: 0 / 0.7613 GB, free: 0.9961 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.749e-05/0.4858, allocations: 11.98 kB / 0.7614 GB, free: 0.9844 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.009e-05/0.4858, allocations: 4 kB / 0.7614 GB, free: 0.9805 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.812e-05/0.4859, allocations: 11.98 kB / 0.7614 GB, free: 0.9688 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.028e-06/0.4859, allocations: 0 / 0.7614 GB, free: 0.9688 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.4859, allocations: 0 / 0.7614 GB, free: 0.9688 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005865/0.4865, allocations: 311.6 kB / 0.7617 GB, free: 0.6484 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002762/0.4868, allocations: 156.7 kB / 0.7618 GB, free: 488 kB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.645e-05/0.4869, allocations: 8 kB / 0.7618 GB, free: 480 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003019/0.4872, allocations: 15.98 kB / 0.7618 GB, free: 464 kB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.743e-05/0.4873, allocations: 15.98 kB / 0.7619 GB, free: 448 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.224e-05/0.4874, allocations: 27.97 kB / 0.7619 GB, free: 420 kB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.0002465/0.4876, allocations: 172.5 kB / 0.7621 GB, free: 244 kB / 0.6355 GB Notification: Performance of sort global known variables: time 4.91e-07/0.4876, allocations: 0 / 0.7621 GB, free: 244 kB / 0.6355 GB Notification: Performance of remove unused functions: time 0.000631/0.4883, allocations: 47.95 kB / 0.7621 GB, free: 196 kB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 (calTim.calTim.daySampleTrigger,calTim.calTim.hourSampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,calTim.calTim.year,calTim.calTim.month,calTim.calTim.day,calTim.calTim.hour,calTim.calTim.weekDay,calTim.calTim.daysSinceEpoch,calTim.calTim.yearIndex,calTim.calTim.epochLastMonth,calTim.calTim.firstHourSampling,calTim.calTim.firstDaySampling) * Number of discrete states: 9 (calTim.calTim.yearIndex,calTim.calTim.firstDaySampling,calTim.calTim.daysSinceEpoch,calTim.calTim.weekDay,calTim.calTim.firstHourSampling,calTim.calTim.hour,calTim.calTim.epochLastMonth,calTim.calTim.month,calTim.calTim.year) * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * 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.001078/0.4894, allocations: 0.8653 MB / 0.7629 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0008818/0.4903, allocations: 342.9 kB / 0.7633 GB, free: 14.95 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 4.127e-06/0.4903, allocations: 0 / 0.7633 GB, free: 14.95 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001915/0.4905, allocations: 71.91 kB / 0.7633 GB, free: 14.88 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004455/0.491, allocations: 27.09 kB / 0.7634 GB, free: 14.85 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001162/0.4922, allocations: 307.2 kB / 0.7637 GB, free: 14.52 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003871/0.4926, allocations: 0.7397 MB / 0.7644 GB, free: 13.75 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0002213/0.4928, allocations: 33.19 kB / 0.7644 GB, free: 13.72 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001958/0.493, allocations: 47.42 kB / 0.7645 GB, free: 13.67 MB / 0.6511 GB Notification: Performance of SimCode: time 1.072e-06/0.493, allocations: 4 kB / 0.7645 GB, free: 13.67 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04562/0.5387, allocations: 5.057 MB / 0.7694 GB, free: 8.633 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002468/0.539, allocations: 179.5 kB / 0.7696 GB, free: 8.441 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.515/3.054, allocations: 1.719 kB / 0.7696 GB, free: 8.441 MB / 0.6511 GB