Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.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.CalendarTimeMonths,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.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_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.42/2.42, allocations: 393.5 MB / 408.4 MB, free: 11.04 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.001156/0.001156, allocations: 186.2 kB / 0.4902 GB, free: 2.297 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.538/1.538, allocations: 223.2 MB / 0.7992 GB, free: 15.67 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.0009869/0.0009869, allocations: 106.8 kB / 0.9396 GB, free: 2.848 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003835/0.0003833, allocations: 15.75 kB / 1.09 GB, free: 212.8 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2658/0.2662, allocations: 143 MB / 1.229 GB, free: 85.43 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1974/0.4636, allocations: 152.9 MB / 1.379 GB, free: 12.28 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000268/0.464, allocations: 71.95 kB / 1.379 GB, free: 12.21 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.01606/0.48, allocations: 5.349 MB / 1.384 GB, free: 6.855 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.563e-06/0.4801, allocations: 0 / 1.384 GB, free: 6.855 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.621e-05/0.4801, allocations: 4 kB / 1.384 GB, free: 6.852 MB / 0.8855 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.00094/0.4811, allocations: 0.6881 MB / 1.385 GB, free: 6.074 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.935e-05/0.4811, allocations: 12.52 kB / 1.385 GB, free: 6.062 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001073/0.4812, allocations: 39.66 kB / 1.385 GB, free: 6.023 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004086/0.4817, allocations: 279.1 kB / 1.385 GB, free: 5.711 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.331e-05/0.4817, allocations: 12 kB / 1.385 GB, free: 5.699 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.749e-05/0.4818, allocations: 23.98 kB / 1.385 GB, free: 5.676 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009766/0.4828, allocations: 230.4 kB / 1.385 GB, free: 5.445 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.824e-06/0.4828, allocations: 0 / 1.385 GB, free: 5.445 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.117e-05/0.4828, allocations: 7.984 kB / 1.385 GB, free: 5.438 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/0.4828, allocations: 4 kB / 1.385 GB, free: 5.434 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007572/0.4836, allocations: 123.9 kB / 1.385 GB, free: 5.312 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001251/0.4849, allocations: 0.598 MB / 1.386 GB, free: 4.664 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00103/0.4859, allocations: 190.5 kB / 1.386 GB, free: 4.469 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.885e-05/0.4859, allocations: 4 kB / 1.386 GB, free: 4.465 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009048/0.4869, allocations: 231.1 kB / 1.386 GB, free: 4.227 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=16): time 1.583e-06/0.4869, allocations: 3.938 kB / 1.386 GB, free: 4.223 MB / 0.8855 GB Notification: Performance of matching and sorting (n=16): time 0.002491/0.4894, allocations: 485 kB / 1.387 GB, free: 3.742 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.032e-05/0.4894, allocations: 59.41 kB / 1.387 GB, free: 3.672 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003382/0.4898, allocations: 291.5 kB / 1.387 GB, free: 3.383 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 5.619e-05/0.4898, allocations: 37.7 kB / 1.387 GB, free: 3.34 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 8.473e-05/0.4899, allocations: 101 kB / 1.387 GB, free: 3.238 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 4.291e-05/0.49, allocations: 35.56 kB / 1.387 GB, free: 3.203 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.401e-05/0.49, allocations: 23.86 kB / 1.387 GB, free: 3.18 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001328/0.4902, allocations: 322.8 kB / 1.388 GB, free: 2.855 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002637/0.4904, allocations: 104 kB / 1.388 GB, free: 2.754 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000284/0.4907, allocations: 165.9 kB / 1.388 GB, free: 2.57 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002682/0.491, allocations: 160.2 kB / 1.388 GB, free: 2.402 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.491, allocations: 0 / 1.388 GB, free: 2.402 MB / 0.8855 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007642/0.4918, allocations: 437.4 kB / 1.388 GB, free: 1.957 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 7.625e-05/0.4919, allocations: 79.39 kB / 1.388 GB, free: 1.867 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.4919, allocations: 0 / 1.388 GB, free: 1.867 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.98e-05/0.4919, allocations: 4.188 kB / 1.388 GB, free: 1.863 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001638/0.4921, allocations: 19.98 kB / 1.388 GB, free: 1.844 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.205e-05/0.4921, allocations: 7.938 kB / 1.388 GB, free: 1.836 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003258/0.4924, allocations: 35.97 kB / 1.389 GB, free: 1.801 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.603e-05/0.4925, allocations: 43.98 kB / 1.389 GB, free: 1.758 MB / 0.8855 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 () * Number of clocked 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.0002152/0.4927, allocations: 189.2 kB / 1.389 GB, free: 1.566 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.65e-05/0.4928, allocations: 35.56 kB / 1.389 GB, free: 1.531 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.466e-05/0.4929, allocations: 30.36 kB / 1.389 GB, free: 1.496 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.161e-06/0.4929, allocations: 0 / 1.389 GB, free: 1.496 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.443e-06/0.4929, allocations: 3.938 kB / 1.389 GB, free: 1.492 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.087e-06/0.4929, allocations: 0 / 1.389 GB, free: 1.492 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002077/0.495, allocations: 0.7547 MB / 1.39 GB, free: 0.6836 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.495, allocations: 4 kB / 1.39 GB, free: 0.6797 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.687e-05/0.495, allocations: 7.938 kB / 1.39 GB, free: 0.6719 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.913e-06/0.495, allocations: 8 kB / 1.39 GB, free: 0.6641 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.88e-05/0.4951, allocations: 19.97 kB / 1.39 GB, free: 0.6445 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.4951, allocations: 0 / 1.39 GB, free: 0.6445 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.4951, allocations: 0 / 1.39 GB, free: 0.6445 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001634/0.4967, allocations: 474.9 kB / 1.39 GB, free: 168 kB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002462/0.497, allocations: 192.8 kB / 1.39 GB, free: 15.95 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.424e-05/0.4971, allocations: 12 kB / 1.39 GB, free: 15.94 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000413/0.4975, allocations: 35.97 kB / 1.39 GB, free: 15.91 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.685e-05/0.4975, allocations: 7.984 kB / 1.39 GB, free: 15.9 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.623e-05/0.4976, allocations: 39.98 kB / 1.39 GB, free: 15.86 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.000213/0.4978, allocations: 231 kB / 1.391 GB, free: 15.63 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.41e-07/0.4978, allocations: 4 kB / 1.391 GB, free: 15.63 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0003415/0.4982, allocations: 63.88 kB / 1.391 GB, free: 15.57 MB / 0.9011 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) * Number of clocked states: 0 () * 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.0002182/0.4984, allocations: 137.4 kB / 1.391 GB, free: 15.43 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.001167/0.4996, allocations: 424.7 kB / 1.391 GB, free: 14.99 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.4996, allocations: 0 / 1.391 GB, free: 14.99 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0007277/0.5003, allocations: 132.2 kB / 1.391 GB, free: 14.86 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002919/0.5006, allocations: 38.59 kB / 1.391 GB, free: 14.83 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001371/0.502, allocations: 0.5464 MB / 1.392 GB, free: 14.25 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003126/0.5023, allocations: 0.7594 MB / 1.393 GB, free: 13.47 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 6.656e-05/0.5024, allocations: 13.42 kB / 1.393 GB, free: 13.46 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.711e-05/0.5025, allocations: 11.44 kB / 1.393 GB, free: 13.45 MB / 0.9011 GB Notification: Performance of SimCode: time 1.563e-06/0.5025, allocations: 8 kB / 1.393 GB, free: 13.44 MB / 0.9011 GB Notification: Performance of Templates: time 0.007482/0.51, allocations: 4.335 MB / 1.397 GB, free: 9.117 MB / 0.9011 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonths.csv","../files/Buildings_latest_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