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.008084/0.008084, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.002063/0.002063, allocations: 197.8 kB / 16.68 MB, free: 5.969 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.329/1.329, allocations: 222.9 MB / 240.4 MB, free: 4.328 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.477/2.477, allocations: 390.2 MB / 0.6648 GB, free: 244 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001202, allocations: 66.55 kB / 0.9504 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2409/0.2421, allocations: 140.4 MB / 1.087 GB, free: 2.035 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002564/0.2447, allocations: 1.514 MB / 1.089 GB, free: 0.5078 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001223/0.246, allocations: 0.538 MB / 1.089 GB, free: 15.97 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.571e-05/0.2461, allocations: 3.938 kB / 1.089 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 9.009e-05/0.2462, allocations: 7.922 kB / 1.089 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001058/0.2463, allocations: 27.86 kB / 1.089 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008195/0.2471, allocations: 308.8 kB / 1.09 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000543/0.2477, allocations: 0.5033 MB / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.376e-05/0.2477, allocations: 15.98 kB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004008/0.2481, allocations: 279.6 kB / 1.091 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000296/0.2484, allocations: 148.7 kB / 1.091 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 8.126e-05/0.2485, allocations: 28 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 6.901e-05/0.2486, allocations: 24 kB / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001214/0.2487, allocations: 107.7 kB / 1.091 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001931/0.2489, allocations: 187 kB / 1.091 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004266/0.2494, allocations: 430.2 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.2494, allocations: 4 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.162e-06/0.2494, allocations: 0 / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.298e-06/0.2494, allocations: 0 / 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.001239/0.2507, allocations: 0.8665 MB / 1.092 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.2507, allocations: 12.03 kB / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.066e-05/0.2508, allocations: 42.67 kB / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001265/0.2509, allocations: 56.66 kB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004109/0.2513, allocations: 314.5 kB / 1.093 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.995e-05/0.2514, allocations: 16.36 kB / 1.093 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.603e-05/0.2515, allocations: 36.36 kB / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001059/0.2525, allocations: 210 kB / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.2526, allocations: 3.938 kB / 1.093 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.826e-05/0.2526, allocations: 3.938 kB / 1.093 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.2526, allocations: 4 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008431/0.2535, allocations: 102.3 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004185/0.2539, allocations: 389.3 kB / 1.093 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001147/0.255, allocations: 178.3 kB / 1.094 GB, free: 11.52 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008354/0.2559, allocations: 116.8 kB / 1.094 GB, free: 11.41 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.985e-05/0.2559, allocations: 0 / 1.094 GB, free: 11.41 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00109/0.257, allocations: 232.9 kB / 1.094 GB, free: 11.17 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=16): time 2.395e-06/0.257, allocations: 4 kB / 1.094 GB, free: 11.16 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16): time 0.002843/0.2599, allocations: 489 kB / 1.094 GB, free: 10.68 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.069e-05/0.2599, allocations: 59.41 kB / 1.094 GB, free: 10.61 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004647/0.2604, allocations: 409.9 kB / 1.095 GB, free: 10.2 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 9.208e-05/0.2605, allocations: 41.69 kB / 1.095 GB, free: 10.16 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.842e-05/0.2606, allocations: 93.44 kB / 1.095 GB, free: 10.06 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.882e-05/0.2607, allocations: 43.72 kB / 1.095 GB, free: 10.02 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002149/0.2609, allocations: 129.4 kB / 1.095 GB, free: 9.887 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001263/0.2611, allocations: 326.8 kB / 1.095 GB, free: 9.559 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002729/0.2613, allocations: 111.9 kB / 1.096 GB, free: 9.449 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002992/0.2616, allocations: 170.9 kB / 1.096 GB, free: 9.262 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000442/0.2621, allocations: 282.7 kB / 1.096 GB, free: 8.953 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.2621, allocations: 0 / 1.096 GB, free: 8.953 MB / 0.8575 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008605/0.263, allocations: 492.9 kB / 1.096 GB, free: 8.453 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 8.948e-05/0.2631, allocations: 91.31 kB / 1.097 GB, free: 8.352 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.298e-06/0.2631, allocations: 0 / 1.097 GB, free: 8.352 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.071e-05/0.2631, allocations: 4 kB / 1.097 GB, free: 8.348 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001765/0.2633, allocations: 23.92 kB / 1.097 GB, free: 8.324 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.358e-06/0.2633, allocations: 0 / 1.097 GB, free: 8.324 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005124/0.2638, allocations: 67.77 kB / 1.097 GB, free: 8.258 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.182e-05/0.2639, allocations: 59.98 kB / 1.097 GB, free: 8.199 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.0002725/0.2642, allocations: 197.8 kB / 1.097 GB, free: 7.996 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.757e-05/0.2643, allocations: 39.7 kB / 1.097 GB, free: 7.957 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.36e-05/0.2644, allocations: 43.73 kB / 1.097 GB, free: 7.906 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.2644, allocations: 4 kB / 1.097 GB, free: 7.902 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.2644, allocations: 4 kB / 1.097 GB, free: 7.898 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.2644, allocations: 0 / 1.097 GB, free: 7.898 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002409/0.2668, allocations: 0.7474 MB / 1.098 GB, free: 7.094 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.2668, allocations: 3.984 kB / 1.098 GB, free: 7.09 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.8e-05/0.2669, allocations: 4 kB / 1.098 GB, free: 7.086 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.467e-06/0.2669, allocations: 0 / 1.098 GB, free: 7.086 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.577e-05/0.2669, allocations: 19.97 kB / 1.098 GB, free: 7.066 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.2669, allocations: 4 kB / 1.098 GB, free: 7.062 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.2669, allocations: 4 kB / 1.098 GB, free: 7.059 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001903/0.2689, allocations: 479.3 kB / 1.098 GB, free: 6.574 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003231/0.2692, allocations: 208.7 kB / 1.098 GB, free: 6.352 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.042e-05/0.2693, allocations: 8 kB / 1.098 GB, free: 6.344 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005164/0.2698, allocations: 27.97 kB / 1.098 GB, free: 6.316 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.088e-05/0.2699, allocations: 11.98 kB / 1.098 GB, free: 6.305 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.133e-05/0.2699, allocations: 63.91 kB / 1.098 GB, free: 6.242 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0003259/0.2703, allocations: 291.1 kB / 1.099 GB, free: 5.961 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.7e-07/0.2703, allocations: 4 kB / 1.099 GB, free: 5.957 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0004421/0.2707, allocations: 64 kB / 1.099 GB, free: 5.895 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.002293/0.273, allocations: 1.03 MB / 1.1 GB, free: 4.836 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001427/0.2745, allocations: 440.9 kB / 1.1 GB, free: 4.383 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.726e-06/0.2745, allocations: 0 / 1.1 GB, free: 4.383 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0008293/0.2753, allocations: 124.2 kB / 1.1 GB, free: 4.262 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003871/0.2757, allocations: 21.55 kB / 1.1 GB, free: 4.238 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004497/0.2802, allocations: 2.793 MB / 1.103 GB, free: 1.32 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003988/0.2807, allocations: 0.7669 MB / 1.104 GB, free: 0.5273 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 7.675e-05/0.2807, allocations: 17.08 kB / 1.104 GB, free: 0.5117 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.692e-05/0.2808, allocations: 27.42 kB / 1.104 GB, free: 496 kB / 0.8575 GB Notification: Performance of SimCode: time 1.242e-06/0.2808, allocations: 0 / 1.104 GB, free: 496 kB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02434/0.3052, allocations: 6.177 MB / 1.11 GB, free: 10.27 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.365/7.67, allocations: 15.95 kB / 1.11 GB, free: 10.26 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