Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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: "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_10_Buildings_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_10_Buildings_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001103/0.001103, allocations: 90.44 kB / 15.36 MB, free: 0.7383 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.008388/0.008388, allocations: 172.5 kB / 16.26 MB, free: 6.613 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.333/1.333, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.534/2.534, allocations: 437.8 MB / 0.7121 GB, free: 6.98 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003341/0.0003342, allocations: 8 kB / 0.8729 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5858/0.5862, allocations: 153.8 MB / 1.023 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.001593/0.5878, allocations: 1.235 MB / 1.024 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001267/0.5891, allocations: 0.5793 MB / 1.025 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.903e-05/0.5892, allocations: 0 / 1.025 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 7.851e-05/0.5893, allocations: 7.922 kB / 1.025 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001056/0.5894, allocations: 23.86 kB / 1.025 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007418/0.5901, allocations: 296.7 kB / 1.025 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0004616/0.5906, allocations: 447.4 kB / 1.026 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.95e-05/0.5907, allocations: 11.98 kB / 1.026 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004734/0.5911, allocations: 311 kB / 1.026 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003062/0.5914, allocations: 159.2 kB / 1.026 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 8.311e-05/0.5915, allocations: 16 kB / 1.026 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.565e-05/0.5916, allocations: 12 kB / 1.026 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001286/0.5917, allocations: 119.6 kB / 1.026 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002126/0.592, allocations: 208.5 kB / 1.026 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003947/0.5924, allocations: 412.7 kB / 1.027 GB, free: 12 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.5924, allocations: 0 / 1.027 GB, free: 12 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.513e-06/0.5924, allocations: 0 / 1.027 GB, free: 12 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.306e-06/0.5924, allocations: 0 / 1.027 GB, free: 12 MB / 0.7794 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.001058/0.5935, allocations: 0.7575 MB / 1.028 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.5935, allocations: 8.031 kB / 1.028 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.675e-05/0.5936, allocations: 42.73 kB / 1.028 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001229/0.5937, allocations: 52.47 kB / 1.028 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003399/0.5941, allocations: 302.3 kB / 1.028 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.091e-05/0.5941, allocations: 24.3 kB / 1.028 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.064e-05/0.5942, allocations: 24.38 kB / 1.028 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001027/0.5952, allocations: 226 kB / 1.028 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-06/0.5953, allocations: 3.938 kB / 1.028 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.869e-05/0.5953, allocations: 0 / 1.028 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-06/0.5953, allocations: 4 kB / 1.028 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008144/0.5961, allocations: 107.9 kB / 1.028 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004407/0.5966, allocations: 401.1 kB / 1.029 GB, free: 9.883 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001129/0.5977, allocations: 190.4 kB / 1.029 GB, free: 9.688 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000805/0.5985, allocations: 124.7 kB / 1.029 GB, free: 9.562 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.7e-05/0.5986, allocations: 4 kB / 1.029 GB, free: 9.559 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009687/0.5996, allocations: 239.1 kB / 1.029 GB, free: 9.312 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=16): time 1.744e-06/0.5996, allocations: 0 / 1.029 GB, free: 9.312 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16): time 0.002689/0.6023, allocations: 0.5086 MB / 1.03 GB, free: 8.797 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.197e-05/0.6023, allocations: 63.34 kB / 1.03 GB, free: 8.723 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003962/0.6027, allocations: 409.8 kB / 1.03 GB, free: 8.32 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 6.458e-05/0.6028, allocations: 41.69 kB / 1.03 GB, free: 8.273 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.665e-05/0.6029, allocations: 93.44 kB / 1.03 GB, free: 8.176 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.662e-05/0.6029, allocations: 39.55 kB / 1.03 GB, free: 8.137 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.595e-05/0.603, allocations: 33.7 kB / 1.03 GB, free: 8.098 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.534e-05/0.6031, allocations: 322.8 kB / 1.031 GB, free: 7.773 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002742/0.6034, allocations: 127.9 kB / 1.031 GB, free: 7.648 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002952/0.6037, allocations: 173.9 kB / 1.031 GB, free: 7.457 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003788/0.6041, allocations: 274.8 kB / 1.031 GB, free: 7.156 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.6041, allocations: 0 / 1.031 GB, free: 7.156 MB / 0.7794 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008441/0.605, allocations: 492.7 kB / 1.032 GB, free: 6.656 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 7.843e-05/0.605, allocations: 91.31 kB / 1.032 GB, free: 6.555 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.409e-05/0.6051, allocations: 4.188 kB / 1.032 GB, free: 6.551 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.328e-05/0.6051, allocations: 7.938 kB / 1.032 GB, free: 6.543 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001616/0.6053, allocations: 27.91 kB / 1.032 GB, free: 6.516 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.697e-06/0.6053, allocations: 4 kB / 1.032 GB, free: 6.512 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005197/0.6058, allocations: 63.8 kB / 1.032 GB, free: 6.449 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.267e-05/0.6059, allocations: 63.98 kB / 1.032 GB, free: 6.387 MB / 0.7794 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.0002227/0.6061, allocations: 199.8 kB / 1.032 GB, free: 6.184 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.718e-05/0.6062, allocations: 43.45 kB / 1.032 GB, free: 6.141 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.27e-05/0.6063, allocations: 39.75 kB / 1.032 GB, free: 6.094 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.6063, allocations: 4 kB / 1.032 GB, free: 6.09 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.6063, allocations: 0 / 1.032 GB, free: 6.09 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.426e-06/0.6063, allocations: 3.984 kB / 1.032 GB, free: 6.086 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002265/0.6086, allocations: 0.7703 MB / 1.033 GB, free: 5.262 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.6086, allocations: 0 / 1.033 GB, free: 5.262 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.508e-05/0.6086, allocations: 4 kB / 1.033 GB, free: 5.258 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.501e-06/0.6086, allocations: 4 kB / 1.033 GB, free: 5.254 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.729e-05/0.6087, allocations: 23.97 kB / 1.033 GB, free: 5.23 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.6087, allocations: 0 / 1.033 GB, free: 5.23 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.91e-07/0.6087, allocations: 0 / 1.033 GB, free: 5.23 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001835/0.6105, allocations: 0.4909 MB / 1.034 GB, free: 4.723 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002337/0.6108, allocations: 200.5 kB / 1.034 GB, free: 4.508 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.12e-05/0.6108, allocations: 11.94 kB / 1.034 GB, free: 4.496 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005081/0.6114, allocations: 35.95 kB / 1.034 GB, free: 4.461 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.122e-05/0.6114, allocations: 23.92 kB / 1.034 GB, free: 4.438 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.153e-05/0.6115, allocations: 51.98 kB / 1.034 GB, free: 4.387 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0002743/0.6117, allocations: 295.1 kB / 1.034 GB, free: 4.102 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6118, allocations: 0 / 1.034 GB, free: 4.102 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003536/0.6121, allocations: 63.98 kB / 1.034 GB, free: 4.039 MB / 0.7794 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.002157/0.6143, allocations: 1.051 MB / 1.035 GB, free: 2.965 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001306/0.6156, allocations: 450.8 kB / 1.036 GB, free: 2.5 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.6156, allocations: 0 / 1.036 GB, free: 2.5 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0008148/0.6164, allocations: 129.3 kB / 1.036 GB, free: 2.375 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003865/0.6168, allocations: 29.53 kB / 1.036 GB, free: 2.344 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004167/0.621, allocations: 2.9 MB / 1.039 GB, free: 15.31 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003195/0.6213, allocations: 0.7748 MB / 1.039 GB, free: 14.51 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 6.194e-05/0.6214, allocations: 9.25 kB / 1.039 GB, free: 14.5 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.69e-05/0.6215, allocations: 27.42 kB / 1.039 GB, free: 14.48 MB / 0.795 GB Notification: Performance of SimCode: time 2.71e-07/0.6215, allocations: 0 / 1.039 GB, free: 14.48 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01683/0.6383, allocations: 6.003 MB / 1.045 GB, free: 8.484 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002115/0.6386, allocations: 187.9 kB / 1.045 GB, free: 8.234 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.845/2.483, allocations: 4 kB / 1.045 GB, free: 8.23 MB / 0.795 GB (rm -f Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Time_Examples_CalendarTime_fmu --startTime=0 --stopTime=1e+08 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Time_Examples_CalendarTime.fmu > Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1)