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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001593/0.001593, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001756/0.001756, allocations: 194.5 kB / 16.14 MB, free: 6.711 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.278/1.278, allocations: 222.9 MB / 239.8 MB, free: 4.637 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.222/2.222, allocations: 390.2 MB / 0.6643 GB, free: 0.6484 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001343/0.001343, allocations: 63.91 kB / 0.812 GB, free: 14.84 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5875/0.5888, allocations: 140.4 MB / 0.949 GB, free: 9.277 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002268/0.5912, allocations: 1.568 MB / 0.9506 GB, free: 8.039 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001053/0.5922, allocations: 0.5972 MB / 0.9512 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.951e-05/0.5923, allocations: 0 / 0.9512 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 8.586e-05/0.5924, allocations: 13.27 kB / 0.9512 GB, free: 7.57 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.583e-05/0.5925, allocations: 15.69 kB / 0.9512 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005166/0.593, allocations: 286.7 kB / 0.9515 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003445/0.5933, allocations: 448.2 kB / 0.9519 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.694e-05/0.5934, allocations: 16.19 kB / 0.9519 GB, free: 7.113 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003478/0.5937, allocations: 304.6 kB / 0.9522 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002157/0.594, allocations: 166 kB / 0.9523 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 8.53e-05/0.5941, allocations: 14.25 kB / 0.9524 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.966e-05/0.5941, allocations: 14.44 kB / 0.9524 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.000142/0.5943, allocations: 115.7 kB / 0.9525 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001888/0.5945, allocations: 183 kB / 0.9527 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003797/0.5949, allocations: 421.1 kB / 0.9531 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.5949, allocations: 0 / 0.9531 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of FrontEnd: time 9.62e-07/0.5949, allocations: 0 / 0.9531 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.43e-06/0.5949, allocations: 0 / 0.9531 GB, free: 6.434 MB / 0.7169 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.001094/0.596, allocations: 0.8641 MB / 0.9539 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.596, allocations: 9.156 kB / 0.9539 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.559e-05/0.5961, allocations: 33.12 kB / 0.9539 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001131/0.5962, allocations: 54.22 kB / 0.954 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000291/0.5965, allocations: 310.6 kB / 0.9543 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.499e-05/0.5966, allocations: 21.95 kB / 0.9543 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.351e-05/0.5966, allocations: 26.2 kB / 0.9543 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009619/0.5976, allocations: 220.9 kB / 0.9545 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.765e-06/0.5976, allocations: 3.938 kB / 0.9545 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.74e-05/0.5977, allocations: 3.984 kB / 0.9546 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.5977, allocations: 7.5 kB / 0.9546 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007865/0.5985, allocations: 97.48 kB / 0.9547 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003364/0.5988, allocations: 392.1 kB / 0.955 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001051/0.5999, allocations: 178.6 kB / 0.9552 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007761/0.6006, allocations: 106.5 kB / 0.9553 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.015e-05/0.6007, allocations: 14.47 kB / 0.9553 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009265/0.6016, allocations: 225.4 kB / 0.9555 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 1.493e-06/0.6016, allocations: 0 / 0.9555 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16): time 0.00259/0.6042, allocations: 482.8 kB / 0.956 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.334e-05/0.6043, allocations: 60.91 kB / 0.956 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003389/0.6046, allocations: 413.7 kB / 0.9564 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 5.081e-05/0.6047, allocations: 37.3 kB / 0.9565 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.179e-05/0.6047, allocations: 99.94 kB / 0.9566 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.002e-05/0.6048, allocations: 40.97 kB / 0.9566 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000191/0.605, allocations: 132.1 kB / 0.9567 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.771e-05/0.605, allocations: 322.1 kB / 0.957 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002692/0.6053, allocations: 120.7 kB / 0.9572 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002681/0.6056, allocations: 167.5 kB / 0.9573 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003241/0.6059, allocations: 284.1 kB / 0.9576 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.6059, allocations: 0 / 0.9576 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007466/0.6067, allocations: 493.9 kB / 0.9581 GB, free: 2.73 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 6.265e-05/0.6067, allocations: 91.75 kB / 0.9581 GB, free: 2.645 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.6068, allocations: 1.094 kB / 0.9581 GB, free: 2.645 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.256e-05/0.6068, allocations: 3.125 kB / 0.9582 GB, free: 2.645 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001583/0.6069, allocations: 26.64 kB / 0.9582 GB, free: 2.633 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-06/0.6069, allocations: 3.125 kB / 0.9582 GB, free: 2.633 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005028/0.6075, allocations: 73.84 kB / 0.9583 GB, free: 2.594 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.234e-05/0.6075, allocations: 57.05 kB / 0.9583 GB, free: 2.59 MB / 0.7169 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.0001734/0.6077, allocations: 199.9 kB / 0.9585 GB, free: 2.43 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.419e-05/0.6078, allocations: 39.88 kB / 0.9585 GB, free: 2.406 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.535e-05/0.6078, allocations: 40.39 kB / 0.9586 GB, free: 2.375 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.317e-06/0.6079, allocations: 2.562 kB / 0.9586 GB, free: 2.375 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.6079, allocations: 0 / 0.9586 GB, free: 2.375 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.6079, allocations: 0 / 0.9586 GB, free: 2.375 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002048/0.6099, allocations: 0.7464 MB / 0.9593 GB, free: 1.855 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.6099, allocations: 0 / 0.9593 GB, free: 1.855 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.295e-05/0.61, allocations: 8.141 kB / 0.9593 GB, free: 1.852 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.61, allocations: 1.188 kB / 0.9593 GB, free: 1.852 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.545e-05/0.61, allocations: 24.33 kB / 0.9593 GB, free: 1.84 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.205e-06/0.61, allocations: 3.984 kB / 0.9593 GB, free: 1.836 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.61, allocations: 1.375 kB / 0.9593 GB, free: 1.836 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001631/0.6117, allocations: 478 kB / 0.9598 GB, free: 1.57 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001968/0.6119, allocations: 196.2 kB / 0.96 GB, free: 1.402 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.268e-05/0.612, allocations: 17.2 kB / 0.96 GB, free: 1.391 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004657/0.6124, allocations: 31.38 kB / 0.96 GB, free: 1.379 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.996e-05/0.6125, allocations: 7.859 kB / 0.96 GB, free: 1.375 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.3e-05/0.6125, allocations: 61.5 kB / 0.9601 GB, free: 1.363 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002267/0.6128, allocations: 294.6 kB / 0.9604 GB, free: 1.184 MB / 0.7169 GB Notification: Performance of sort global known variables: time 6.62e-07/0.6128, allocations: 4 kB / 0.9604 GB, free: 1.18 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003347/0.6131, allocations: 66.25 kB / 0.9604 GB, free: 1.172 MB / 0.7169 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.001834/0.615, allocations: 1.024 MB / 0.9614 GB, free: 376 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001134/0.6161, allocations: 432.1 kB / 0.9619 GB, free: 116 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.6161, allocations: 0.75 kB / 0.9619 GB, free: 116 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0007433/0.6169, allocations: 127.8 kB / 0.962 GB, free: 68 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003396/0.6172, allocations: 29.98 kB / 0.962 GB, free: 48 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003947/0.6212, allocations: 2.886 MB / 0.9648 GB, free: 13.85 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002988/0.6215, allocations: 0.7747 MB / 0.9656 GB, free: 13.11 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 6.158e-05/0.6215, allocations: 13.05 kB / 0.9656 GB, free: 13.1 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.286e-05/0.6216, allocations: 22.23 kB / 0.9656 GB, free: 13.09 MB / 0.7325 GB Notification: Performance of SimCode: time 3.51e-07/0.6216, allocations: 0 / 0.9656 GB, free: 13.09 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01526/0.6369, allocations: 6.092 MB / 0.9716 GB, free: 9.73 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001581/0.6371, allocations: 195.9 kB / 0.9718 GB, free: 9.473 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.676/2.313, allocations: 5.188 kB / 0.9718 GB, free: 9.469 MB / 0.7325 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)