Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|calTim.year|calTim.month|calTim.day|calTim.weekDay|calTim.hour|calTim.minute",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus") translateModel(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|calTim.year|calTim.month|calTim.day|calTim.weekDay|calTim.hour|calTim.minute",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.559/2.559, allocations: 390.5 MB / 398 MB, free: 10.91 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.00109/0.00109, allocations: 172.8 kB / 491.2 MB, free: 1.559 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.717/1.717, allocations: 221.5 MB / 0.7868 GB, free: 13.32 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001127/0.001126, allocations: 102.8 kB / 0.9269 GB, free: 13.82 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.994e-05/1.993e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.335/0.3351, allocations: 143 MB / 1.212 GB, free: 39.49 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.059/1.394, allocations: 152.3 MB / 1.361 GB, free: 17.45 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002331/1.394, allocations: 72.38 kB / 1.361 GB, free: 17.45 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01655/1.411, allocations: 5.318 MB / 1.366 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.034e-06/1.411, allocations: 0 / 1.366 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.777e-05/1.411, allocations: 3.969 kB / 1.366 GB, free: 32.83 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.0008183/1.412, allocations: 0.6487 MB / 1.367 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/1.412, allocations: 10.77 kB / 1.367 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001293/1.412, allocations: 38.89 kB / 1.367 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003505/1.412, allocations: 271.4 kB / 1.367 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.526e-05/1.412, allocations: 11.34 kB / 1.367 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.525e-05/1.413, allocations: 17.61 kB / 1.367 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001339/1.413, allocations: 55.7 kB / 1.367 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000251/1.413, allocations: 169.3 kB / 1.367 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.337e-06/1.413, allocations: 0 / 1.367 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.772e-05/1.413, allocations: 4 kB / 1.367 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.152e-06/1.413, allocations: 7.859 kB / 1.367 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00102/1.414, allocations: 0.5686 MB / 1.368 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001586/1.414, allocations: 113.3 kB / 1.368 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.166e-05/1.414, allocations: 56.42 kB / 1.368 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.043e-05/1.414, allocations: 3.875 kB / 1.368 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002338/1.415, allocations: 166.3 kB / 1.368 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=16): time 1.763e-06/1.415, allocations: 0 / 1.368 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of matching and sorting (n=16): time 0.0004469/1.415, allocations: 244.2 kB / 1.369 GB, free: 31.56 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.259e-05/1.415, allocations: 66.38 kB / 1.369 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002635/1.415, allocations: 273.6 kB / 1.369 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.375e-05/1.415, allocations: 33.42 kB / 1.369 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.084e-05/1.416, allocations: 98.97 kB / 1.369 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.641e-05/1.416, allocations: 37.42 kB / 1.369 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.148e-05/1.416, allocations: 3.812 kB / 1.369 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001016/1.416, allocations: 323.8 kB / 1.369 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001603/1.416, allocations: 93.75 kB / 1.369 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001716/1.416, allocations: 151.2 kB / 1.37 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001316/1.416, allocations: 79.09 kB / 1.37 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/1.416, allocations: 7.875 kB / 1.37 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004841/1.417, allocations: 317 kB / 1.37 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 5.23e-05/1.417, allocations: 81.16 kB / 1.37 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/1.417, allocations: 3.188 kB / 1.37 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.523e-05/1.417, allocations: 3.844 kB / 1.37 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001411/1.417, allocations: 22.52 kB / 1.37 GB, free: 30.74 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.095e-05/1.417, allocations: 3.781 kB / 1.37 GB, free: 30.74 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003165/1.417, allocations: 49.81 kB / 1.37 GB, free: 30.72 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.588e-05/1.417, allocations: 44.06 kB / 1.37 GB, free: 30.72 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.0001254/1.417, allocations: 127 kB / 1.37 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.1e-05/1.418, allocations: 27.42 kB / 1.37 GB, free: 30.6 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.223e-05/1.418, allocations: 34.7 kB / 1.37 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/1.418, allocations: 0 / 1.37 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/1.418, allocations: 4 kB / 1.37 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/1.418, allocations: 0 / 1.37 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000601/1.418, allocations: 0.6084 MB / 1.371 GB, free: 30.31 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/1.418, allocations: 0 / 1.371 GB, free: 30.31 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.598e-05/1.418, allocations: 14.42 kB / 1.371 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.856e-06/1.418, allocations: 0 / 1.371 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.745e-05/1.418, allocations: 16.84 kB / 1.371 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/1.418, allocations: 0 / 1.371 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/1.418, allocations: 6.344 kB / 1.371 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000333/1.419, allocations: 339.4 kB / 1.371 GB, free: 30.15 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000158/1.419, allocations: 190.7 kB / 1.372 GB, free: 30.04 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.234e-05/1.419, allocations: 22.27 kB / 1.372 GB, free: 30.04 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000408/1.419, allocations: 32.95 kB / 1.372 GB, free: 30.04 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.855e-05/1.419, allocations: 6.969 kB / 1.372 GB, free: 30.04 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.702e-05/1.419, allocations: 55.27 kB / 1.372 GB, free: 30.03 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001826/1.42, allocations: 213.4 kB / 1.372 GB, free: 29.94 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.6e-07/1.42, allocations: 0 / 1.372 GB, free: 29.94 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003273/1.42, allocations: 46.34 kB / 1.372 GB, free: 29.94 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.0002029/1.42, allocations: 126.7 kB / 1.372 GB, free: 29.85 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004019/1.421, allocations: 343 kB / 1.372 GB, free: 29.72 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/1.421, allocations: 384 / 1.372 GB, free: 29.72 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 8.972e-05/1.421, allocations: 68.88 kB / 1.372 GB, free: 29.71 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002819/1.421, allocations: 27.61 kB / 1.372 GB, free: 29.71 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005274/1.422, allocations: 298.2 kB / 1.373 GB, free: 29.59 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003402/1.422, allocations: 0.7592 MB / 1.373 GB, free: 28.89 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 7.302e-05/1.422, allocations: 15.78 kB / 1.373 GB, free: 28.89 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.264e-05/1.422, allocations: 22.05 kB / 1.374 GB, free: 28.88 MB / 0.8386 GB Notification: Performance of SimCode: time 2.3e-07/1.422, allocations: 0 / 1.374 GB, free: 28.88 MB / 0.8386 GB Notification: Performance of Templates: time 0.007918/1.43, allocations: 4.138 MB / 1.378 GB, free: 28.44 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonthsMinus.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.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