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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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: "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_latest_Buildings_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_latest_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.005219/0.005223, allocations: 101.6 kB / 15.73 MB, free: 5.996 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.00134/0.00134, allocations: 194.1 kB / 16.67 MB, free: 5.93 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.405/1.405, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.847/2.847, allocations: 482.6 MB / 0.755 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001755/0.001755, allocations: 68.11 kB / 1.083 GB, free: 12.28 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2684/0.2701, allocations: 162.3 MB / 1.242 GB, free: 9.879 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002399/0.2726, allocations: 1.52 MB / 1.243 GB, free: 8.348 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001146/0.2737, allocations: 0.5422 MB / 1.244 GB, free: 7.805 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.136e-05/0.2738, allocations: 0 / 1.244 GB, free: 7.805 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 7.827e-05/0.2739, allocations: 3.938 kB / 1.244 GB, free: 7.801 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 8.979e-05/0.274, allocations: 31.78 kB / 1.244 GB, free: 7.77 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000701/0.2747, allocations: 305.6 kB / 1.244 GB, free: 7.473 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0006553/0.2753, allocations: 0.5072 MB / 1.245 GB, free: 6.965 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.685e-05/0.2754, allocations: 7.984 kB / 1.245 GB, free: 6.957 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003404/0.2757, allocations: 279.6 kB / 1.245 GB, free: 6.684 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000257/0.276, allocations: 147.6 kB / 1.245 GB, free: 6.539 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 9.295e-05/0.2761, allocations: 24 kB / 1.245 GB, free: 6.516 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 8.658e-05/0.2762, allocations: 28 kB / 1.245 GB, free: 6.488 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001244/0.2763, allocations: 115.7 kB / 1.245 GB, free: 6.375 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.000195/0.2765, allocations: 187 kB / 1.245 GB, free: 6.191 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004205/0.277, allocations: 418.4 kB / 1.246 GB, free: 5.781 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.277, allocations: 0 / 1.246 GB, free: 5.781 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.172e-06/0.277, allocations: 0 / 1.246 GB, free: 5.781 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.26e-06/0.277, allocations: 4 kB / 1.246 GB, free: 5.777 MB / 0.9981 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.001164/0.2782, allocations: 0.8781 MB / 1.247 GB, free: 4.809 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.242e-05/0.2782, allocations: 12.03 kB / 1.247 GB, free: 4.797 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.483e-05/0.2782, allocations: 38.73 kB / 1.247 GB, free: 4.75 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001044/0.2784, allocations: 52.7 kB / 1.247 GB, free: 4.699 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003582/0.2787, allocations: 310.5 kB / 1.247 GB, free: 4.359 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.655e-05/0.2788, allocations: 20.36 kB / 1.247 GB, free: 4.34 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.886e-05/0.2789, allocations: 28.38 kB / 1.247 GB, free: 4.312 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009269/0.2798, allocations: 218 kB / 1.247 GB, free: 4.094 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-06/0.2798, allocations: 3.938 kB / 1.247 GB, free: 4.09 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.26e-05/0.2798, allocations: 0 / 1.247 GB, free: 4.09 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.466e-06/0.2798, allocations: 0 / 1.247 GB, free: 4.09 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007344/0.2806, allocations: 99.92 kB / 1.247 GB, free: 3.992 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003968/0.281, allocations: 393.2 kB / 1.248 GB, free: 3.559 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001014/0.282, allocations: 178.5 kB / 1.248 GB, free: 3.375 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007381/0.2828, allocations: 116.7 kB / 1.248 GB, free: 3.258 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.185e-05/0.2828, allocations: 4 kB / 1.248 GB, free: 3.254 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009012/0.2837, allocations: 231 kB / 1.248 GB, free: 3.016 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=16): time 1.563e-06/0.2837, allocations: 0 / 1.248 GB, free: 3.016 MB / 0.9981 GB Notification: Performance of matching and sorting (n=16): time 0.002446/0.2862, allocations: 485 kB / 1.249 GB, free: 2.535 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.542e-05/0.2862, allocations: 67.38 kB / 1.249 GB, free: 2.457 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004076/0.2866, allocations: 413.9 kB / 1.249 GB, free: 2.039 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 5.089e-05/0.2867, allocations: 41.69 kB / 1.249 GB, free: 1.992 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 7.25e-05/0.2868, allocations: 89.45 kB / 1.249 GB, free: 1.902 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 4.364e-05/0.2868, allocations: 39.75 kB / 1.249 GB, free: 1.863 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000184/0.287, allocations: 125.5 kB / 1.249 GB, free: 1.734 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001268/0.2871, allocations: 322.8 kB / 1.25 GB, free: 1.41 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002502/0.2874, allocations: 119.9 kB / 1.25 GB, free: 1.293 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002874/0.2877, allocations: 173.9 kB / 1.25 GB, free: 1.102 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003664/0.2881, allocations: 283.1 kB / 1.25 GB, free: 0.793 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.2881, allocations: 0 / 1.25 GB, free: 0.793 MB / 0.9981 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007861/0.2889, allocations: 496.6 kB / 1.251 GB, free: 296 kB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 7.502e-05/0.2889, allocations: 91.31 kB / 1.251 GB, free: 192 kB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.289, allocations: 4.188 kB / 1.251 GB, free: 188 kB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.289, allocations: 7.984 kB / 1.251 GB, free: 180 kB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001449/0.2891, allocations: 23.92 kB / 1.251 GB, free: 156 kB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.606e-06/0.2891, allocations: 4 kB / 1.251 GB, free: 152 kB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004503/0.2896, allocations: 59.84 kB / 1.251 GB, free: 92 kB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.042e-05/0.2897, allocations: 59.97 kB / 1.251 GB, free: 32 kB / 0.9981 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.4804/0.7701, allocations: 195.6 kB / 1.251 GB, free: 14.82 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.726e-05/0.7702, allocations: 45 kB / 1.251 GB, free: 14.82 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.028e-05/0.7702, allocations: 42.19 kB / 1.251 GB, free: 14.8 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.7703, allocations: 2.047 kB / 1.251 GB, free: 14.8 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.7703, allocations: 1.094 kB / 1.251 GB, free: 14.8 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.7703, allocations: 1.531 kB / 1.251 GB, free: 14.8 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002081/0.7724, allocations: 0.7426 MB / 1.252 GB, free: 14.51 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.7724, allocations: 2.031 kB / 1.252 GB, free: 14.51 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.133e-05/0.7724, allocations: 5.297 kB / 1.252 GB, free: 14.51 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.7724, allocations: 5.516 kB / 1.252 GB, free: 14.51 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.717e-05/0.7725, allocations: 18.8 kB / 1.252 GB, free: 14.51 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.128e-06/0.7725, allocations: 1.922 kB / 1.252 GB, free: 14.51 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-06/0.7725, allocations: 4.156 kB / 1.252 GB, free: 14.51 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001627/0.7741, allocations: 472 kB / 1.253 GB, free: 14.38 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002019/0.7743, allocations: 202.5 kB / 1.253 GB, free: 14.28 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.802e-05/0.7744, allocations: 14.36 kB / 1.253 GB, free: 14.28 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004613/0.7749, allocations: 34.84 kB / 1.253 GB, free: 14.28 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.691e-05/0.7749, allocations: 8.188 kB / 1.253 GB, free: 14.28 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.05e-05/0.775, allocations: 58.56 kB / 1.253 GB, free: 14.28 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0002737/0.7753, allocations: 295.2 kB / 1.253 GB, free: 14.2 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.41e-07/0.7753, allocations: 0.5469 kB / 1.253 GB, free: 14.2 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003617/0.7756, allocations: 67.55 kB / 1.253 GB, free: 14.2 MB / 0.9981 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.001821/0.7775, allocations: 1.032 MB / 1.254 GB, free: 13.51 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001186/0.7787, allocations: 445.1 kB / 1.255 GB, free: 13.38 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.7787, allocations: 0 / 1.255 GB, free: 13.38 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.000733/0.7794, allocations: 121.7 kB / 1.255 GB, free: 13.38 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003327/0.7798, allocations: 25.66 kB / 1.255 GB, free: 13.38 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003507/0.7833, allocations: 2.795 MB / 1.258 GB, free: 11.66 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001972/0.7835, allocations: 0.7695 MB / 1.258 GB, free: 10.96 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 6.268e-05/0.7836, allocations: 15.58 kB / 1.258 GB, free: 10.96 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.22e-05/0.7836, allocations: 30.66 kB / 1.258 GB, free: 10.95 MB / 0.9981 GB Notification: Performance of SimCode: time 3.31e-07/0.7836, allocations: 0 / 1.258 GB, free: 10.95 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4081/1.192, allocations: 6.204 MB / 1.264 GB, free: 9.746 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.762/9.954, allocations: 8.406 kB / 1.264 GB, free: 9.742 MB / 0.9981 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Time_Examples_CalendarTime_fmu --startTime=0 --stopTime=1e+08 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Time_Examples_CalendarTime.fmu > Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1)