Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_10_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.007526/0.007526, allocations: 105.6 kB / 15.74 MB, free: 6.055 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.001965/0.001965, allocations: 198.1 kB / 16.68 MB, free: 5.965 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.352/1.352, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.412/2.412, allocations: 437.1 MB / 0.7105 GB, free: 4.391 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001402/0.001402, allocations: 64.12 kB / 1.018 GB, free: 9.953 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.827/0.8284, allocations: 151.6 MB / 1.166 GB, free: 3.969 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002835/0.8313, allocations: 1.529 MB / 1.168 GB, free: 2.43 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001505/0.8328, allocations: 0.5425 MB / 1.168 GB, free: 1.891 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.918e-05/0.8329, allocations: 0 / 1.168 GB, free: 1.891 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001214/0.8331, allocations: 7.875 kB / 1.168 GB, free: 1.883 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001509/0.8333, allocations: 31.62 kB / 1.168 GB, free: 1.852 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.001031/0.8343, allocations: 312.7 kB / 1.168 GB, free: 1.547 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0006409/0.835, allocations: 0.5033 MB / 1.169 GB, free: 1.043 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 4.863e-05/0.835, allocations: 4 kB / 1.169 GB, free: 1.039 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005192/0.8355, allocations: 275.6 kB / 1.169 GB, free: 0.7695 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003042/0.8359, allocations: 139.7 kB / 1.169 GB, free: 0.6328 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0001021/0.836, allocations: 28 kB / 1.169 GB, free: 0.6055 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001062/0.8361, allocations: 32 kB / 1.169 GB, free: 0.5742 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0001336/0.8362, allocations: 119.6 kB / 1.17 GB, free: 468 kB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0001948/0.8364, allocations: 183.1 kB / 1.17 GB, free: 284 kB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0004379/0.8369, allocations: 421 kB / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.8369, allocations: 0 / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of FrontEnd: time 3.537e-06/0.8369, allocations: 0 / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 7.444e-06/0.8369, allocations: 3.938 kB / 1.17 GB, free: 15.86 MB / 0.9044 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.001277/0.8382, allocations: 0.8625 MB / 1.171 GB, free: 14.91 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.666e-05/0.8382, allocations: 8.922 kB / 1.171 GB, free: 14.9 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.417e-05/0.8383, allocations: 46.73 kB / 1.171 GB, free: 14.85 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001095/0.8384, allocations: 52.41 kB / 1.171 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004039/0.8388, allocations: 310.3 kB / 1.171 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.689e-05/0.8389, allocations: 20.36 kB / 1.171 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.628e-05/0.839, allocations: 20.38 kB / 1.171 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009315/0.8399, allocations: 215.5 kB / 1.172 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.867e-06/0.8399, allocations: 3.938 kB / 1.172 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.828e-05/0.84, allocations: 12 kB / 1.172 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.84, allocations: 0 / 1.172 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007284/0.8407, allocations: 103.8 kB / 1.172 GB, free: 14.08 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004204/0.8411, allocations: 389.2 kB / 1.172 GB, free: 13.65 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001049/0.8422, allocations: 178.4 kB / 1.172 GB, free: 13.47 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007075/0.8429, allocations: 108.8 kB / 1.172 GB, free: 13.36 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.69e-05/0.8429, allocations: 4 kB / 1.172 GB, free: 13.36 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009353/0.8439, allocations: 231 kB / 1.173 GB, free: 13.12 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=16): time 1.893e-06/0.8439, allocations: 0 / 1.173 GB, free: 13.12 MB / 0.9044 GB Notification: Performance of matching and sorting (n=16): time 0.002494/0.8464, allocations: 491 kB / 1.173 GB, free: 12.63 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.081e-05/0.8465, allocations: 59.39 kB / 1.173 GB, free: 12.56 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004116/0.8469, allocations: 409.9 kB / 1.173 GB, free: 12.15 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 5.64e-05/0.8469, allocations: 41.69 kB / 1.174 GB, free: 12.1 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 7.92e-05/0.847, allocations: 109.3 kB / 1.174 GB, free: 11.99 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 5.183e-05/0.8471, allocations: 31.56 kB / 1.174 GB, free: 11.96 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002004/0.8473, allocations: 125.3 kB / 1.174 GB, free: 11.83 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001128/0.8474, allocations: 318.8 kB / 1.174 GB, free: 11.51 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002747/0.8477, allocations: 119.9 kB / 1.174 GB, free: 11.39 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002976/0.848, allocations: 177.9 kB / 1.174 GB, free: 11.2 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003906/0.8484, allocations: 275.4 kB / 1.175 GB, free: 10.9 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.8484, allocations: 4 kB / 1.175 GB, free: 10.89 MB / 0.9044 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008489/0.8493, allocations: 490.7 kB / 1.175 GB, free: 10.4 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 8.811e-05/0.8494, allocations: 97.75 kB / 1.175 GB, free: 10.29 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.939e-06/0.8494, allocations: 8 kB / 1.175 GB, free: 10.29 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.759e-05/0.8494, allocations: 4 kB / 1.175 GB, free: 10.28 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001798/0.8496, allocations: 15.98 kB / 1.175 GB, free: 10.27 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.372e-05/0.8496, allocations: 7.938 kB / 1.175 GB, free: 10.26 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004886/0.8501, allocations: 59.98 kB / 1.175 GB, free: 10.2 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.469e-05/0.8502, allocations: 63.97 kB / 1.175 GB, free: 10.14 MB / 0.9044 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.0002305/0.8505, allocations: 193.7 kB / 1.176 GB, free: 9.941 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.221e-05/0.8505, allocations: 39.47 kB / 1.176 GB, free: 9.902 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.427e-05/0.8506, allocations: 39.73 kB / 1.176 GB, free: 9.863 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.49e-06/0.8506, allocations: 4 kB / 1.176 GB, free: 9.859 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.8506, allocations: 4 kB / 1.176 GB, free: 9.855 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.8506, allocations: 0 / 1.176 GB, free: 9.855 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002229/0.8529, allocations: 0.7443 MB / 1.176 GB, free: 9.051 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.8529, allocations: 0 / 1.176 GB, free: 9.051 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.094e-05/0.8529, allocations: 11.98 kB / 1.176 GB, free: 9.039 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.44e-06/0.853, allocations: 0 / 1.176 GB, free: 9.039 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.001e-05/0.853, allocations: 23.92 kB / 1.176 GB, free: 9.016 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.853, allocations: 0 / 1.176 GB, free: 9.016 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/0.853, allocations: 3.984 kB / 1.176 GB, free: 9.012 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001718/0.8547, allocations: 475.2 kB / 1.177 GB, free: 8.531 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002509/0.855, allocations: 196.5 kB / 1.177 GB, free: 8.32 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.394e-05/0.8551, allocations: 15.98 kB / 1.177 GB, free: 8.305 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004598/0.8556, allocations: 27.97 kB / 1.177 GB, free: 8.277 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.363e-05/0.8556, allocations: 7.984 kB / 1.177 GB, free: 8.27 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.262e-05/0.8557, allocations: 59.97 kB / 1.177 GB, free: 8.211 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0002905/0.856, allocations: 299.1 kB / 1.177 GB, free: 7.918 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.9e-07/0.856, allocations: 3.938 kB / 1.177 GB, free: 7.914 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003756/0.8564, allocations: 64 kB / 1.177 GB, free: 7.852 MB / 0.9044 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.002047/0.8584, allocations: 1.032 MB / 1.178 GB, free: 6.793 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.001235/0.8597, allocations: 434.7 kB / 1.179 GB, free: 6.344 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.8597, allocations: 4.125 kB / 1.179 GB, free: 6.34 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.000754/0.8604, allocations: 119.9 kB / 1.179 GB, free: 6.223 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003651/0.8608, allocations: 29.48 kB / 1.179 GB, free: 6.195 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004158/0.865, allocations: 2.78 MB / 1.182 GB, free: 3.285 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003326/0.8653, allocations: 0.7747 MB / 1.183 GB, free: 2.484 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 6.345e-05/0.8654, allocations: 13.08 kB / 1.183 GB, free: 2.473 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.442e-05/0.8655, allocations: 19.42 kB / 1.183 GB, free: 2.453 MB / 0.9044 GB Notification: Performance of SimCode: time 3.81e-07/0.8655, allocations: 4 kB / 1.183 GB, free: 2.449 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02384/0.8893, allocations: 6.204 MB / 1.189 GB, free: 12.22 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.748/8.637, allocations: 8.047 kB / 1.189 GB, free: 12.21 MB / 0.92 GB (rm -f Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Time_Examples_CalendarTime_fmu --startTime=0 --stopTime=1e+08 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Time_Examples_CalendarTime.fmu > Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Time_Examples_CalendarTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches