Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.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.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_9_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_9_Buildings.Utilities.Time.Examples.CalendarTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.034/2.034, allocations: 387.4 MB / 394.9 MB, free: 13.36 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.001039/0.001039, allocations: 176.8 kB / 487.4 MB, free: 5.059 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.371/1.371, allocations: 221.5 MB / 0.7824 GB, free: 0.9492 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008418/0.0008418, allocations: 95.81 kB / 0.9219 GB, free: 2.195 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.806e-05/1.807e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2612/0.2612, allocations: 142.4 MB / 1.206 GB, free: 43.95 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.891/1.152, allocations: 151.2 MB / 1.354 GB, free: 18.22 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002965/1.153, allocations: 69.02 kB / 1.354 GB, free: 18.22 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01476/1.167, allocations: 4.568 MB / 1.358 GB, free: 33.65 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.583e-06/1.167, allocations: 0 / 1.358 GB, free: 33.65 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.5e-05/1.168, allocations: 7.844 kB / 1.358 GB, free: 33.65 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.000718/1.168, allocations: 0.6266 MB / 1.359 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.95e-05/1.168, allocations: 10 kB / 1.359 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.51e-05/1.168, allocations: 34.56 kB / 1.359 GB, free: 33.04 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002944/1.169, allocations: 247.6 kB / 1.359 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.307e-05/1.169, allocations: 5.438 kB / 1.359 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.132e-05/1.169, allocations: 20.69 kB / 1.359 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001231/1.169, allocations: 44.66 kB / 1.359 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002237/1.169, allocations: 152.7 kB / 1.359 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.856e-06/1.169, allocations: 3.938 kB / 1.359 GB, free: 32.77 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.768e-05/1.169, allocations: 1.5 kB / 1.359 GB, free: 32.77 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/1.169, allocations: 3.844 kB / 1.359 GB, free: 32.77 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003288/1.17, allocations: 308.4 kB / 1.36 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001525/1.17, allocations: 94.92 kB / 1.36 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.417e-05/1.17, allocations: 56.25 kB / 1.36 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.828e-05/1.17, allocations: 7.844 kB / 1.36 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002078/1.17, allocations: 150.9 kB / 1.36 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=16): time 1.352e-06/1.17, allocations: 0 / 1.36 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of matching and sorting (n=16): time 0.0004696/1.171, allocations: 248.8 kB / 1.36 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.25e-05/1.171, allocations: 63.69 kB / 1.36 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002224/1.171, allocations: 239.9 kB / 1.36 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.951e-05/1.171, allocations: 34.81 kB / 1.36 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.294e-05/1.171, allocations: 90.59 kB / 1.36 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.79e-05/1.171, allocations: 35.86 kB / 1.361 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.003e-05/1.171, allocations: 5.344 kB / 1.361 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.000105/1.171, allocations: 324.9 kB / 1.361 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00014/1.171, allocations: 74.92 kB / 1.361 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001648/1.171, allocations: 132.3 kB / 1.361 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001214/1.172, allocations: 76.69 kB / 1.361 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/1.172, allocations: 0 / 1.361 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004612/1.172, allocations: 296.1 kB / 1.361 GB, free: 31.74 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 5.758e-05/1.172, allocations: 71.45 kB / 1.361 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/1.172, allocations: 0 / 1.361 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.183e-05/1.172, allocations: 13.45 kB / 1.361 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001569/1.172, allocations: 23.12 kB / 1.361 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.508e-06/1.172, allocations: 3.844 kB / 1.361 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003024/1.173, allocations: 38.05 kB / 1.362 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.168e-05/1.173, allocations: 46.52 kB / 1.362 GB, free: 31.66 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.0001398/1.173, allocations: 125 kB / 1.362 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.62e-05/1.173, allocations: 22.53 kB / 1.362 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.896e-05/1.173, allocations: 27.94 kB / 1.362 GB, free: 31.53 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/1.173, allocations: 7.938 kB / 1.362 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/1.173, allocations: 1.359 kB / 1.362 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/1.173, allocations: 0 / 1.362 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006559/1.174, allocations: 0.5576 MB / 1.362 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/1.174, allocations: 5.781 kB / 1.362 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.278e-05/1.174, allocations: 3.875 kB / 1.362 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/1.174, allocations: 0 / 1.362 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.177e-05/1.174, allocations: 19.44 kB / 1.362 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/1.174, allocations: 7.984 kB / 1.362 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/1.174, allocations: 0 / 1.362 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003405/1.174, allocations: 344.8 kB / 1.363 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001552/1.174, allocations: 166 kB / 1.363 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.122e-05/1.174, allocations: 12.77 kB / 1.363 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003833/1.175, allocations: 33.91 kB / 1.363 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.978e-05/1.175, allocations: 12.95 kB / 1.363 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.576e-05/1.175, allocations: 40.61 kB / 1.363 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001592/1.175, allocations: 196.1 kB / 1.363 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.6e-07/1.175, allocations: 0 / 1.363 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003007/1.175, allocations: 48.64 kB / 1.363 GB, free: 30.88 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.0001644/1.176, allocations: 134.7 kB / 1.363 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003845/1.176, allocations: 315.5 kB / 1.364 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/1.176, allocations: 0 / 1.364 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 8.797e-05/1.176, allocations: 65.03 kB / 1.364 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002425/1.176, allocations: 18.14 kB / 1.364 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004585/1.177, allocations: 272.7 kB / 1.364 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003366/1.177, allocations: 0.7455 MB / 1.365 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 5.638e-05/1.177, allocations: 14.91 kB / 1.365 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.447e-05/1.177, allocations: 18 kB / 1.365 GB, free: 29.81 MB / 0.8386 GB Notification: Performance of SimCode: time 2.3e-07/1.177, allocations: 0 / 1.365 GB, free: 29.81 MB / 0.8386 GB Notification: Performance of Templates: time 0.005928/1.183, allocations: 3.796 MB / 1.368 GB, free: 29.34 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.makefile (rm -f Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.sim & ./Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Time_Examples_CalendarTime.csv","../files/Buildings_9_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