Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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) 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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|calTim.year|calTim.month|calTim.day|calTim.weekDay|calTim.hour|calTim.minute",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths") translateModel(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|calTim.year|calTim.month|calTim.day|calTim.weekDay|calTim.hour|calTim.minute",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.236/2.236, allocations: 387.4 MB / 394.9 MB, free: 13.39 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001075/0.001075, allocations: 176.9 kB / 487.4 MB, free: 5.047 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.534/1.534, allocations: 221.5 MB / 0.7824 GB, free: 1.059 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009926/0.0009928, allocations: 109.7 kB / 0.9219 GB, free: 2.297 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.34e-05/2.337e-05, allocations: 8 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3172/0.3173, allocations: 142.4 MB / 1.206 GB, free: 43.97 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.07/1.387, allocations: 151.4 MB / 1.354 GB, free: 18.41 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00021/1.388, allocations: 70.22 kB / 1.354 GB, free: 18.41 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01548/1.403, allocations: 5.307 MB / 1.359 GB, free: 33.8 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.553e-06/1.403, allocations: 0 / 1.359 GB, free: 33.8 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.92e-05/1.403, allocations: 3.875 kB / 1.359 GB, free: 33.8 MB / 0.8386 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.0009037/1.404, allocations: 0.6516 MB / 1.36 GB, free: 33.19 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.917e-05/1.404, allocations: 9.203 kB / 1.36 GB, free: 33.19 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001141/1.404, allocations: 34.72 kB / 1.36 GB, free: 33.18 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004065/1.405, allocations: 279.5 kB / 1.36 GB, free: 32.95 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.221e-05/1.405, allocations: 10.94 kB / 1.36 GB, free: 32.95 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.009e-05/1.405, allocations: 16.92 kB / 1.36 GB, free: 32.95 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001601/1.405, allocations: 59.83 kB / 1.36 GB, free: 32.95 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002975/1.405, allocations: 172.6 kB / 1.36 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/1.406, allocations: 4 kB / 1.36 GB, free: 32.9 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.98e-05/1.406, allocations: 0 / 1.36 GB, free: 32.9 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/1.406, allocations: 3.812 kB / 1.36 GB, free: 32.9 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00117/1.407, allocations: 0.5594 MB / 1.361 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001799/1.407, allocations: 116.1 kB / 1.361 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.799e-05/1.407, allocations: 59.02 kB / 1.361 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.065e-05/1.407, allocations: 0 / 1.361 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000238/1.407, allocations: 168 kB / 1.361 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=16): time 2.736e-06/1.407, allocations: 3.984 kB / 1.361 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of matching and sorting (n=16): time 0.0004378/1.408, allocations: 255.1 kB / 1.361 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.972e-05/1.408, allocations: 60.56 kB / 1.361 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002565/1.408, allocations: 270.5 kB / 1.362 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.376e-05/1.408, allocations: 32.92 kB / 1.362 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.637e-05/1.408, allocations: 100.4 kB / 1.362 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.356e-05/1.408, allocations: 41.31 kB / 1.362 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.955e-05/1.408, allocations: 0 / 1.362 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.000127/1.408, allocations: 320.9 kB / 1.362 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000165/1.409, allocations: 95.25 kB / 1.362 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001755/1.409, allocations: 145 kB / 1.362 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001259/1.409, allocations: 86.48 kB / 1.363 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/1.409, allocations: 4 kB / 1.363 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004721/1.409, allocations: 315.6 kB / 1.363 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 6.723e-05/1.409, allocations: 79.47 kB / 1.363 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/1.41, allocations: 3.953 kB / 1.363 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.626e-05/1.41, allocations: 3.781 kB / 1.363 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001481/1.41, allocations: 25.61 kB / 1.363 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.668e-06/1.41, allocations: 5.203 kB / 1.363 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003104/1.41, allocations: 41.75 kB / 1.363 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.833e-05/1.41, allocations: 40.64 kB / 1.363 GB, free: 31.7 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 24 ($PRE.calTim.calTim.firstDaySampling,calTim.calTim.firstDaySampling,$PRE.calTim.calTim.firstHourSampling,calTim.calTim.firstHourSampling,$whenCondition1,calTim.calTim.hourSampleTrigger,$whenCondition2,calTim.calTim.daySampleTrigger,$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 (26): * Single equations (assignments): 24 * 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.0001572/1.41, allocations: 127 kB / 1.363 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.879e-05/1.41, allocations: 23.25 kB / 1.363 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.714e-05/1.41, allocations: 33.25 kB / 1.363 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/1.41, allocations: 11.77 kB / 1.363 GB, free: 31.56 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.521e-06/1.41, allocations: 4 kB / 1.363 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/1.41, allocations: 3.938 kB / 1.363 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006449/1.411, allocations: 0.596 MB / 1.364 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/1.411, allocations: 0 / 1.364 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.29e-05/1.411, allocations: 3.844 kB / 1.364 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/1.411, allocations: 3.953 kB / 1.364 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.077e-05/1.411, allocations: 19.81 kB / 1.364 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/1.411, allocations: 0 / 1.364 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/1.411, allocations: 0 / 1.364 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003866/1.412, allocations: 349.2 kB / 1.364 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001682/1.412, allocations: 191 kB / 1.364 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.903e-05/1.412, allocations: 20.69 kB / 1.364 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004006/1.412, allocations: 32.86 kB / 1.364 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.867e-05/1.412, allocations: 21.06 kB / 1.364 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.546e-05/1.412, allocations: 40.61 kB / 1.364 GB, free: 31 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.000206/1.413, allocations: 213.2 kB / 1.365 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.7e-07/1.413, allocations: 0 / 1.365 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003841/1.413, allocations: 60.12 kB / 1.365 GB, free: 30.91 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 (calTim.calTim.daySampleTrigger,calTim.calTim.hourSampleTrigger,$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.firstDaySampling,calTim.calTim.daysSinceEpoch,calTim.calTim.weekDay,calTim.calTim.yearIndex,calTim.calTim.year,calTim.calTim.epochLastMonth,calTim.calTim.month,calTim.calTim.firstHourSampling,calTim.calTim.hour) * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 6 * 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.0001982/1.413, allocations: 124.4 kB / 1.365 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004678/1.414, allocations: 349.1 kB / 1.365 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/1.414, allocations: 4.062 kB / 1.365 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001025/1.414, allocations: 65.17 kB / 1.365 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003452/1.414, allocations: 25.05 kB / 1.365 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005737/1.415, allocations: 302.5 kB / 1.366 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003616/1.415, allocations: 0.7647 MB / 1.366 GB, free: 29.84 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 7.663e-05/1.415, allocations: 14.44 kB / 1.366 GB, free: 29.84 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.74e-05/1.415, allocations: 15.12 kB / 1.366 GB, free: 29.83 MB / 0.8386 GB Notification: Performance of SimCode: time 4.71e-07/1.415, allocations: 0 / 1.366 GB, free: 29.83 MB / 0.8386 GB Notification: Performance of Templates: time 0.007238/1.422, allocations: 4.144 MB / 1.37 GB, free: 29.37 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonths.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,calTim.year,calTim.month,calTim.day,calTim.weekDay,calTim.hour,calTim.minute Variables in the result:calTim.calTim.day,calTim.calTim.daySampleStart,calTim.calTim.hour,calTim.calTim.hourSampleStart,calTim.calTim.month,calTim.calTim.offset,calTim.calTim.outputUnixTimeStamp,calTim.calTim.timOff,calTim.calTim.timZon,calTim.calTim.weekDay,calTim.calTim.year,calTim.calTim.yearRef,calTim.calTim.zerTim,calTim.day,calTim.hour,calTim.minute,calTim.month,calTim.offset,calTim.weekDay,calTim.year,calTim.yearRef,calTim.zerTim,time