Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Utilities.Time.Examples.CalendarTime.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_6_0_0_Buildings_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.043/4.043, allocations: 433.2 MB / 440.7 MB, free: 4.531 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.333e-05/2.335e-05, allocations: 2.656 kB / 0.5325 GB, free: 12.81 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.212/0.2121, allocations: 98.73 MB / 0.6289 GB, free: 9.059 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2277/0.4398, allocations: 125.6 MB / 0.7515 GB, free: 11.32 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002597/0.4401, allocations: 71.97 kB / 0.7516 GB, free: 11.25 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.02084/0.461, allocations: 4.164 MB / 0.7557 GB, free: 7.078 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.044e-06/0.461, allocations: 0 / 0.7557 GB, free: 7.078 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.142e-05/0.461, allocations: 4 kB / 0.7557 GB, free: 7.074 MB / 0.6355 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.001089/0.4621, allocations: 0.5477 MB / 0.7562 GB, free: 6.457 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/0.4622, allocations: 8.031 kB / 0.7562 GB, free: 6.449 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001198/0.4623, allocations: 31.67 kB / 0.7562 GB, free: 6.418 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000165/0.4625, allocations: 192 kB / 0.7564 GB, free: 6.188 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.394e-05/0.4626, allocations: 7.984 kB / 0.7564 GB, free: 6.18 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001015/0.4627, allocations: 16 kB / 0.7564 GB, free: 6.164 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001543/0.4628, allocations: 35.98 kB / 0.7565 GB, free: 6.129 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003339/0.4632, allocations: 137.5 kB / 0.7566 GB, free: 5.988 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.4632, allocations: 0 / 0.7566 GB, free: 5.988 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.147e-05/0.4632, allocations: 0 / 0.7566 GB, free: 5.988 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.488e-06/0.4633, allocations: 4 kB / 0.7566 GB, free: 5.984 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004336/0.4637, allocations: 281.8 kB / 0.7569 GB, free: 5.672 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002848/0.464, allocations: 114.7 kB / 0.757 GB, free: 5.551 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001398/0.4642, allocations: 56.84 kB / 0.757 GB, free: 5.492 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.933e-05/0.4642, allocations: 0 / 0.757 GB, free: 5.492 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004867/0.4647, allocations: 196.5 kB / 0.7572 GB, free: 5.289 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=18): time 2.124e-06/0.4647, allocations: 0 / 0.7572 GB, free: 5.289 MB / 0.6355 GB Notification: Performance of matching and sorting (n=18): time 0.0006038/0.4653, allocations: 198.7 kB / 0.7574 GB, free: 5.09 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.751e-05/0.4654, allocations: 67.39 kB / 0.7575 GB, free: 5.012 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002385/0.4656, allocations: 187 kB / 0.7577 GB, free: 4.82 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 7.356e-05/0.4657, allocations: 33.7 kB / 0.7577 GB, free: 4.781 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 8.187e-05/0.4658, allocations: 88.91 kB / 0.7578 GB, free: 4.691 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 7.057e-05/0.4659, allocations: 51.38 kB / 0.7578 GB, free: 4.641 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.137e-05/0.466, allocations: 8 kB / 0.7578 GB, free: 4.633 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001187/0.4661, allocations: 322.8 kB / 0.7581 GB, free: 4.309 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000283/0.4664, allocations: 80.22 kB / 0.7582 GB, free: 4.23 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003299/0.4667, allocations: 142.1 kB / 0.7583 GB, free: 4.07 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00023/0.467, allocations: 70.39 kB / 0.7584 GB, free: 4 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.467, allocations: 0 / 0.7584 GB, free: 4 MB / 0.6355 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008978/0.4679, allocations: 307.7 kB / 0.7587 GB, free: 3.695 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 8.861e-05/0.468, allocations: 75.33 kB / 0.7588 GB, free: 3.609 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.468, allocations: 0 / 0.7588 GB, free: 3.609 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.821e-05/0.468, allocations: 4 kB / 0.7588 GB, free: 3.605 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002604/0.4683, allocations: 27.92 kB / 0.7588 GB, free: 3.578 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.076e-05/0.4683, allocations: 7.984 kB / 0.7588 GB, free: 3.57 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006028/0.469, allocations: 44.06 kB / 0.7589 GB, free: 3.527 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001093/0.4691, allocations: 43.92 kB / 0.7589 GB, free: 3.484 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.calendarTime2016.firstHourSampling,calendarTime2016.firstHourSampling,$PRE.calendarTime2016.firstDaySampling,calendarTime2016.firstDaySampling,$whenCondition1,calendarTime2016.daySampleTrigger,$whenCondition2,calendarTime2016.hourSampleTrigger,$whenCondition4,$whenCondition3,$PRE.calendarTime2016.year,calendarTime2016.year,$PRE.calendarTime2016.month,calendarTime2016.month,$PRE.calendarTime2016.day,calendarTime2016.day,$PRE.calendarTime2016.hour,calendarTime2016.hour,$PRE.calendarTime2016.weekDay,calendarTime2016.weekDay,$PRE.calendarTime2016.daysSinceEpoch,calendarTime2016.daysSinceEpoch,$PRE.calendarTime2016.yearIndex,calendarTime2016.yearIndex,$PRE.calendarTime2016.epochLastMonth,calendarTime2016.epochLastMonth) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001773/0.4693, allocations: 128 kB / 0.759 GB, free: 3.352 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004763/0.4698, allocations: 199.5 kB / 0.7592 GB, free: 3.152 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.871e-05/0.4698, allocations: 23.72 kB / 0.7592 GB, free: 3.129 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.792e-05/0.4699, allocations: 21.94 kB / 0.7593 GB, free: 3.109 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.4699, allocations: 4 kB / 0.7593 GB, free: 3.105 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.4699, allocations: 4 kB / 0.7593 GB, free: 3.102 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.47, allocations: 0 / 0.7593 GB, free: 3.102 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009483/0.4709, allocations: 0.491 MB / 0.7597 GB, free: 2.566 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.4709, allocations: 0 / 0.7597 GB, free: 2.566 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.166e-05/0.471, allocations: 11.98 kB / 0.7598 GB, free: 2.555 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.26e-06/0.471, allocations: 0 / 0.7598 GB, free: 2.555 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.386e-05/0.4711, allocations: 11.98 kB / 0.7598 GB, free: 2.543 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.4711, allocations: 0 / 0.7598 GB, free: 2.543 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.4711, allocations: 3.938 kB / 0.7598 GB, free: 2.539 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000515/0.4716, allocations: 299.9 kB / 0.7601 GB, free: 2.23 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002085/0.4719, allocations: 144.7 kB / 0.7602 GB, free: 2.07 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.985e-05/0.472, allocations: 8 kB / 0.7602 GB, free: 2.062 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002761/0.4722, allocations: 7.984 kB / 0.7602 GB, free: 2.055 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.998e-05/0.4723, allocations: 11.98 kB / 0.7602 GB, free: 2.043 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.848e-05/0.4724, allocations: 27.98 kB / 0.7602 GB, free: 2.016 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.0001767/0.4726, allocations: 153.6 kB / 0.7604 GB, free: 1.867 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.01e-07/0.4726, allocations: 7.938 kB / 0.7604 GB, free: 1.859 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0005007/0.4731, allocations: 43.98 kB / 0.7604 GB, free: 1.816 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 (calendarTime2016.hourSampleTrigger,calendarTime2016.daySampleTrigger,$whenCondition4,$whenCondition3,$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.firstHourSampling,calendarTime2016.hour,calendarTime2016.yearIndex,calendarTime2016.epochLastMonth,calendarTime2016.month,calendarTime2016.year) * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008751/0.474, allocations: 0.8493 MB / 0.7613 GB, free: 0.9414 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0007137/0.4747, allocations: 319 kB / 0.7616 GB, free: 0.6055 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.4747, allocations: 4.125 kB / 0.7616 GB, free: 0.6016 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001678/0.4749, allocations: 63.92 kB / 0.7616 GB, free: 0.5391 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003492/0.4753, allocations: 20.64 kB / 0.7617 GB, free: 0.5195 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009228/0.4762, allocations: 263.5 kB / 0.7619 GB, free: 232 kB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003457/0.4766, allocations: 0.7357 MB / 0.7626 GB, free: 15.46 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001955/0.4768, allocations: 33.14 kB / 0.7627 GB, free: 15.43 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001826/0.477, allocations: 43.41 kB / 0.7627 GB, free: 15.39 MB / 0.6511 GB Notification: Performance of SimCode: time 1.223e-06/0.477, allocations: 3.938 kB / 0.7627 GB, free: 15.39 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04587/0.5229, allocations: 4.548 MB / 0.7672 GB, free: 10.86 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003256/0.5233, allocations: 134.3 kB / 0.7673 GB, free: 10.66 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.299/2.822, allocations: 0 / 0.7673 GB, free: 10.66 MB / 0.6511 GB