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.005915/0.005915, allocations: 102.4 kB / 15.73 MB, free: 6.031 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.00126/0.00126, allocations: 196 kB / 16.67 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.408/1.408, allocations: 222.9 MB / 240.4 MB, free: 4.199 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.862/2.862, allocations: 461.9 MB / 0.7348 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002091/0.002091, allocations: 63.91 kB / 1.054 GB, free: 7.727 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3424/0.3445, allocations: 157.4 MB / 1.207 GB, free: 10.23 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.003106/0.3476, allocations: 1.515 MB / 1.209 GB, free: 8.699 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001238/0.3489, allocations: 0.5439 MB / 1.209 GB, free: 8.156 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.62e-05/0.349, allocations: 7.875 kB / 1.209 GB, free: 8.148 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 9.341e-05/0.3491, allocations: 3.938 kB / 1.209 GB, free: 8.145 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001268/0.3493, allocations: 27.84 kB / 1.209 GB, free: 8.117 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001022/0.3503, allocations: 313.1 kB / 1.21 GB, free: 7.812 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0006886/0.351, allocations: 0.4994 MB / 1.21 GB, free: 7.312 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 5.031e-05/0.3511, allocations: 11.92 kB / 1.21 GB, free: 7.301 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004238/0.3515, allocations: 271.7 kB / 1.21 GB, free: 7.035 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003061/0.3518, allocations: 145.6 kB / 1.21 GB, free: 6.895 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 7.876e-05/0.3519, allocations: 27.98 kB / 1.21 GB, free: 6.867 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 6.642e-05/0.352, allocations: 28 kB / 1.211 GB, free: 6.84 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001252/0.3521, allocations: 119.7 kB / 1.211 GB, free: 6.723 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001841/0.3523, allocations: 187 kB / 1.211 GB, free: 6.539 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004023/0.3527, allocations: 419 kB / 1.211 GB, free: 6.129 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.3527, allocations: 0 / 1.211 GB, free: 6.129 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.262e-06/0.3527, allocations: 0 / 1.211 GB, free: 6.129 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 8.767e-06/0.3527, allocations: 0 / 1.211 GB, free: 6.129 MB / 0.9669 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.001219/0.354, allocations: 0.8664 MB / 1.212 GB, free: 5.172 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.354, allocations: 12.62 kB / 1.212 GB, free: 5.16 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.641e-05/0.3541, allocations: 34.75 kB / 1.212 GB, free: 5.117 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001151/0.3542, allocations: 60.45 kB / 1.212 GB, free: 5.059 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003609/0.3546, allocations: 314.2 kB / 1.212 GB, free: 4.719 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.548e-05/0.3546, allocations: 12.38 kB / 1.212 GB, free: 4.707 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.748e-05/0.3547, allocations: 32.3 kB / 1.213 GB, free: 4.676 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001029/0.3557, allocations: 206 kB / 1.213 GB, free: 4.469 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.3558, allocations: 7.922 kB / 1.213 GB, free: 4.461 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.039e-05/0.3558, allocations: 8 kB / 1.213 GB, free: 4.453 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.3558, allocations: 4 kB / 1.213 GB, free: 4.449 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007998/0.3566, allocations: 99.86 kB / 1.213 GB, free: 4.352 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004138/0.357, allocations: 389.2 kB / 1.213 GB, free: 3.922 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001099/0.3581, allocations: 182.4 kB / 1.213 GB, free: 3.734 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007793/0.3589, allocations: 108.8 kB / 1.213 GB, free: 3.625 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.248e-05/0.359, allocations: 0 / 1.213 GB, free: 3.625 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009409/0.3599, allocations: 227 kB / 1.214 GB, free: 3.391 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=16): time 1.864e-06/0.3599, allocations: 0 / 1.214 GB, free: 3.391 MB / 0.9669 GB Notification: Performance of matching and sorting (n=16): time 0.002629/0.3626, allocations: 482.5 kB / 1.214 GB, free: 2.914 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.723e-05/0.3626, allocations: 67.33 kB / 1.214 GB, free: 2.836 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004138/0.363, allocations: 421.8 kB / 1.215 GB, free: 2.41 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 5.766e-05/0.3631, allocations: 37.7 kB / 1.215 GB, free: 2.367 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.561e-05/0.3632, allocations: 97.44 kB / 1.215 GB, free: 2.27 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.276e-05/0.3632, allocations: 35.61 kB / 1.215 GB, free: 2.234 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001914/0.3634, allocations: 121.3 kB / 1.215 GB, free: 2.109 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001086/0.3636, allocations: 322.8 kB / 1.215 GB, free: 1.785 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002592/0.3638, allocations: 115.9 kB / 1.215 GB, free: 1.672 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002779/0.3641, allocations: 175.2 kB / 1.215 GB, free: 1.48 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003737/0.3645, allocations: 279.8 kB / 1.216 GB, free: 1.176 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.439e-06/0.3645, allocations: 0 / 1.216 GB, free: 1.176 MB / 0.9669 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007978/0.3653, allocations: 492.6 kB / 1.216 GB, free: 0.6758 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 9.5e-05/0.3654, allocations: 91.31 kB / 1.216 GB, free: 0.5742 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.3654, allocations: 0 / 1.216 GB, free: 0.5742 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.595e-05/0.3654, allocations: 4 kB / 1.216 GB, free: 0.5703 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001758/0.3656, allocations: 27.91 kB / 1.216 GB, free: 0.543 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.872e-06/0.3656, allocations: 0 / 1.216 GB, free: 0.543 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005157/0.3662, allocations: 63.98 kB / 1.216 GB, free: 492 kB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.173e-05/0.3663, allocations: 59.97 kB / 1.216 GB, free: 432 kB / 0.9669 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.0002281/0.3665, allocations: 205.7 kB / 1.217 GB, free: 220 kB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.795e-05/0.3666, allocations: 39.47 kB / 1.217 GB, free: 180 kB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.208e-05/0.3666, allocations: 35.75 kB / 1.217 GB, free: 144 kB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.3666, allocations: 0 / 1.217 GB, free: 144 kB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.3666, allocations: 0 / 1.217 GB, free: 144 kB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.3666, allocations: 11.98 kB / 1.217 GB, free: 132 kB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00226/0.3689, allocations: 0.7429 MB / 1.217 GB, free: 15.33 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.3689, allocations: 0 / 1.217 GB, free: 15.33 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.742e-05/0.369, allocations: 4 kB / 1.217 GB, free: 15.32 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.856e-06/0.369, allocations: 4 kB / 1.217 GB, free: 15.32 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.784e-05/0.369, allocations: 31.91 kB / 1.217 GB, free: 15.29 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.369, allocations: 4 kB / 1.217 GB, free: 15.29 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.369, allocations: 0 / 1.217 GB, free: 15.29 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001829/0.3709, allocations: 479.1 kB / 1.218 GB, free: 14.8 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002618/0.3711, allocations: 200.4 kB / 1.218 GB, free: 14.59 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.181e-05/0.3712, allocations: 12 kB / 1.218 GB, free: 14.57 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005059/0.3718, allocations: 33.08 kB / 1.218 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.38e-05/0.3718, allocations: 4 kB / 1.218 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.133e-05/0.3719, allocations: 63.97 kB / 1.218 GB, free: 14.48 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0002892/0.3722, allocations: 295.1 kB / 1.219 GB, free: 14.19 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.3e-07/0.3722, allocations: 0 / 1.219 GB, free: 14.19 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003853/0.3726, allocations: 67.98 kB / 1.219 GB, free: 14.12 MB / 0.9825 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.002152/0.3747, allocations: 1.022 MB / 1.22 GB, free: 13.07 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001326/0.3761, allocations: 445.7 kB / 1.22 GB, free: 12.61 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.3761, allocations: 384 / 1.22 GB, free: 12.61 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0008259/0.3769, allocations: 119.9 kB / 1.22 GB, free: 12.5 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003925/0.3773, allocations: 25.55 kB / 1.22 GB, free: 12.47 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004172/0.3815, allocations: 2.789 MB / 1.223 GB, free: 9.555 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003383/0.3819, allocations: 0.7785 MB / 1.224 GB, free: 8.75 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.508e-05/0.3819, allocations: 9.094 kB / 1.224 GB, free: 8.738 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.726e-05/0.382, allocations: 23.42 kB / 1.224 GB, free: 8.715 MB / 0.9825 GB Notification: Performance of SimCode: time 4.31e-07/0.382, allocations: 0 / 1.224 GB, free: 8.715 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02408/0.4061, allocations: 6.328 MB / 1.23 GB, free: 2.367 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.813/8.219, allocations: 7.984 kB / 1.23 GB, free: 2.359 MB / 0.9825 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Time_Examples_CalendarTime_fmu --startTime=0 --stopTime=1e+08 --timeout=50 --tolerance=1e-06 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.mat","/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