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.007256/0.007256, allocations: 101.8 kB / 15.73 MB, free: 6 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.001778/0.001779, allocations: 193.5 kB / 16.67 MB, free: 5.926 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.361/1.361, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.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.288/2.288, allocations: 390.3 MB / 0.6648 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 67.89 kB / 0.9504 GB, free: 8.211 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7445/0.7459, allocations: 140.4 MB / 1.087 GB, free: 5.305 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002193/0.7481, allocations: 1.52 MB / 1.089 GB, free: 4.242 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001082/0.7492, allocations: 0.5482 MB / 1.089 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.427e-05/0.7493, allocations: 4 kB / 1.089 GB, free: 3.883 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001096/0.7494, allocations: 10.69 kB / 1.089 GB, free: 3.875 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001151/0.7495, allocations: 26.42 kB / 1.089 GB, free: 3.863 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008382/0.7503, allocations: 310.3 kB / 1.09 GB, free: 3.711 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0006167/0.751, allocations: 0.508 MB / 1.09 GB, free: 3.508 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.967e-05/0.751, allocations: 6.016 kB / 1.09 GB, free: 3.508 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004285/0.7515, allocations: 272.5 kB / 1.091 GB, free: 3.43 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003194/0.7518, allocations: 146.2 kB / 1.091 GB, free: 3.379 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 8.612e-05/0.7519, allocations: 26.34 kB / 1.091 GB, free: 3.379 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.736e-05/0.752, allocations: 27.16 kB / 1.091 GB, free: 3.379 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001584/0.7521, allocations: 117.4 kB / 1.091 GB, free: 3.34 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.000212/0.7523, allocations: 181.7 kB / 1.091 GB, free: 3.238 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0005384/0.7529, allocations: 423.8 kB / 1.091 GB, free: 3.082 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.7529, allocations: 0 / 1.091 GB, free: 3.082 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.583e-06/0.7529, allocations: 0.7812 kB / 1.091 GB, free: 3.082 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.485e-06/0.7529, allocations: 0 / 1.091 GB, free: 3.082 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.001255/0.7542, allocations: 0.8734 MB / 1.092 GB, free: 2.336 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.707e-05/0.7542, allocations: 9.875 kB / 1.092 GB, free: 2.336 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.736e-05/0.7543, allocations: 43.69 kB / 1.092 GB, free: 2.289 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001213/0.7544, allocations: 51.11 kB / 1.092 GB, free: 2.27 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003934/0.7548, allocations: 304.2 kB / 1.093 GB, free: 2.004 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.525e-05/0.7549, allocations: 18.16 kB / 1.093 GB, free: 2 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.96e-05/0.755, allocations: 29.75 kB / 1.093 GB, free: 1.996 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009357/0.7559, allocations: 211.4 kB / 1.093 GB, free: 1.938 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.7559, allocations: 4.5 kB / 1.093 GB, free: 1.934 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.656e-05/0.7559, allocations: 2.438 kB / 1.093 GB, free: 1.934 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.756, allocations: 1.625 kB / 1.093 GB, free: 1.934 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007692/0.7567, allocations: 104.4 kB / 1.093 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000441/0.7572, allocations: 395.8 kB / 1.093 GB, free: 1.645 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001054/0.7582, allocations: 175.4 kB / 1.094 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007472/0.759, allocations: 115.8 kB / 1.094 GB, free: 1.559 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.52e-05/0.759, allocations: 2.828 kB / 1.094 GB, free: 1.559 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009426/0.76, allocations: 223.6 kB / 1.094 GB, free: 1.477 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=16): time 1.583e-06/0.76, allocations: 4 kB / 1.094 GB, free: 1.473 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16): time 0.00268/0.7627, allocations: 481 kB / 1.094 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.379e-05/0.7627, allocations: 65.88 kB / 1.094 GB, free: 1.297 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004623/0.7632, allocations: 407.2 kB / 1.095 GB, free: 1.105 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.833e-05/0.7632, allocations: 44.14 kB / 1.095 GB, free: 1.066 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.118e-05/0.7633, allocations: 90.55 kB / 1.095 GB, free: 0.9844 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.64e-05/0.7634, allocations: 45.3 kB / 1.095 GB, free: 0.9492 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002414/0.7636, allocations: 127.7 kB / 1.095 GB, free: 0.8945 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.738e-05/0.7637, allocations: 321.5 kB / 1.095 GB, free: 0.5781 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002823/0.764, allocations: 115.8 kB / 1.096 GB, free: 0.5469 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003128/0.7643, allocations: 186.5 kB / 1.096 GB, free: 448 kB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003506/0.7646, allocations: 277.4 kB / 1.096 GB, free: 244 kB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.7647, allocations: 1 kB / 1.096 GB, free: 244 kB / 0.8575 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007777/0.7654, allocations: 489.4 kB / 1.096 GB, free: 28 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 9.64e-05/0.7655, allocations: 92.83 kB / 1.097 GB, free: 15.95 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.7656, allocations: 2.188 kB / 1.097 GB, free: 15.95 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.525e-05/0.7656, allocations: 6.891 kB / 1.097 GB, free: 15.95 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001607/0.7657, allocations: 23.78 kB / 1.097 GB, free: 15.94 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.195e-05/0.7658, allocations: 7.609 kB / 1.097 GB, free: 15.94 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004778/0.7662, allocations: 55.38 kB / 1.097 GB, free: 15.93 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.271e-05/0.7663, allocations: 60.7 kB / 1.097 GB, free: 15.93 MB / 0.8731 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.0002128/0.7666, allocations: 189.4 kB / 1.097 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.184e-05/0.7666, allocations: 44.47 kB / 1.097 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.009e-05/0.7667, allocations: 46.09 kB / 1.097 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.7667, allocations: 2 kB / 1.097 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.7667, allocations: 0 / 1.097 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.7667, allocations: 2.234 kB / 1.097 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002353/0.7691, allocations: 0.7439 MB / 1.098 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.7691, allocations: 0.6562 kB / 1.098 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.891e-05/0.7692, allocations: 9.688 kB / 1.098 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.7692, allocations: 3.938 kB / 1.098 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.207e-05/0.7692, allocations: 23.48 kB / 1.098 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.7692, allocations: 0 / 1.098 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.7692, allocations: 1.062 kB / 1.098 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001767/0.771, allocations: 477.7 kB / 1.098 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003078/0.7713, allocations: 198.9 kB / 1.098 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.969e-05/0.7714, allocations: 10.98 kB / 1.098 GB, free: 14.97 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004802/0.7719, allocations: 36.31 kB / 1.098 GB, free: 14.96 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.329e-05/0.7719, allocations: 6.984 kB / 1.098 GB, free: 14.96 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.673e-05/0.772, allocations: 56.67 kB / 1.098 GB, free: 14.96 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0003301/0.7723, allocations: 299.2 kB / 1.099 GB, free: 14.82 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7723, allocations: 0 / 1.099 GB, free: 14.82 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003711/0.7727, allocations: 64.75 kB / 1.099 GB, free: 14.82 MB / 0.8731 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.002196/0.7749, allocations: 1.032 MB / 1.1 GB, free: 14.07 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001457/0.7764, allocations: 443 kB / 1.1 GB, free: 13.86 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.7764, allocations: 0 / 1.1 GB, free: 13.86 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.000852/0.7773, allocations: 121.9 kB / 1.1 GB, free: 13.83 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003651/0.7776, allocations: 26.08 kB / 1.1 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004265/0.7819, allocations: 2.785 MB / 1.103 GB, free: 11.97 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003484/0.7823, allocations: 0.7675 MB / 1.104 GB, free: 11.27 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 6.866e-05/0.7824, allocations: 15.64 kB / 1.104 GB, free: 11.27 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.122e-05/0.7824, allocations: 25.52 kB / 1.104 GB, free: 11.25 MB / 0.8731 GB Notification: Performance of SimCode: time 4.81e-07/0.7824, allocations: 1.469 kB / 1.104 GB, free: 11.25 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02648/0.8089, allocations: 6.3 MB / 1.11 GB, free: 9.957 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.435/8.244, allocations: 8.5 kB / 1.11 GB, free: 9.953 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 & /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) diffSimulationResults("Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime_res.mat","/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