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.304/2.304, allocations: 387.1 MB / 399.7 MB, free: 9.488 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.001555/0.001555, allocations: 177 kB / 492.3 MB, free: 0.6055 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.481/1.481, allocations: 221.3 MB / 0.7871 GB, free: 12.88 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.0009075/0.0009075, allocations: 90.81 kB / 0.9267 GB, free: 13.95 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.154e-05/3.16e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3246/0.3246, allocations: 142.3 MB / 1.212 GB, free: 38.52 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.149/1.474, allocations: 151.9 MB / 1.361 GB, free: 19.15 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003132/1.474, allocations: 68.03 kB / 1.361 GB, free: 19.15 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.022/1.496, allocations: 4.598 MB / 1.365 GB, free: 34.56 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.623e-06/1.496, allocations: 0 / 1.365 GB, free: 34.56 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.754e-05/1.496, allocations: 3.625 kB / 1.365 GB, free: 34.56 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.0009381/1.497, allocations: 0.6292 MB / 1.366 GB, free: 33.96 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 6.391e-05/1.497, allocations: 7.812 kB / 1.366 GB, free: 33.96 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001424/1.498, allocations: 34.75 kB / 1.366 GB, free: 33.95 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004678/1.498, allocations: 250.9 kB / 1.366 GB, free: 33.73 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.845e-05/1.498, allocations: 14.38 kB / 1.366 GB, free: 33.73 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000107/1.498, allocations: 18.75 kB / 1.366 GB, free: 33.73 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004339/1.499, allocations: 150.3 kB / 1.366 GB, free: 33.7 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.249e-05/1.499, allocations: 3.984 kB / 1.366 GB, free: 33.69 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.736e-05/1.499, allocations: 0 / 1.366 GB, free: 33.69 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/1.499, allocations: 3.812 kB / 1.366 GB, free: 33.69 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001828/1.499, allocations: 50.44 kB / 1.366 GB, free: 33.69 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005242/1.5, allocations: 335.8 kB / 1.367 GB, free: 33.49 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002976/1.5, allocations: 100.8 kB / 1.367 GB, free: 33.47 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001741/1.5, allocations: 56.52 kB / 1.367 GB, free: 33.46 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.935e-05/1.5, allocations: 7.109 kB / 1.367 GB, free: 33.46 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003537/1.5, allocations: 166.9 kB / 1.367 GB, free: 33.41 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=16): time 2.454e-06/1.501, allocations: 0 / 1.367 GB, free: 33.41 MB / 0.8386 GB Notification: Performance of matching and sorting (n=16): time 0.0007043/1.501, allocations: 250.9 kB / 1.367 GB, free: 33.36 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.33e-05/1.501, allocations: 61.2 kB / 1.367 GB, free: 33.29 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003306/1.502, allocations: 251.9 kB / 1.368 GB, free: 33.19 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 6.279e-05/1.502, allocations: 40.19 kB / 1.368 GB, free: 33.16 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.447e-05/1.502, allocations: 92.45 kB / 1.368 GB, free: 33.08 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 5.08e-05/1.502, allocations: 36.08 kB / 1.368 GB, free: 33.06 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.147e-05/1.502, allocations: 10.41 kB / 1.368 GB, free: 33.06 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001131/1.502, allocations: 321.5 kB / 1.368 GB, free: 32.74 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002763/1.502, allocations: 90.91 kB / 1.368 GB, free: 32.74 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003188/1.503, allocations: 136.6 kB / 1.368 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002965/1.503, allocations: 151.3 kB / 1.368 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/1.503, allocations: 0 / 1.368 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008993/1.504, allocations: 395.2 kB / 1.369 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 8.828e-05/1.504, allocations: 79.75 kB / 1.369 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/1.504, allocations: 3.812 kB / 1.369 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.078e-05/1.504, allocations: 12.06 kB / 1.369 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002529/1.504, allocations: 16.94 kB / 1.369 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.477e-05/1.504, allocations: 7.75 kB / 1.369 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004695/1.505, allocations: 47.3 kB / 1.369 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001283/1.505, allocations: 41.58 kB / 1.369 GB, free: 32.41 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.0001797/1.505, allocations: 126.5 kB / 1.369 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.728e-05/1.505, allocations: 27.31 kB / 1.369 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.294e-05/1.505, allocations: 31.64 kB / 1.369 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/1.505, allocations: 3.812 kB / 1.369 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.338e-06/1.505, allocations: 3.328 kB / 1.369 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/1.505, allocations: 3.938 kB / 1.369 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001231/1.507, allocations: 0.5899 MB / 1.37 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/1.507, allocations: 0 / 1.37 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.546e-05/1.507, allocations: 6.328 kB / 1.37 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.462e-06/1.507, allocations: 7.906 kB / 1.37 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.034e-05/1.507, allocations: 16.78 kB / 1.37 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/1.507, allocations: 0 / 1.37 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/1.507, allocations: 0 / 1.37 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006871/1.508, allocations: 352.7 kB / 1.37 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002834/1.508, allocations: 167.3 kB / 1.37 GB, free: 31.69 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000106/1.508, allocations: 6.625 kB / 1.37 GB, free: 31.69 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006672/1.509, allocations: 39.36 kB / 1.37 GB, free: 31.69 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.131e-05/1.509, allocations: 10.8 kB / 1.37 GB, free: 31.69 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.152e-05/1.509, allocations: 41.22 kB / 1.37 GB, free: 31.69 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0003103/1.509, allocations: 210.3 kB / 1.371 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of sort global known variables: time 6.81e-07/1.509, allocations: 0 / 1.371 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0006334/1.51, allocations: 57.78 kB / 1.371 GB, free: 31.6 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.0002268/1.51, allocations: 123.6 kB / 1.371 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0008371/1.511, allocations: 339.5 kB / 1.371 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/1.511, allocations: 0 / 1.371 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001921/1.511, allocations: 67.48 kB / 1.371 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003735/1.512, allocations: 20.5 kB / 1.371 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007734/1.512, allocations: 282.3 kB / 1.371 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004684/1.513, allocations: 0.7461 MB / 1.372 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001218/1.513, allocations: 11.31 kB / 1.372 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.634e-05/1.513, allocations: 18.33 kB / 1.372 GB, free: 30.53 MB / 0.8386 GB Notification: Performance of SimCode: time 8.31e-07/1.513, allocations: 4 kB / 1.372 GB, free: 30.53 MB / 0.8386 GB Notification: Performance of Templates: time 0.0114/1.524, allocations: 3.952 MB / 1.376 GB, free: 30.06 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