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/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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_9_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.005528/0.005528, allocations: 100.8 kB / 15.73 MB, free: 6.062 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.001232/0.001232, allocations: 195.7 kB / 16.68 MB, free: 5.977 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.285/1.285, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.063/2.063, allocations: 390.3 MB / 0.6648 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001094/0.001094, allocations: 59.91 kB / 0.9504 GB, free: 8.191 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.642/0.6431, allocations: 140.4 MB / 1.087 GB, free: 5.277 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.001814/0.6449, allocations: 1.517 MB / 1.089 GB, free: 4.223 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0009577/0.6459, allocations: 0.5471 MB / 1.089 GB, free: 3.863 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.099e-05/0.6459, allocations: 0 / 1.089 GB, free: 3.863 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 7.625e-05/0.646, allocations: 10.53 kB / 1.089 GB, free: 3.855 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.479e-05/0.6461, allocations: 26.11 kB / 1.089 GB, free: 3.844 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000595/0.6467, allocations: 307.8 kB / 1.09 GB, free: 3.695 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0004171/0.6471, allocations: 0.5079 MB / 1.09 GB, free: 3.492 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.363e-05/0.6472, allocations: 8.984 kB / 1.09 GB, free: 3.488 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002821/0.6475, allocations: 272.8 kB / 1.091 GB, free: 3.41 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002199/0.6477, allocations: 140.1 kB / 1.091 GB, free: 3.363 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 6.715e-05/0.6478, allocations: 26.56 kB / 1.091 GB, free: 3.363 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 6.531e-05/0.6478, allocations: 26.25 kB / 1.091 GB, free: 3.363 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.000118/0.648, allocations: 119.3 kB / 1.091 GB, free: 3.324 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001632/0.6481, allocations: 184.8 kB / 1.091 GB, free: 3.219 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003603/0.6485, allocations: 420.6 kB / 1.091 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.6485, allocations: 4 kB / 1.091 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.483e-06/0.6485, allocations: 0.7969 kB / 1.091 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.49e-06/0.6485, allocations: 0 / 1.091 GB, free: 3.062 MB / 0.8575 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.0009328/0.6495, allocations: 0.873 MB / 1.092 GB, free: 2.316 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.052e-05/0.6495, allocations: 10.14 kB / 1.092 GB, free: 2.316 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.153e-05/0.6495, allocations: 39.61 kB / 1.092 GB, free: 2.273 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001012/0.6496, allocations: 50.41 kB / 1.092 GB, free: 2.254 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003084/0.65, allocations: 305 kB / 1.093 GB, free: 1.988 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.344e-05/0.65, allocations: 22.33 kB / 1.093 GB, free: 1.98 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.095e-05/0.6501, allocations: 28.73 kB / 1.093 GB, free: 1.977 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009509/0.6511, allocations: 208.5 kB / 1.093 GB, free: 1.922 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.6511, allocations: 7.938 kB / 1.093 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.742e-05/0.6511, allocations: 5.984 kB / 1.093 GB, free: 1.91 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.6511, allocations: 2.531 kB / 1.093 GB, free: 1.91 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007612/0.6519, allocations: 107.2 kB / 1.093 GB, free: 1.891 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003596/0.6522, allocations: 391 kB / 1.093 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00103/0.6533, allocations: 180.5 kB / 1.094 GB, free: 1.566 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007499/0.654, allocations: 108 kB / 1.094 GB, free: 1.543 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.056e-05/0.6541, allocations: 3.047 kB / 1.094 GB, free: 1.543 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008922/0.655, allocations: 227.2 kB / 1.094 GB, free: 1.457 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=16): time 1.463e-06/0.655, allocations: 0 / 1.094 GB, free: 1.457 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16): time 0.002488/0.6575, allocations: 485.4 kB / 1.094 GB, free: 1.348 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.835e-05/0.6575, allocations: 61.64 kB / 1.094 GB, free: 1.281 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003475/0.6579, allocations: 407.6 kB / 1.095 GB, free: 1.09 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.989e-05/0.6579, allocations: 43.8 kB / 1.095 GB, free: 1.051 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.265e-05/0.658, allocations: 95.47 kB / 1.095 GB, free: 0.9648 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.203e-05/0.658, allocations: 40.94 kB / 1.095 GB, free: 0.9336 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001732/0.6582, allocations: 130.9 kB / 1.095 GB, free: 0.875 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 3.511e-05/0.6582, allocations: 321.4 kB / 1.095 GB, free: 0.5586 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002472/0.6585, allocations: 116.9 kB / 1.096 GB, free: 0.5273 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002587/0.6587, allocations: 177.3 kB / 1.096 GB, free: 436 kB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000298/0.6591, allocations: 274.2 kB / 1.096 GB, free: 236 kB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.6591, allocations: 0 / 1.096 GB, free: 236 kB / 0.8575 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006941/0.6598, allocations: 495.3 kB / 1.096 GB, free: 16 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 9.716e-05/0.6599, allocations: 91.56 kB / 1.097 GB, free: 15.94 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.6599, allocations: 2.125 kB / 1.097 GB, free: 15.94 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.237e-05/0.6599, allocations: 3.5 kB / 1.097 GB, free: 15.94 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001423/0.66, allocations: 23.41 kB / 1.097 GB, free: 15.93 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.062e-06/0.6601, allocations: 6.812 kB / 1.097 GB, free: 15.93 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004687/0.6605, allocations: 54.8 kB / 1.097 GB, free: 15.92 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.987e-05/0.6606, allocations: 66.72 kB / 1.097 GB, free: 15.91 MB / 0.8731 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.0001933/0.6608, allocations: 192 kB / 1.097 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.783e-05/0.6609, allocations: 44.78 kB / 1.097 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.81e-05/0.6609, allocations: 42.28 kB / 1.097 GB, free: 15.72 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.661, allocations: 2.938 kB / 1.097 GB, free: 15.72 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.661, allocations: 0 / 1.097 GB, free: 15.72 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.661, allocations: 1.516 kB / 1.097 GB, free: 15.72 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00216/0.6631, allocations: 0.7444 MB / 1.098 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.6631, allocations: 0 / 1.098 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.665e-05/0.6632, allocations: 12.23 kB / 1.098 GB, free: 15.31 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.6632, allocations: 5.094 kB / 1.098 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.43e-05/0.6632, allocations: 19.45 kB / 1.098 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.6632, allocations: 0.9062 kB / 1.098 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.6633, allocations: 4 kB / 1.098 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001706/0.665, allocations: 475.2 kB / 1.098 GB, free: 15.1 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002638/0.6652, allocations: 204.9 kB / 1.098 GB, free: 14.96 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.777e-05/0.6653, allocations: 10.31 kB / 1.098 GB, free: 14.96 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004708/0.6658, allocations: 36.69 kB / 1.098 GB, free: 14.95 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.457e-05/0.6658, allocations: 6.938 kB / 1.098 GB, free: 14.95 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.463e-05/0.6659, allocations: 56.69 kB / 1.098 GB, free: 14.95 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0002724/0.6662, allocations: 298.2 kB / 1.099 GB, free: 14.81 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.8e-07/0.6662, allocations: 0 / 1.099 GB, free: 14.81 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003219/0.6665, allocations: 64.88 kB / 1.099 GB, free: 14.8 MB / 0.8731 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.001953/0.6685, allocations: 1.03 MB / 1.1 GB, free: 14.05 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001253/0.6697, allocations: 438.6 kB / 1.1 GB, free: 13.84 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.6697, allocations: 0.5 kB / 1.1 GB, free: 13.84 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0007975/0.6705, allocations: 128.9 kB / 1.1 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003282/0.6709, allocations: 26.67 kB / 1.1 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003643/0.6745, allocations: 2.783 MB / 1.103 GB, free: 11.96 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002765/0.6748, allocations: 0.768 MB / 1.104 GB, free: 11.26 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 4.933e-05/0.6749, allocations: 14.45 kB / 1.104 GB, free: 11.26 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.238e-05/0.6749, allocations: 26.62 kB / 1.104 GB, free: 11.24 MB / 0.8731 GB Notification: Performance of SimCode: time 3.1e-07/0.6749, allocations: 3.938 kB / 1.104 GB, free: 11.24 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.693/4.368, allocations: 6.185 MB / 1.11 GB, free: 9.98 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.42/16.79, allocations: 10.5 kB / 1.11 GB, free: 9.977 MB / 0.8731 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Time_Examples_CalendarTime_fmu --startTime=0 --stopTime=1e+08 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Time_Examples_CalendarTime.fmu > Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1)