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.343/2.343, allocations: 390.3 MB / 405.3 MB, free: 13.46 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.001099/0.0011, allocations: 180 kB / 498.1 MB, free: 5.73 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.49/1.49, allocations: 223.2 MB / 0.7948 GB, free: 18.77 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.001258/0.001258, allocations: 102.4 kB / 0.9346 GB, free: 7.117 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004075/0.0004081, allocations: 16.22 kB / 1.084 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3035/0.3039, allocations: 142.3 MB / 1.223 GB, free: 89.52 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1949/0.4989, allocations: 152.2 MB / 1.372 GB, free: 1.121 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003002/0.4992, allocations: 75.89 kB / 1.372 GB, free: 1.047 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01634/0.5156, allocations: 5.361 MB / 1.377 GB, free: 11.68 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.263e-06/0.5156, allocations: 0 / 1.377 GB, free: 11.68 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.431e-05/0.5156, allocations: 8 kB / 1.377 GB, free: 11.67 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.0009602/0.5166, allocations: 0.6919 MB / 1.378 GB, free: 10.89 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.5167, allocations: 8.031 kB / 1.378 GB, free: 10.89 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001081/0.5168, allocations: 43.56 kB / 1.378 GB, free: 10.84 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004143/0.5172, allocations: 263.3 kB / 1.378 GB, free: 10.55 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.242e-05/0.5173, allocations: 12 kB / 1.378 GB, free: 10.54 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.017e-05/0.5173, allocations: 23.98 kB / 1.378 GB, free: 10.51 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009504/0.5183, allocations: 234.6 kB / 1.378 GB, free: 10.28 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/0.5183, allocations: 11.91 kB / 1.378 GB, free: 10.27 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.817e-05/0.5183, allocations: 4 kB / 1.378 GB, free: 10.26 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.059e-06/0.5184, allocations: 0 / 1.378 GB, free: 10.26 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007362/0.5191, allocations: 119.9 kB / 1.378 GB, free: 10.14 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001232/0.5203, allocations: 0.598 MB / 1.379 GB, free: 9.496 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001024/0.5214, allocations: 194.4 kB / 1.379 GB, free: 9.297 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.68e-05/0.5214, allocations: 3.984 kB / 1.379 GB, free: 9.293 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008744/0.5223, allocations: 227.2 kB / 1.379 GB, free: 9.059 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=16): time 1.763e-06/0.5223, allocations: 0 / 1.379 GB, free: 9.059 MB / 0.8855 GB Notification: Performance of matching and sorting (n=16): time 0.002432/0.5247, allocations: 491.4 kB / 1.38 GB, free: 8.574 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.506e-05/0.5248, allocations: 63.34 kB / 1.38 GB, free: 8.5 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003308/0.5252, allocations: 287.5 kB / 1.38 GB, free: 8.215 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 5.903e-05/0.5252, allocations: 41.7 kB / 1.38 GB, free: 8.168 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 8.842e-05/0.5253, allocations: 101 kB / 1.38 GB, free: 8.066 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 3.957e-05/0.5254, allocations: 39.55 kB / 1.38 GB, free: 8.027 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.303e-05/0.5254, allocations: 7.984 kB / 1.38 GB, free: 8.02 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001417/0.5255, allocations: 326.8 kB / 1.38 GB, free: 7.691 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002555/0.5258, allocations: 99.95 kB / 1.381 GB, free: 7.594 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002866/0.5261, allocations: 166.9 kB / 1.381 GB, free: 7.41 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000282/0.5264, allocations: 167.8 kB / 1.381 GB, free: 7.234 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.898e-06/0.5264, allocations: 0 / 1.381 GB, free: 7.234 MB / 0.8855 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007957/0.5272, allocations: 437.2 kB / 1.381 GB, free: 6.789 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 8.998e-05/0.5273, allocations: 76.67 kB / 1.381 GB, free: 6.703 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.5273, allocations: 7.938 kB / 1.381 GB, free: 6.695 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.761e-05/0.5274, allocations: 4 kB / 1.381 GB, free: 6.691 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000164/0.5275, allocations: 27.92 kB / 1.381 GB, free: 6.664 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/0.5275, allocations: 3.984 kB / 1.381 GB, free: 6.66 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000337/0.5279, allocations: 39.89 kB / 1.381 GB, free: 6.621 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.486e-05/0.528, allocations: 35.98 kB / 1.382 GB, free: 6.586 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.0002439/0.5282, allocations: 201.2 kB / 1.382 GB, free: 6.383 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.227e-05/0.5283, allocations: 23.72 kB / 1.382 GB, free: 6.359 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.346e-05/0.5283, allocations: 30.36 kB / 1.382 GB, free: 6.324 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.5284, allocations: 0 / 1.382 GB, free: 6.324 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.5284, allocations: 0 / 1.382 GB, free: 6.324 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.5284, allocations: 0 / 1.382 GB, free: 6.324 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002124/0.5305, allocations: 0.7596 MB / 1.382 GB, free: 5.508 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.5305, allocations: 4 kB / 1.382 GB, free: 5.504 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.689e-05/0.5306, allocations: 4 kB / 1.382 GB, free: 5.5 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.043e-06/0.5306, allocations: 7.984 kB / 1.383 GB, free: 5.492 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.577e-05/0.5306, allocations: 15.98 kB / 1.383 GB, free: 5.477 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.345e-06/0.5306, allocations: 0 / 1.383 GB, free: 5.477 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.5306, allocations: 0 / 1.383 GB, free: 5.477 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00167/0.5323, allocations: 481 kB / 1.383 GB, free: 4.992 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002828/0.5326, allocations: 188.6 kB / 1.383 GB, free: 4.789 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.688e-05/0.5327, allocations: 20 kB / 1.383 GB, free: 4.77 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004147/0.5331, allocations: 31.91 kB / 1.383 GB, free: 4.738 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.478e-05/0.5332, allocations: 7.984 kB / 1.383 GB, free: 4.73 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.968e-05/0.5332, allocations: 47.97 kB / 1.383 GB, free: 4.684 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0002362/0.5335, allocations: 227 kB / 1.383 GB, free: 4.457 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.11e-07/0.5335, allocations: 0 / 1.383 GB, free: 4.457 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0004303/0.5339, allocations: 60.25 kB / 1.384 GB, free: 4.398 MB / 0.8855 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.0002703/0.5342, allocations: 139.2 kB / 1.384 GB, free: 4.254 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.00132/0.5355, allocations: 426.5 kB / 1.384 GB, free: 3.812 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.5355, allocations: 3.938 kB / 1.384 GB, free: 3.809 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.000749/0.5363, allocations: 132.3 kB / 1.384 GB, free: 3.68 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003382/0.5366, allocations: 28.59 kB / 1.384 GB, free: 3.652 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001439/0.5381, allocations: 0.5424 MB / 1.385 GB, free: 3.082 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000366/0.5385, allocations: 0.7555 MB / 1.385 GB, free: 2.301 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 7.872e-05/0.5386, allocations: 17.41 kB / 1.386 GB, free: 2.285 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.933e-05/0.5386, allocations: 19.44 kB / 1.386 GB, free: 2.266 MB / 0.8855 GB Notification: Performance of SimCode: time 5.01e-07/0.5386, allocations: 0 / 1.386 GB, free: 2.266 MB / 0.8855 GB Notification: Performance of Templates: time 0.008035/0.5466, allocations: 4.337 MB / 1.39 GB, free: 13.95 MB / 0.9011 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