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/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001254/0.001254, allocations: 111.9 kB / 16.41 MB, free: 6.492 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001336/0.001336, allocations: 183 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.457/1.457, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.604/2.604, allocations: 461.9 MB / 0.7354 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001431/0.001431, allocations: 63.89 kB / 1.055 GB, free: 7.77 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8536/0.8551, allocations: 157.4 MB / 1.208 GB, free: 13.7 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002859/0.858, allocations: 1.507 MB / 1.21 GB, free: 12.19 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001325/0.8593, allocations: 0.5462 MB / 1.21 GB, free: 11.64 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.332e-05/0.8594, allocations: 4 kB / 1.21 GB, free: 11.64 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001162/0.8596, allocations: 11.86 kB / 1.21 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001367/0.8597, allocations: 27.86 kB / 1.21 GB, free: 11.6 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009207/0.8607, allocations: 314.9 kB / 1.211 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0006661/0.8613, allocations: 0.4994 MB / 1.211 GB, free: 10.79 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 5.358e-05/0.8614, allocations: 15.97 kB / 1.211 GB, free: 10.78 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004714/0.8619, allocations: 275.6 kB / 1.211 GB, free: 10.51 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003755/0.8623, allocations: 139.7 kB / 1.212 GB, free: 10.37 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0001314/0.8624, allocations: 27.94 kB / 1.212 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001023/0.8625, allocations: 28 kB / 1.212 GB, free: 10.32 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001392/0.8626, allocations: 115.6 kB / 1.212 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.000194/0.8629, allocations: 179.1 kB / 1.212 GB, free: 10.03 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0004352/0.8633, allocations: 436.3 kB / 1.212 GB, free: 9.605 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.8633, allocations: 0 / 1.212 GB, free: 9.605 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.054e-06/0.8633, allocations: 3.938 kB / 1.212 GB, free: 9.602 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.963e-06/0.8633, allocations: 0 / 1.212 GB, free: 9.602 MB / 0.9356 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.001186/0.8645, allocations: 0.8586 MB / 1.213 GB, free: 8.652 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.8646, allocations: 12.03 kB / 1.213 GB, free: 8.641 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001148/0.8647, allocations: 48.47 kB / 1.213 GB, free: 8.594 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003278/0.865, allocations: 306.3 kB / 1.214 GB, free: 8.254 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.202e-05/0.8651, allocations: 16.38 kB / 1.214 GB, free: 8.238 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.617e-05/0.8652, allocations: 32.36 kB / 1.214 GB, free: 8.207 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001014/0.8662, allocations: 217.9 kB / 1.214 GB, free: 7.988 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.784e-06/0.8662, allocations: 192 / 1.214 GB, free: 7.988 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.94e-05/0.8662, allocations: 3.938 kB / 1.214 GB, free: 7.984 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.548e-06/0.8662, allocations: 4 kB / 1.214 GB, free: 7.98 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008123/0.8671, allocations: 103.9 kB / 1.214 GB, free: 7.879 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000416/0.8675, allocations: 389.1 kB / 1.214 GB, free: 7.449 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001093/0.8686, allocations: 178.5 kB / 1.214 GB, free: 7.266 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008004/0.8694, allocations: 112.8 kB / 1.215 GB, free: 7.152 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.202e-05/0.8694, allocations: 0 / 1.215 GB, free: 7.152 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001021/0.8705, allocations: 229.4 kB / 1.215 GB, free: 6.918 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=16): time 1.834e-06/0.8705, allocations: 0 / 1.215 GB, free: 6.918 MB / 0.9356 GB Notification: Performance of matching and sorting (n=16): time 0.002709/0.8732, allocations: 484.8 kB / 1.215 GB, free: 6.438 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.623e-05/0.8732, allocations: 63.39 kB / 1.215 GB, free: 6.363 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004098/0.8737, allocations: 405.9 kB / 1.216 GB, free: 5.957 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 7.168e-05/0.8737, allocations: 45.69 kB / 1.216 GB, free: 5.906 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 8.27e-05/0.8738, allocations: 93.39 kB / 1.216 GB, free: 5.812 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 5.214e-05/0.8739, allocations: 43.44 kB / 1.216 GB, free: 5.77 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002092/0.8741, allocations: 129.3 kB / 1.216 GB, free: 5.637 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001134/0.8742, allocations: 322.8 kB / 1.216 GB, free: 5.312 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002611/0.8745, allocations: 123.9 kB / 1.216 GB, free: 5.191 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002997/0.8748, allocations: 171.2 kB / 1.217 GB, free: 5.004 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000377/0.8752, allocations: 274.6 kB / 1.217 GB, free: 4.703 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.8752, allocations: 0 / 1.217 GB, free: 4.703 MB / 0.9356 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008082/0.876, allocations: 487.2 kB / 1.217 GB, free: 4.211 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 8.119e-05/0.8761, allocations: 95.34 kB / 1.217 GB, free: 4.105 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.8761, allocations: 7.984 kB / 1.217 GB, free: 4.098 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.115e-05/0.8761, allocations: 0 / 1.217 GB, free: 4.098 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001739/0.8763, allocations: 27.92 kB / 1.217 GB, free: 4.07 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.025e-05/0.8763, allocations: 7.938 kB / 1.217 GB, free: 4.062 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000496/0.8768, allocations: 51.8 kB / 1.218 GB, free: 4.012 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.474e-05/0.8769, allocations: 59.98 kB / 1.218 GB, free: 3.953 MB / 0.9356 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 (calendarTime2016.firstHourSampling,$PRE.calendarTime2016.firstHourSampling,calendarTime2016.firstDaySampling,$PRE.calendarTime2016.firstDaySampling,calendarTime2016.daySampleTrigger,$whenCondition1,calendarTime2016.hourSampleTrigger,$whenCondition2,calendarTime2016.epochLastMonth,$PRE.calendarTime2016.epochLastMonth,calendarTime2016.yearIndex,$PRE.calendarTime2016.yearIndex,calendarTime2016.daysSinceEpoch,$PRE.calendarTime2016.daysSinceEpoch,calendarTime2016.weekDay,$PRE.calendarTime2016.weekDay,calendarTime2016.hour,$PRE.calendarTime2016.hour,calendarTime2016.day,$PRE.calendarTime2016.day,calendarTime2016.month,$PRE.calendarTime2016.month,calendarTime2016.year,$PRE.calendarTime2016.year) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002288/0.8772, allocations: 209.6 kB / 1.218 GB, free: 3.742 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.189e-05/0.8772, allocations: 39.47 kB / 1.218 GB, free: 3.703 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.768e-05/0.8773, allocations: 39.75 kB / 1.218 GB, free: 3.664 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.628e-06/0.8773, allocations: 4 kB / 1.218 GB, free: 3.66 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.022e-06/0.8773, allocations: 0 / 1.218 GB, free: 3.66 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.8773, allocations: 3.984 kB / 1.218 GB, free: 3.656 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002253/0.8796, allocations: 0.7461 MB / 1.219 GB, free: 2.852 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.8796, allocations: 0 / 1.219 GB, free: 2.852 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.552e-05/0.8797, allocations: 4 kB / 1.219 GB, free: 2.848 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.8797, allocations: 4 kB / 1.219 GB, free: 2.844 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.508e-05/0.8797, allocations: 19.97 kB / 1.219 GB, free: 2.824 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.8797, allocations: 0 / 1.219 GB, free: 2.824 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.8797, allocations: 4 kB / 1.219 GB, free: 2.82 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001797/0.8815, allocations: 475.2 kB / 1.219 GB, free: 2.34 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002438/0.8818, allocations: 196.5 kB / 1.219 GB, free: 2.129 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001016/0.8819, allocations: 16 kB / 1.219 GB, free: 2.113 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006925/0.8826, allocations: 35.95 kB / 1.219 GB, free: 2.078 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.934e-05/0.8827, allocations: 11.98 kB / 1.219 GB, free: 2.066 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.473e-05/0.8828, allocations: 55.92 kB / 1.219 GB, free: 2.012 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0003146/0.8831, allocations: 299.1 kB / 1.22 GB, free: 1.719 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8831, allocations: 0 / 1.22 GB, free: 1.719 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003822/0.8835, allocations: 63.98 kB / 1.22 GB, free: 1.656 MB / 0.9356 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) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001607/0.8837, allocations: 117 kB / 1.22 GB, free: 1.531 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.001334/0.885, allocations: 436.6 kB / 1.22 GB, free: 1.082 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.885, allocations: 0 / 1.22 GB, free: 1.082 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0008208/0.8858, allocations: 132.2 kB / 1.22 GB, free: 0.9531 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003761/0.8862, allocations: 27.36 kB / 1.22 GB, free: 0.9297 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001575/0.8878, allocations: 0.5846 MB / 1.221 GB, free: 320 kB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003727/0.8882, allocations: 0.7784 MB / 1.222 GB, free: 15.51 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.177e-05/0.8883, allocations: 19.42 kB / 1.222 GB, free: 15.49 MB / 0.9512 GB Notification: Performance of SimCode: time 4.21e-07/0.8883, allocations: 4 kB / 1.222 GB, free: 15.48 MB / 0.9512 GB Notification: Performance of Templates: time 0.006501/0.8948, allocations: 3.729 MB / 1.225 GB, free: 11.7 MB / 0.9512 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches