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.322/2.322, allocations: 390.5 MB / 398 MB, free: 10.93 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.001088/0.001088, allocations: 187.6 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.761/1.761, allocations: 221.5 MB / 0.7868 GB, free: 13.29 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.0009793/0.0009793, allocations: 100.5 kB / 0.9269 GB, free: 13.79 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.263e-05/2.267e-05, allocations: 8 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3415/0.3415, allocations: 143 MB / 1.212 GB, free: 39.51 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8561/1.198, allocations: 152.2 MB / 1.361 GB, free: 17.6 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002288/1.198, allocations: 71.75 kB / 1.361 GB, free: 17.6 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01454/1.213, allocations: 5.308 MB / 1.366 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.232e-06/1.213, allocations: 0 / 1.366 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.298e-05/1.213, allocations: 3.906 kB / 1.366 GB, free: 32.98 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.000672/1.213, allocations: 0.6529 MB / 1.367 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/1.213, allocations: 7.719 kB / 1.367 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.824e-05/1.213, allocations: 42.8 kB / 1.367 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002791/1.214, allocations: 265.4 kB / 1.367 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.337e-05/1.214, allocations: 11.16 kB / 1.367 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.302e-05/1.214, allocations: 22.11 kB / 1.367 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001232/1.214, allocations: 51.17 kB / 1.367 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002224/1.214, allocations: 175.6 kB / 1.367 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.295e-06/1.214, allocations: 0 / 1.367 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.67e-05/1.214, allocations: 7.312 kB / 1.367 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.499e-06/1.214, allocations: 3.75 kB / 1.367 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009368/1.215, allocations: 0.5635 MB / 1.368 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001513/1.215, allocations: 110.3 kB / 1.368 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.166e-05/1.215, allocations: 65.8 kB / 1.368 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.407e-05/1.216, allocations: 0 / 1.368 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001894/1.216, allocations: 163.1 kB / 1.368 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=16): time 1.272e-06/1.216, allocations: 3.531 kB / 1.368 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of matching and sorting (n=16): time 0.0003948/1.216, allocations: 245 kB / 1.369 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.326e-05/1.216, allocations: 66.73 kB / 1.369 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002073/1.216, allocations: 276.6 kB / 1.369 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.241e-05/1.216, allocations: 33.02 kB / 1.369 GB, free: 31.51 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.564e-05/1.216, allocations: 99.89 kB / 1.369 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.688e-05/1.217, allocations: 33.34 kB / 1.369 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.03e-05/1.217, allocations: 3.875 kB / 1.369 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.016e-05/1.217, allocations: 324.7 kB / 1.369 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001521/1.217, allocations: 95.95 kB / 1.369 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001633/1.217, allocations: 147.6 kB / 1.37 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001244/1.217, allocations: 86.92 kB / 1.37 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/1.217, allocations: 0 / 1.37 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004637/1.218, allocations: 323 kB / 1.37 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 5.407e-05/1.218, allocations: 80.89 kB / 1.37 GB, free: 30.9 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.032e-06/1.218, allocations: 0 / 1.37 GB, free: 30.9 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.556e-05/1.218, allocations: 3.875 kB / 1.37 GB, free: 30.9 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000143/1.218, allocations: 27.05 kB / 1.37 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/1.218, allocations: 0 / 1.37 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003084/1.218, allocations: 49.59 kB / 1.37 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.078e-05/1.218, allocations: 47.84 kB / 1.37 GB, free: 30.88 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.0001216/1.218, allocations: 127.5 kB / 1.37 GB, free: 30.76 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.768e-05/1.218, allocations: 25.94 kB / 1.37 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.66e-05/1.218, allocations: 30.39 kB / 1.37 GB, free: 30.74 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/1.218, allocations: 4.672 kB / 1.37 GB, free: 30.74 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/1.218, allocations: 0 / 1.37 GB, free: 30.74 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/1.218, allocations: 10.47 kB / 1.37 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005763/1.219, allocations: 0.6015 MB / 1.371 GB, free: 30.46 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/1.219, allocations: 0 / 1.371 GB, free: 30.46 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.396e-05/1.219, allocations: 7.547 kB / 1.371 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.305e-06/1.219, allocations: 0 / 1.371 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.843e-05/1.219, allocations: 17.03 kB / 1.371 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/1.219, allocations: 0 / 1.371 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/1.219, allocations: 3.875 kB / 1.371 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003082/1.219, allocations: 346 kB / 1.371 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000154/1.22, allocations: 188.7 kB / 1.371 GB, free: 30.2 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.756e-05/1.22, allocations: 20.92 kB / 1.372 GB, free: 30.19 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004076/1.22, allocations: 30.78 kB / 1.372 GB, free: 30.19 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.432e-05/1.22, allocations: 17.72 kB / 1.372 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.025e-05/1.22, allocations: 44.05 kB / 1.372 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001505/1.22, allocations: 217.4 kB / 1.372 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.61e-07/1.22, allocations: 0 / 1.372 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003273/1.221, allocations: 49.23 kB / 1.372 GB, free: 30.09 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.0001867/1.221, allocations: 122.9 kB / 1.372 GB, free: 30 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003917/1.221, allocations: 344.5 kB / 1.372 GB, free: 29.87 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/1.221, allocations: 384 / 1.372 GB, free: 29.87 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 8.276e-05/1.221, allocations: 71.12 kB / 1.372 GB, free: 29.87 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002793/1.222, allocations: 21.61 kB / 1.372 GB, free: 29.87 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004733/1.222, allocations: 307.2 kB / 1.373 GB, free: 29.74 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003182/1.222, allocations: 0.7599 MB / 1.373 GB, free: 29.04 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 6.023e-05/1.223, allocations: 15.97 kB / 1.373 GB, free: 29.04 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.075e-05/1.223, allocations: 15.22 kB / 1.373 GB, free: 29.03 MB / 0.8386 GB Notification: Performance of SimCode: time 1.733e-06/1.223, allocations: 3.906 kB / 1.373 GB, free: 29.03 MB / 0.8386 GB Notification: Performance of Templates: time 0.005899/1.229, allocations: 4.139 MB / 1.377 GB, free: 28.57 MB / 0.8386 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