Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.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.CalendarTimeMonthsMinus,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.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_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.268/2.268, allocations: 387.1 MB / 399.7 MB, free: 9.453 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.001118/0.001119, allocations: 173 kB / 492.3 MB, free: 0.5977 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.636/1.636, allocations: 221.3 MB / 0.7871 GB, free: 12.95 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.0009324/0.0009324, allocations: 87.89 kB / 0.9267 GB, free: 14.02 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.99e-05/2.992e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3176/0.3176, allocations: 142.3 MB / 1.212 GB, free: 38.49 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9818/1.3, allocations: 152.1 MB / 1.361 GB, free: 18.73 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001724/1.3, allocations: 71.17 kB / 1.361 GB, free: 18.73 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01437/1.314, allocations: 5.352 MB / 1.366 GB, free: 34.09 MB / 0.8386 GB Notification: Performance of FrontEnd: time 9.81e-07/1.314, allocations: 0 / 1.366 GB, free: 34.09 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.425e-05/1.314, allocations: 3.812 kB / 1.366 GB, free: 34.09 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.0006522/1.315, allocations: 0.6428 MB / 1.367 GB, free: 33.5 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/1.315, allocations: 7.688 kB / 1.367 GB, free: 33.5 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.872e-05/1.315, allocations: 42.19 kB / 1.367 GB, free: 33.48 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003507/1.315, allocations: 279.9 kB / 1.367 GB, free: 33.25 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.062e-05/1.315, allocations: 21.19 kB / 1.367 GB, free: 33.25 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.812e-05/1.315, allocations: 18.97 kB / 1.367 GB, free: 33.25 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002891/1.316, allocations: 171.1 kB / 1.367 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/1.316, allocations: 0 / 1.367 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.771e-05/1.316, allocations: 7.203 kB / 1.367 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.061e-06/1.316, allocations: 3.844 kB / 1.367 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001442/1.316, allocations: 63.78 kB / 1.368 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009688/1.317, allocations: 0.5931 MB / 1.368 GB, free: 32.93 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001715/1.317, allocations: 115.6 kB / 1.368 GB, free: 32.9 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.924e-05/1.317, allocations: 65.12 kB / 1.368 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.566e-05/1.317, allocations: 3.203 kB / 1.368 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002132/1.317, allocations: 173.6 kB / 1.368 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=16): time 1.473e-06/1.318, allocations: 0 / 1.368 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of matching and sorting (n=16): time 0.0004483/1.318, allocations: 256.4 kB / 1.369 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.173e-05/1.318, allocations: 62.19 kB / 1.369 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002201/1.318, allocations: 285.5 kB / 1.369 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.03e-05/1.318, allocations: 36.48 kB / 1.369 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.777e-05/1.318, allocations: 99.14 kB / 1.369 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.783e-05/1.318, allocations: 36.48 kB / 1.369 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.765e-05/1.318, allocations: 11.62 kB / 1.369 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.965e-05/1.318, allocations: 326.9 kB / 1.369 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001877/1.319, allocations: 103.2 kB / 1.37 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001969/1.319, allocations: 160.3 kB / 1.37 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001906/1.319, allocations: 158.9 kB / 1.37 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/1.319, allocations: 3.938 kB / 1.37 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005662/1.32, allocations: 426 kB / 1.37 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.729e-05/1.32, allocations: 79.08 kB / 1.37 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/1.32, allocations: 0 / 1.37 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/1.32, allocations: 3.875 kB / 1.37 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001574/1.32, allocations: 24.58 kB / 1.37 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.087e-05/1.32, allocations: 3.875 kB / 1.37 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003002/1.32, allocations: 43.66 kB / 1.37 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.308e-05/1.32, allocations: 44.3 kB / 1.37 GB, free: 31.84 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.0001157/1.32, allocations: 140.8 kB / 1.371 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.633e-05/1.32, allocations: 23.19 kB / 1.371 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.831e-05/1.321, allocations: 27.48 kB / 1.371 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.067e-06/1.321, allocations: 0 / 1.371 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/1.321, allocations: 14.59 kB / 1.371 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/1.321, allocations: 4 kB / 1.371 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006983/1.321, allocations: 0.6418 MB / 1.371 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/1.321, allocations: 0 / 1.371 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.313e-05/1.321, allocations: 6.531 kB / 1.371 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/1.321, allocations: 0 / 1.371 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.234e-05/1.321, allocations: 17.92 kB / 1.371 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/1.321, allocations: 0 / 1.371 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/1.321, allocations: 3.844 kB / 1.371 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003835/1.322, allocations: 361.5 kB / 1.372 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001788/1.322, allocations: 190.2 kB / 1.372 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.291e-05/1.322, allocations: 17.38 kB / 1.372 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003867/1.322, allocations: 29.83 kB / 1.372 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.372e-05/1.322, allocations: 10.89 kB / 1.372 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.375e-05/1.323, allocations: 45.81 kB / 1.372 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001781/1.323, allocations: 228 kB / 1.372 GB, free: 31.03 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.51e-07/1.323, allocations: 0 / 1.372 GB, free: 31.03 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002964/1.323, allocations: 53.53 kB / 1.372 GB, free: 31.03 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.0001581/1.323, allocations: 145 kB / 1.372 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004335/1.324, allocations: 353.6 kB / 1.373 GB, free: 30.8 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/1.324, allocations: 4.375 kB / 1.373 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001095/1.324, allocations: 71.02 kB / 1.373 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002788/1.324, allocations: 34.55 kB / 1.373 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000477/1.325, allocations: 313 kB / 1.373 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003052/1.325, allocations: 0.7603 MB / 1.374 GB, free: 29.96 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 5.825e-05/1.325, allocations: 11.86 kB / 1.374 GB, free: 29.96 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.366e-05/1.325, allocations: 14.45 kB / 1.374 GB, free: 29.95 MB / 0.8386 GB Notification: Performance of SimCode: time 4.51e-07/1.325, allocations: 3.875 kB / 1.374 GB, free: 29.95 MB / 0.8386 GB Notification: Performance of Templates: time 0.008403/1.333, allocations: 4.348 MB / 1.378 GB, free: 29.48 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonthsMinus.csv","../files/Buildings_9_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