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.004938/0.004938, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.001058/0.001058, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.335/1.335, allocations: 222.9 MB / 240.4 MB, free: 4.285 MB / 190.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.4/2.4, allocations: 390.2 MB / 0.6648 GB, free: 216 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001342/0.001342, allocations: 62.02 kB / 0.9504 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2373/0.2387, allocations: 140.4 MB / 1.087 GB, free: 2.023 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002399/0.2411, allocations: 1.514 MB / 1.089 GB, free: 0.4961 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001199/0.2423, allocations: 0.5398 MB / 1.089 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.865e-05/0.2424, allocations: 0 / 1.089 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 9.422e-05/0.2425, allocations: 7.875 kB / 1.089 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001014/0.2426, allocations: 27.77 kB / 1.089 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008016/0.2434, allocations: 319.4 kB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0005138/0.244, allocations: 0.5072 MB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.39e-05/0.244, allocations: 7.984 kB / 1.09 GB, free: 15.1 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003706/0.2444, allocations: 267.6 kB / 1.091 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000283/0.2447, allocations: 147.6 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 7.955e-05/0.2448, allocations: 28 kB / 1.091 GB, free: 14.67 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.297e-05/0.2449, allocations: 24 kB / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001177/0.245, allocations: 119.7 kB / 1.091 GB, free: 14.53 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001891/0.2452, allocations: 187 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000395/0.2456, allocations: 418.4 kB / 1.091 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.2456, allocations: 3.938 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.703e-06/0.2456, allocations: 0 / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.097e-06/0.2456, allocations: 7.938 kB / 1.091 GB, free: 13.93 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.001233/0.2468, allocations: 0.8664 MB / 1.092 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.637e-05/0.2469, allocations: 8.031 kB / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.448e-05/0.247, allocations: 46.73 kB / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001151/0.2471, allocations: 48.47 kB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004029/0.2475, allocations: 302.3 kB / 1.093 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.34e-05/0.2475, allocations: 12.38 kB / 1.093 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.013e-05/0.2476, allocations: 32.36 kB / 1.093 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001056/0.2487, allocations: 217.9 kB / 1.093 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.447e-06/0.2487, allocations: 3.938 kB / 1.093 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.013e-05/0.2488, allocations: 8 kB / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.274e-06/0.2488, allocations: 4 kB / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008567/0.2496, allocations: 99.92 kB / 1.093 GB, free: 12.15 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004021/0.25, allocations: 385.2 kB / 1.093 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00116/0.2512, allocations: 182.5 kB / 1.094 GB, free: 11.54 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008313/0.252, allocations: 108.8 kB / 1.094 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.342e-05/0.2521, allocations: 3.984 kB / 1.094 GB, free: 11.42 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001023/0.2531, allocations: 235 kB / 1.094 GB, free: 11.18 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=16): time 2.034e-06/0.2531, allocations: 0 / 1.094 GB, free: 11.18 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16): time 0.002762/0.2559, allocations: 483.4 kB / 1.094 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.02e-05/0.2559, allocations: 59.41 kB / 1.094 GB, free: 10.63 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003968/0.2563, allocations: 409.9 kB / 1.095 GB, free: 10.23 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 6.459e-05/0.2564, allocations: 45.69 kB / 1.095 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.892e-05/0.2565, allocations: 89.45 kB / 1.095 GB, free: 10.09 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.79e-05/0.2566, allocations: 39.52 kB / 1.095 GB, free: 10.05 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001823/0.2567, allocations: 125.3 kB / 1.095 GB, free: 9.918 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001046/0.2569, allocations: 322.8 kB / 1.095 GB, free: 9.594 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002706/0.2571, allocations: 115.9 kB / 1.096 GB, free: 9.48 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002917/0.2574, allocations: 182.8 kB / 1.096 GB, free: 9.281 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003771/0.2578, allocations: 274.8 kB / 1.096 GB, free: 8.98 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.2578, allocations: 4 kB / 1.096 GB, free: 8.977 MB / 0.8575 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008496/0.2587, allocations: 492.5 kB / 1.096 GB, free: 8.477 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 8.388e-05/0.2588, allocations: 91.31 kB / 1.097 GB, free: 8.375 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/0.2588, allocations: 0 / 1.097 GB, free: 8.375 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.775e-05/0.2588, allocations: 7.984 kB / 1.097 GB, free: 8.367 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001673/0.259, allocations: 31.86 kB / 1.097 GB, free: 8.336 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.574e-06/0.259, allocations: 0 / 1.097 GB, free: 8.336 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005133/0.2595, allocations: 60.05 kB / 1.097 GB, free: 8.277 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.65e-05/0.2596, allocations: 55.98 kB / 1.097 GB, free: 8.223 MB / 0.8575 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.0002215/0.2598, allocations: 205.6 kB / 1.097 GB, free: 8.012 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.676e-05/0.2599, allocations: 39.47 kB / 1.097 GB, free: 7.973 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.843e-05/0.26, allocations: 39.75 kB / 1.097 GB, free: 7.926 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.26, allocations: 3.938 kB / 1.097 GB, free: 7.922 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.26, allocations: 4 kB / 1.097 GB, free: 7.918 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.97e-06/0.26, allocations: 7.984 kB / 1.097 GB, free: 7.91 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002337/0.2624, allocations: 0.7365 MB / 1.098 GB, free: 7.113 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.2624, allocations: 3.938 kB / 1.098 GB, free: 7.109 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.994e-05/0.2624, allocations: 4 kB / 1.098 GB, free: 7.105 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.18e-06/0.2625, allocations: 8 kB / 1.098 GB, free: 7.098 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.79e-05/0.2625, allocations: 19.97 kB / 1.098 GB, free: 7.078 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.397e-06/0.2625, allocations: 4 kB / 1.098 GB, free: 7.074 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.2625, allocations: 3.984 kB / 1.098 GB, free: 7.07 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00188/0.2644, allocations: 478.1 kB / 1.098 GB, free: 6.59 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002687/0.2647, allocations: 200.4 kB / 1.098 GB, free: 6.375 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.181e-05/0.2648, allocations: 8 kB / 1.098 GB, free: 6.367 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000509/0.2653, allocations: 39.89 kB / 1.098 GB, free: 6.328 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.494e-05/0.2653, allocations: 7.984 kB / 1.098 GB, free: 6.32 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.419e-05/0.2654, allocations: 59.98 kB / 1.098 GB, free: 6.262 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0002711/0.2657, allocations: 299.1 kB / 1.099 GB, free: 5.973 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2657, allocations: 3.938 kB / 1.099 GB, free: 5.969 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000365/0.266, allocations: 63.98 kB / 1.099 GB, free: 5.906 MB / 0.8575 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.002116/0.2682, allocations: 1.019 MB / 1.1 GB, free: 4.859 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001328/0.2695, allocations: 442.7 kB / 1.1 GB, free: 4.402 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.2695, allocations: 4.062 kB / 1.1 GB, free: 4.398 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0008214/0.2703, allocations: 119.1 kB / 1.1 GB, free: 4.285 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003844/0.2707, allocations: 29.53 kB / 1.1 GB, free: 4.254 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004141/0.2749, allocations: 2.77 MB / 1.103 GB, free: 1.359 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003483/0.2753, allocations: 0.7747 MB / 1.104 GB, free: 0.5586 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 6.565e-05/0.2753, allocations: 13.08 kB / 1.104 GB, free: 0.5469 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.994e-05/0.2754, allocations: 23.44 kB / 1.104 GB, free: 0.5234 MB / 0.8575 GB Notification: Performance of SimCode: time 4.41e-07/0.2754, allocations: 0 / 1.104 GB, free: 0.5234 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02389/0.2993, allocations: 6.19 MB / 1.11 GB, free: 10.3 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.377/7.676, allocations: 6 kB / 1.11 GB, free: 10.29 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 & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Utilities_Time_Examples_CalendarTime.fmu > Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Time_Examples_CalendarTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches