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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001303/0.001303, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001387/0.001387, allocations: 195.1 kB / 16.53 MB, free: 6.699 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.343/1.343, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.7/2.7, allocations: 469.4 MB / 0.742 GB, free: 7.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001376/0.001376, allocations: 60.3 kB / 0.9082 GB, free: 34.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.251/0.2524, allocations: 159.1 MB / 1.064 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.003311/0.2558, allocations: 1.515 MB / 1.065 GB, free: 13 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001467/0.2573, allocations: 0.549 MB / 1.066 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.551e-05/0.2574, allocations: 0 / 1.066 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001056/0.2575, allocations: 7.875 kB / 1.066 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001235/0.2577, allocations: 27.84 kB / 1.066 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009611/0.2586, allocations: 305.5 kB / 1.066 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0005761/0.2592, allocations: 0.5033 MB / 1.066 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.949e-05/0.2593, allocations: 8 kB / 1.066 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004368/0.2597, allocations: 275.6 kB / 1.067 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003236/0.2601, allocations: 135.6 kB / 1.067 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001354/0.2602, allocations: 28 kB / 1.067 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001136/0.2603, allocations: 28 kB / 1.067 GB, free: 11.15 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001466/0.2605, allocations: 111.7 kB / 1.067 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002458/0.2607, allocations: 187 kB / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005156/0.2613, allocations: 426.9 kB / 1.068 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.2613, allocations: 0 / 1.068 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of FrontEnd: time 4.158e-06/0.2613, allocations: 4 kB / 1.068 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.554e-05/0.2613, allocations: 4 kB / 1.068 GB, free: 10.43 MB / 0.8262 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.00136/0.2627, allocations: 0.8587 MB / 1.068 GB, free: 9.484 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.2627, allocations: 8.031 kB / 1.068 GB, free: 9.477 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.053e-05/0.2628, allocations: 42.73 kB / 1.069 GB, free: 9.426 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001419/0.2629, allocations: 48.47 kB / 1.069 GB, free: 9.379 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004015/0.2634, allocations: 318.2 kB / 1.069 GB, free: 9.031 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.73e-05/0.2634, allocations: 16.36 kB / 1.069 GB, free: 9.016 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.144e-05/0.2635, allocations: 32.36 kB / 1.069 GB, free: 8.984 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001009/0.2645, allocations: 218 kB / 1.069 GB, free: 8.766 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.2645, allocations: 3.938 kB / 1.069 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.062e-05/0.2646, allocations: 4 kB / 1.069 GB, free: 8.758 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.221e-06/0.2646, allocations: 3.984 kB / 1.069 GB, free: 8.754 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008017/0.2654, allocations: 106.3 kB / 1.069 GB, free: 8.652 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004675/0.2659, allocations: 393.2 kB / 1.07 GB, free: 8.219 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001089/0.267, allocations: 170.4 kB / 1.07 GB, free: 8.043 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007937/0.2678, allocations: 116.8 kB / 1.07 GB, free: 7.926 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.773e-05/0.2678, allocations: 7.938 kB / 1.07 GB, free: 7.918 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001015/0.2688, allocations: 223.9 kB / 1.07 GB, free: 7.688 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 4.228e-06/0.2688, allocations: 0 / 1.07 GB, free: 7.688 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16): time 0.00266/0.2715, allocations: 493.9 kB / 1.071 GB, free: 7.199 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.34e-05/0.2716, allocations: 55.41 kB / 1.071 GB, free: 7.133 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004092/0.272, allocations: 417.8 kB / 1.071 GB, free: 6.719 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 7.677e-05/0.2721, allocations: 37.7 kB / 1.071 GB, free: 6.676 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.644e-05/0.2722, allocations: 97.44 kB / 1.071 GB, free: 6.578 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.773e-05/0.2722, allocations: 31.52 kB / 1.071 GB, free: 6.547 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002069/0.2724, allocations: 133.3 kB / 1.071 GB, free: 6.41 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.627e-05/0.2725, allocations: 326.8 kB / 1.072 GB, free: 6.082 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000265/0.2728, allocations: 119.9 kB / 1.072 GB, free: 5.965 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002922/0.2731, allocations: 168.9 kB / 1.072 GB, free: 5.781 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003807/0.2735, allocations: 278.8 kB / 1.072 GB, free: 5.477 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.2735, allocations: 4 kB / 1.072 GB, free: 5.473 MB / 0.8262 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008572/0.2744, allocations: 486.7 kB / 1.073 GB, free: 4.98 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.466e-05/0.2745, allocations: 103.5 kB / 1.073 GB, free: 4.867 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.2745, allocations: 0 / 1.073 GB, free: 4.867 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.785e-05/0.2745, allocations: 4 kB / 1.073 GB, free: 4.863 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001745/0.2747, allocations: 19.92 kB / 1.073 GB, free: 4.844 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.167e-05/0.2747, allocations: 4 kB / 1.073 GB, free: 4.84 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005321/0.2753, allocations: 63.73 kB / 1.073 GB, free: 4.777 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.642e-05/0.2754, allocations: 63.97 kB / 1.073 GB, free: 4.715 MB / 0.8262 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.0002429/0.2756, allocations: 193.7 kB / 1.073 GB, free: 4.52 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.565e-05/0.2757, allocations: 43.47 kB / 1.073 GB, free: 4.477 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.39e-05/0.2758, allocations: 43.73 kB / 1.073 GB, free: 4.43 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.2758, allocations: 0 / 1.073 GB, free: 4.43 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.2758, allocations: 0 / 1.073 GB, free: 4.43 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.2758, allocations: 0 / 1.073 GB, free: 4.43 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002294/0.2781, allocations: 0.7449 MB / 1.074 GB, free: 3.629 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.045e-06/0.2781, allocations: 4 kB / 1.074 GB, free: 3.625 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.473e-05/0.2782, allocations: 11.98 kB / 1.074 GB, free: 3.613 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.2782, allocations: 0 / 1.074 GB, free: 3.613 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.541e-05/0.2782, allocations: 15.98 kB / 1.074 GB, free: 3.598 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.866e-06/0.2782, allocations: 0 / 1.074 GB, free: 3.598 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.2782, allocations: 11.98 kB / 1.074 GB, free: 3.586 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001732/0.28, allocations: 476.3 kB / 1.074 GB, free: 3.105 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002748/0.2803, allocations: 208.4 kB / 1.075 GB, free: 2.883 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.375e-05/0.2804, allocations: 11.98 kB / 1.075 GB, free: 2.871 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000487/0.2808, allocations: 27.97 kB / 1.075 GB, free: 2.844 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.657e-05/0.2809, allocations: 11.98 kB / 1.075 GB, free: 2.832 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.861e-05/0.281, allocations: 59.92 kB / 1.075 GB, free: 2.773 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003001/0.2813, allocations: 291.1 kB / 1.075 GB, free: 2.488 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2813, allocations: 0 / 1.075 GB, free: 2.488 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004303/0.2817, allocations: 67.98 kB / 1.075 GB, free: 2.422 MB / 0.8262 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.002146/0.2839, allocations: 1.028 MB / 1.076 GB, free: 1.367 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001424/0.2853, allocations: 452.5 kB / 1.076 GB, free: 0.9023 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.2853, allocations: 3.938 kB / 1.076 GB, free: 0.8984 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0008318/0.2862, allocations: 124.2 kB / 1.077 GB, free: 0.7773 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004055/0.2866, allocations: 25.55 kB / 1.077 GB, free: 0.75 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00442/0.291, allocations: 2.767 MB / 1.079 GB, free: 13.85 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003211/0.2914, allocations: 0.7747 MB / 1.08 GB, free: 13.05 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 7.368e-05/0.2915, allocations: 17.08 kB / 1.08 GB, free: 13.04 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.234e-05/0.2915, allocations: 23.42 kB / 1.08 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of SimCode: time 4.31e-07/0.2915, allocations: 0 / 1.08 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02576/0.3173, allocations: 6.189 MB / 1.086 GB, free: 6.793 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.476/7.793, allocations: 10.47 kB / 1.086 GB, free: 6.785 MB / 0.8419 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime_res.csv --start-time 0 --stop-time 1e+08 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 40000 Buildings_latest_Buildings_Utilities_Time_Examples_CalendarTime.fmu > Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Time_Examples_CalendarTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches