Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.conf.json Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus,fileNamePrefix="Buildings_7_0_0_Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonthsMinus",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.26/2.26, allocations: 248.7 MB / 256.2 MB, free: 7.105 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001439/0.001439, allocations: 181.3 kB / 315.4 MB, free: 4.012 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.15/2.15, allocations: 205.3 MB / 0.5662 GB, free: 0.5469 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001093/0.001093, allocations: 94.47 kB / 0.6704 GB, free: 5.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.236e-05/3.251e-05, allocations: 7.984 kB / 0.7804 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2082/0.2083, allocations: 106.3 MB / 0.8841 GB, free: 12.96 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9075/1.116, allocations: 133.9 MB / 1.015 GB, free: 4.891 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002928/1.116, allocations: 77.19 kB / 1.015 GB, free: 4.848 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.02578/1.142, allocations: 5.185 MB / 1.02 GB, free: 496 kB / 0.6355 GB Notification: Performance of FrontEnd: time 2.184e-06/1.142, allocations: 0 / 1.02 GB, free: 496 kB / 0.6355 GB Notification: Performance of Transformations before backend: time 2.025e-05/1.142, allocations: 8 kB / 1.02 GB, free: 488 kB / 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.001379/1.143, allocations: 0.5976 MB / 1.021 GB, free: 15.83 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.703e-05/1.144, allocations: 16.02 kB / 1.021 GB, free: 15.81 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001595/1.144, allocations: 31.67 kB / 1.021 GB, free: 15.78 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005534/1.144, allocations: 271.1 kB / 1.021 GB, free: 15.5 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.964e-05/1.144, allocations: 7.688 kB / 1.021 GB, free: 15.5 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001175/1.144, allocations: 19.98 kB / 1.021 GB, free: 15.48 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002004/1.145, allocations: 59.23 kB / 1.021 GB, free: 15.44 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003894/1.145, allocations: 148.7 kB / 1.021 GB, free: 15.31 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/1.145, allocations: 0 / 1.021 GB, free: 15.31 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.943e-05/1.145, allocations: 7.984 kB / 1.021 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.921e-06/1.145, allocations: 7.875 kB / 1.021 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001789/1.147, allocations: 0.5543 MB / 1.022 GB, free: 14.82 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003335/1.147, allocations: 129.3 kB / 1.022 GB, free: 14.72 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001505/1.147, allocations: 55.91 kB / 1.022 GB, free: 14.68 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 3.08e-05/1.148, allocations: 0 / 1.022 GB, free: 14.68 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006181/1.148, allocations: 219 kB / 1.022 GB, free: 14.48 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=18): time 2.625e-06/1.148, allocations: 0 / 1.022 GB, free: 14.48 MB / 0.6511 GB Notification: Performance of matching and sorting (n=18): time 0.0007058/1.149, allocations: 223.6 kB / 1.022 GB, free: 14.29 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.678e-05/1.149, allocations: 63.41 kB / 1.022 GB, free: 14.22 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004416/1.149, allocations: 270.4 kB / 1.023 GB, free: 14 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 9.823e-05/1.15, allocations: 37.58 kB / 1.023 GB, free: 13.96 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001184/1.15, allocations: 97.16 kB / 1.023 GB, free: 13.87 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 7.772e-05/1.15, allocations: 51.06 kB / 1.023 GB, free: 13.82 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.697e-05/1.15, allocations: 4.844 kB / 1.023 GB, free: 13.82 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001536/1.15, allocations: 318.8 kB / 1.023 GB, free: 13.5 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003371/1.15, allocations: 105.9 kB / 1.023 GB, free: 13.44 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003756/1.151, allocations: 164 kB / 1.023 GB, free: 13.3 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002596/1.151, allocations: 84.03 kB / 1.023 GB, free: 13.25 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/1.151, allocations: 0 / 1.023 GB, free: 13.25 MB / 0.6511 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.001/1.152, allocations: 340.3 kB / 1.024 GB, free: 12.98 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001076/1.152, allocations: 78.89 kB / 1.024 GB, free: 12.9 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/1.152, allocations: 0 / 1.024 GB, free: 12.9 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.166e-05/1.152, allocations: 7.938 kB / 1.024 GB, free: 12.89 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002725/1.153, allocations: 31.66 kB / 1.024 GB, free: 12.87 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/1.153, allocations: 4 kB / 1.024 GB, free: 12.86 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000653/1.153, allocations: 48 kB / 1.024 GB, free: 12.82 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001542/1.153, allocations: 55.61 kB / 1.024 GB, free: 12.77 MB / 0.6511 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.0002266/1.154, allocations: 128 kB / 1.024 GB, free: 12.64 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008524/1.154, allocations: 220.3 kB / 1.024 GB, free: 12.45 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001084/1.155, allocations: 23.72 kB / 1.024 GB, free: 12.43 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001592/1.155, allocations: 28.83 kB / 1.024 GB, free: 12.41 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/1.155, allocations: 4 kB / 1.024 GB, free: 12.4 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/1.155, allocations: 4 kB / 1.024 GB, free: 12.4 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.057e-05/1.155, allocations: 3.984 kB / 1.024 GB, free: 12.39 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001555/1.156, allocations: 0.5524 MB / 1.025 GB, free: 11.88 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/1.156, allocations: 0 / 1.025 GB, free: 11.88 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001148/1.157, allocations: 15.67 kB / 1.025 GB, free: 11.87 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-05/1.157, allocations: 4 kB / 1.025 GB, free: 11.87 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.518e-05/1.157, allocations: 7.984 kB / 1.025 GB, free: 11.86 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.999e-06/1.157, allocations: 0 / 1.025 GB, free: 11.86 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/1.157, allocations: 4 kB / 1.025 GB, free: 11.86 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008589/1.158, allocations: 320.1 kB / 1.025 GB, free: 11.57 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004996/1.158, allocations: 192.2 kB / 1.025 GB, free: 11.39 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001331/1.158, allocations: 11.42 kB / 1.025 GB, free: 11.38 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004385/1.159, allocations: 4 kB / 1.025 GB, free: 11.38 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/1.159, allocations: 23.59 kB / 1.026 GB, free: 11.36 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000104/1.159, allocations: 23.98 kB / 1.026 GB, free: 11.34 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0004526/1.159, allocations: 222.9 kB / 1.026 GB, free: 11.16 MB / 0.6511 GB Notification: Performance of sort global known variables: time 6.42e-07/1.16, allocations: 0 / 1.026 GB, free: 11.16 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0009005/1.16, allocations: 55.5 kB / 1.026 GB, free: 11.11 MB / 0.6511 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.001491/1.162, allocations: 0.8655 MB / 1.027 GB, free: 10.26 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001245/1.163, allocations: 359.8 kB / 1.027 GB, free: 9.969 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 7.043e-06/1.163, allocations: 0 / 1.027 GB, free: 9.969 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0002899/1.164, allocations: 73.28 kB / 1.027 GB, free: 9.914 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006253/1.164, allocations: 27.81 kB / 1.027 GB, free: 9.895 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001819/1.166, allocations: 358.1 kB / 1.027 GB, free: 9.555 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000604/1.167, allocations: 0.7612 MB / 1.028 GB, free: 8.77 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0003745/1.167, allocations: 37.2 kB / 1.028 GB, free: 8.734 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003167/1.167, allocations: 54.34 kB / 1.028 GB, free: 8.695 MB / 0.6511 GB Notification: Performance of SimCode: time 3.447e-06/1.168, allocations: 0 / 1.028 GB, free: 8.695 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05299/1.221, allocations: 5.48 MB / 1.034 GB, free: 3.238 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000282/1.221, allocations: 183.1 kB / 1.034 GB, free: 3.043 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.334/3.555, allocations: 1.828 kB / 1.034 GB, free: 3.043 MB / 0.6511 GB