Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.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.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|calendarTime2016.year|calendarTime2016.month|calendarTime2016.day|calendarTime2016.hour|calendarTime2016.minute",fileNamePrefix="Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime") translateModel(Buildings.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|calendarTime2016.year|calendarTime2016.month|calendarTime2016.day|calendarTime2016.hour|calendarTime2016.minute",fileNamePrefix="Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.337/2.337, allocations: 390.3 MB / 402.8 MB, free: 6.664 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.001125/0.001125, allocations: 172.9 kB / 496.1 MB, free: 12.86 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.542/1.542, allocations: 221.3 MB / 0.7915 GB, free: 5.336 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.0008336/0.0008334, allocations: 91.95 kB / 0.9317 GB, free: 5.648 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.348e-05/3.351e-05, allocations: 0 / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.329/0.3291, allocations: 143 MB / 1.219 GB, free: 13.5 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.031/1.36, allocations: 152.7 MB / 1.368 GB, free: 1.309 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002093/1.36, allocations: 67.09 kB / 1.368 GB, free: 1.273 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01417/1.374, allocations: 4.593 MB / 1.372 GB, free: 13.27 MB / 0.8386 GB Notification: Performance of FrontEnd: time 9.71e-07/1.374, allocations: 0 / 1.372 GB, free: 13.27 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.869e-05/1.374, allocations: 4 kB / 1.372 GB, free: 13.27 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0008201/1.375, allocations: 0.6296 MB / 1.373 GB, free: 12.58 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.223e-05/1.375, allocations: 8.031 kB / 1.373 GB, free: 12.57 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001076/1.375, allocations: 39.61 kB / 1.373 GB, free: 12.53 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004248/1.376, allocations: 257.1 kB / 1.373 GB, free: 12.25 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.157e-05/1.376, allocations: 8 kB / 1.373 GB, free: 12.24 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.063e-05/1.376, allocations: 19.3 kB / 1.373 GB, free: 12.23 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002886/1.376, allocations: 148 kB / 1.373 GB, free: 12.1 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.745e-06/1.376, allocations: 0 / 1.373 GB, free: 12.1 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.841e-05/1.376, allocations: 11.92 kB / 1.373 GB, free: 12.09 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.087e-06/1.376, allocations: 0 / 1.373 GB, free: 12.09 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001193/1.376, allocations: 53.8 kB / 1.374 GB, free: 12.05 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004106/1.377, allocations: 331.1 kB / 1.374 GB, free: 11.73 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002031/1.377, allocations: 102.8 kB / 1.374 GB, free: 11.65 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001182/1.377, allocations: 57.59 kB / 1.374 GB, free: 11.61 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.688e-05/1.377, allocations: 0 / 1.374 GB, free: 11.61 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002589/1.377, allocations: 169.6 kB / 1.374 GB, free: 11.46 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=16): time 1.412e-06/1.377, allocations: 0 / 1.374 GB, free: 11.46 MB / 0.8386 GB Notification: Performance of matching and sorting (n=16): time 0.0005398/1.378, allocations: 249 kB / 1.374 GB, free: 11.24 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.253e-05/1.378, allocations: 66.64 kB / 1.374 GB, free: 11.17 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002708/1.378, allocations: 258.3 kB / 1.375 GB, free: 10.95 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.858e-05/1.378, allocations: 33.45 kB / 1.375 GB, free: 10.91 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.573e-05/1.379, allocations: 93.02 kB / 1.375 GB, free: 10.82 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.527e-05/1.379, allocations: 34.86 kB / 1.375 GB, free: 10.8 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.839e-05/1.379, allocations: 11.88 kB / 1.375 GB, free: 10.79 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001483/1.379, allocations: 329.8 kB / 1.375 GB, free: 10.46 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001806/1.379, allocations: 85.86 kB / 1.375 GB, free: 10.41 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002173/1.379, allocations: 140.7 kB / 1.375 GB, free: 10.28 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002211/1.379, allocations: 148.4 kB / 1.376 GB, free: 10.14 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/1.379, allocations: 0 / 1.376 GB, free: 10.14 MB / 0.8386 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006571/1.38, allocations: 393.2 kB / 1.376 GB, free: 9.805 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 6.48e-05/1.38, allocations: 74.39 kB / 1.376 GB, free: 9.727 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/1.38, allocations: 0 / 1.376 GB, free: 9.727 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.567e-05/1.38, allocations: 8.188 kB / 1.376 GB, free: 9.719 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001487/1.38, allocations: 27.91 kB / 1.376 GB, free: 9.691 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.199e-05/1.38, allocations: 4 kB / 1.376 GB, free: 9.688 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003158/1.381, allocations: 43.62 kB / 1.376 GB, free: 9.648 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.444e-05/1.381, allocations: 47.72 kB / 1.376 GB, free: 9.605 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.calendarTime2016.firstHourSampling,calendarTime2016.firstHourSampling,$PRE.calendarTime2016.firstDaySampling,calendarTime2016.firstDaySampling,$whenCondition1,calendarTime2016.daySampleTrigger,$whenCondition2,calendarTime2016.hourSampleTrigger,$PRE.calendarTime2016.year,calendarTime2016.year,$PRE.calendarTime2016.month,calendarTime2016.month,$PRE.calendarTime2016.day,calendarTime2016.day,$PRE.calendarTime2016.hour,calendarTime2016.hour,$PRE.calendarTime2016.weekDay,calendarTime2016.weekDay,$PRE.calendarTime2016.daysSinceEpoch,calendarTime2016.daysSinceEpoch,$PRE.calendarTime2016.yearIndex,calendarTime2016.yearIndex,$PRE.calendarTime2016.epochLastMonth,calendarTime2016.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.0001363/1.381, allocations: 129.7 kB / 1.376 GB, free: 9.477 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.158e-05/1.381, allocations: 27.67 kB / 1.376 GB, free: 9.449 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.882e-05/1.381, allocations: 31.52 kB / 1.376 GB, free: 9.43 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/1.381, allocations: 0 / 1.376 GB, free: 9.43 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/1.381, allocations: 4 kB / 1.376 GB, free: 9.426 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/1.381, allocations: 3.984 kB / 1.376 GB, free: 9.422 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008779/1.382, allocations: 0.5886 MB / 1.377 GB, free: 8.852 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/1.382, allocations: 0 / 1.377 GB, free: 8.852 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.462e-05/1.382, allocations: 7.984 kB / 1.377 GB, free: 8.844 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/1.382, allocations: 4 kB / 1.377 GB, free: 8.84 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.873e-05/1.382, allocations: 23.61 kB / 1.377 GB, free: 8.82 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.035e-06/1.382, allocations: 3.984 kB / 1.377 GB, free: 8.816 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/1.382, allocations: 0 / 1.377 GB, free: 8.816 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004462/1.383, allocations: 354.7 kB / 1.377 GB, free: 8.492 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001878/1.383, allocations: 158.5 kB / 1.377 GB, free: 8.332 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.711e-05/1.383, allocations: 14.69 kB / 1.377 GB, free: 8.324 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003981/1.383, allocations: 35.97 kB / 1.377 GB, free: 8.289 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.021e-05/1.383, allocations: 7.984 kB / 1.377 GB, free: 8.281 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.448e-05/1.383, allocations: 43.41 kB / 1.378 GB, free: 8.242 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001839/1.384, allocations: 204.9 kB / 1.378 GB, free: 8.074 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.61e-07/1.384, allocations: 0 / 1.378 GB, free: 8.074 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003301/1.384, allocations: 59.98 kB / 1.378 GB, free: 8.02 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 (calendarTime2016.hourSampleTrigger,calendarTime2016.daySampleTrigger,$whenCondition2,$whenCondition1,calendarTime2016.year,calendarTime2016.month,calendarTime2016.day,calendarTime2016.hour,calendarTime2016.weekDay,calendarTime2016.daysSinceEpoch,calendarTime2016.yearIndex,calendarTime2016.epochLastMonth,calendarTime2016.firstHourSampling,calendarTime2016.firstDaySampling) * Number of discrete states: 9 (calendarTime2016.firstDaySampling,calendarTime2016.daysSinceEpoch,calendarTime2016.weekDay,calendarTime2016.yearIndex,calendarTime2016.year,calendarTime2016.epochLastMonth,calendarTime2016.month,calendarTime2016.firstHourSampling,calendarTime2016.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.0001806/1.384, allocations: 116.3 kB / 1.378 GB, free: 7.898 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0005041/1.385, allocations: 339.7 kB / 1.378 GB, free: 7.609 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/1.385, allocations: 0 / 1.378 GB, free: 7.609 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001255/1.385, allocations: 68.36 kB / 1.378 GB, free: 7.559 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002392/1.385, allocations: 26.64 kB / 1.378 GB, free: 7.543 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005391/1.385, allocations: 273.4 kB / 1.379 GB, free: 7.281 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003397/1.386, allocations: 0.7471 MB / 1.379 GB, free: 6.512 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 5.897e-05/1.386, allocations: 12.77 kB / 1.379 GB, free: 6.5 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.746e-05/1.386, allocations: 18.75 kB / 1.379 GB, free: 6.484 MB / 0.8386 GB Notification: Performance of SimCode: time 3.91e-07/1.386, allocations: 4 kB / 1.379 GB, free: 6.48 MB / 0.8386 GB Notification: Performance of Templates: time 0.007509/1.393, allocations: 3.947 MB / 1.383 GB, free: 2.551 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.makefile (rm -f Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.sim & ./Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Time_Examples_CalendarTime.csv","../files/Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,calendarTime2016.year,calendarTime2016.month,calendarTime2016.day,calendarTime2016.hour,calendarTime2016.minute Variables in the result:calendarTime2016.day,calendarTime2016.daySampleStart,calendarTime2016.hour,calendarTime2016.hourSampleStart,calendarTime2016.minute,calendarTime2016.month,calendarTime2016.offset,calendarTime2016.outputUnixTimeStamp,calendarTime2016.timOff,calendarTime2016.timZon,calendarTime2016.year,calendarTime2016.yearRef,calendarTime2016.zerTim,time