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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008083/0.0008083, allocations: 76.5 kB / 19.93 MB, free: 4.633 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0007823/0.0007823, allocations: 174.3 kB / 23.21 MB, free: 1.352 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9023/0.9023, allocations: 177.1 MB / 203.5 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.776/1.776, allocations: 389 MB / 0.6338 GB, free: 12.71 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=155429,variableFilter="time|calendarTime2016.year|calendarTime2016.month|calendarTime2016.day|calendarTime2016.hour|calendarTime2016.minute",fileNamePrefix="Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime") translateModel(Buildings.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=155429,variableFilter="time|calendarTime2016.year|calendarTime2016.month|calendarTime2016.day|calendarTime2016.hour|calendarTime2016.minute",fileNamePrefix="Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.172e-06/1.172e-06, allocations: 3.938 kB / 1.001 GB, free: 13.05 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.032e-05/2.149e-05, allocations: 6.281 kB / 1.001 GB, free: 13.04 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.001785/0.001806, allocations: 1.526 MB / 1.002 GB, free: 11.51 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0009116/0.002718, allocations: 0.5234 MB / 1.003 GB, free: 10.99 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.519e-05/0.002773, allocations: 0 / 1.003 GB, free: 10.99 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 8.879e-05/0.002862, allocations: 7.875 kB / 1.003 GB, free: 10.98 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 0.0001051/0.002967, allocations: 39.5 kB / 1.003 GB, free: 10.94 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005498/0.003517, allocations: 319.2 kB / 1.003 GB, free: 10.63 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0003345/0.003851, allocations: 483.4 kB / 1.004 GB, free: 10.16 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 3.429e-05/0.003886, allocations: 0 / 1.004 GB, free: 10.16 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000308/0.004194, allocations: 359.6 kB / 1.004 GB, free: 9.805 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001817/0.004375, allocations: 127.7 kB / 1.004 GB, free: 9.68 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 4.639e-05/0.004422, allocations: 28 kB / 1.004 GB, free: 9.652 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 4.501e-05/0.004467, allocations: 24 kB / 1.004 GB, free: 9.629 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 9.18e-05/0.004559, allocations: 119.7 kB / 1.004 GB, free: 9.512 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 0.0001061/0.004665, allocations: 131.7 kB / 1.004 GB, free: 9.383 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0003359/0.005001, allocations: 462.8 kB / 1.005 GB, free: 8.93 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.124e-06/0.005003, allocations: 0 / 1.005 GB, free: 8.93 MB / 0.9636 GB Notification: Performance of FrontEnd: time 9.02e-07/0.005004, allocations: 0 / 1.005 GB, free: 8.93 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.639e-06/0.005008, allocations: 4 kB / 1.005 GB, free: 8.926 MB / 0.9636 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.000781/0.005789, allocations: 0.795 MB / 1.006 GB, free: 8.059 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.235e-05/0.005822, allocations: 12.03 kB / 1.006 GB, free: 8.047 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.926e-05/0.005901, allocations: 52.66 kB / 1.006 GB, free: 7.996 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002452/0.006146, allocations: 260 kB / 1.006 GB, free: 7.715 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.335e-05/0.00618, allocations: 20.38 kB / 1.006 GB, free: 7.695 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.591e-05/0.006225, allocations: 32.3 kB / 1.006 GB, free: 7.664 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000513/0.006738, allocations: 234 kB / 1.006 GB, free: 7.43 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.854e-06/0.006746, allocations: 192 / 1.006 GB, free: 7.43 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.758e-05/0.006764, allocations: 384 / 1.006 GB, free: 7.43 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.006769, allocations: 4.375 kB / 1.006 GB, free: 7.426 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003535/0.007123, allocations: 118.5 kB / 1.006 GB, free: 7.312 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002375/0.00736, allocations: 285 kB / 1.007 GB, free: 7.004 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005006/0.007861, allocations: 178.5 kB / 1.007 GB, free: 6.82 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003422/0.008203, allocations: 116.8 kB / 1.007 GB, free: 6.703 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.926e-05/0.008222, allocations: 0 / 1.007 GB, free: 6.703 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004579/0.00868, allocations: 243.1 kB / 1.007 GB, free: 6.453 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=16): time 1.232e-06/0.008681, allocations: 0 / 1.007 GB, free: 6.453 MB / 0.9636 GB Notification: Performance of matching and sorting (n=16): time 0.001253/0.009934, allocations: 0.5272 MB / 1.008 GB, free: 5.922 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.185e-05/0.009976, allocations: 59.41 kB / 1.008 GB, free: 5.852 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000281/0.01026, allocations: 413.8 kB / 1.008 GB, free: 5.438 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 3.46e-05/0.01029, allocations: 45.62 kB / 1.008 GB, free: 5.387 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 4.984e-05/0.01034, allocations: 97.44 kB / 1.008 GB, free: 5.289 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 3.157e-05/0.01037, allocations: 39.78 kB / 1.008 GB, free: 5.25 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000111/0.01048, allocations: 125.4 kB / 1.008 GB, free: 5.121 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.83e-05/0.01056, allocations: 326.8 kB / 1.009 GB, free: 4.793 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001954/0.01076, allocations: 191.3 kB / 1.009 GB, free: 4.594 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002085/0.01097, allocations: 249.3 kB / 1.009 GB, free: 4.316 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002325/0.0112, allocations: 271.2 kB / 1.009 GB, free: 4.02 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.0112, allocations: 0 / 1.009 GB, free: 4.02 MB / 0.9636 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005225/0.01172, allocations: 0.5686 MB / 1.01 GB, free: 3.422 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 4.913e-05/0.01177, allocations: 79.38 kB / 1.01 GB, free: 3.332 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.01178, allocations: 4 kB / 1.01 GB, free: 3.328 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.196e-05/0.01179, allocations: 3.938 kB / 1.01 GB, free: 3.324 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.589e-05/0.01189, allocations: 23.97 kB / 1.01 GB, free: 3.301 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.873e-06/0.01189, allocations: 7.938 kB / 1.01 GB, free: 3.293 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002288/0.01212, allocations: 64.09 kB / 1.01 GB, free: 3.23 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.922e-05/0.01218, allocations: 63.92 kB / 1.01 GB, free: 3.168 MB / 0.9636 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.0001467/0.01233, allocations: 201.7 kB / 1.01 GB, free: 2.965 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.229e-05/0.01236, allocations: 35.77 kB / 1.01 GB, free: 2.93 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.948e-05/0.0124, allocations: 39.69 kB / 1.01 GB, free: 2.891 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.0124, allocations: 4 kB / 1.01 GB, free: 2.887 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.01241, allocations: 0 / 1.01 GB, free: 2.887 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.01241, allocations: 3.938 kB / 1.01 GB, free: 2.883 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001107/0.01352, allocations: 0.7089 MB / 1.011 GB, free: 2.133 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.01352, allocations: 4 kB / 1.011 GB, free: 2.129 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.838e-05/0.01354, allocations: 4 kB / 1.011 GB, free: 2.125 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.01354, allocations: 4 kB / 1.011 GB, free: 2.121 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.245e-05/0.01356, allocations: 23.91 kB / 1.011 GB, free: 2.098 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.975e-06/0.01357, allocations: 7.875 kB / 1.011 GB, free: 2.09 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.01357, allocations: 4 kB / 1.011 GB, free: 2.086 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008322/0.0144, allocations: 0.5018 MB / 1.012 GB, free: 1.57 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001647/0.01456, allocations: 125.5 kB / 1.012 GB, free: 1.445 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.508e-05/0.01461, allocations: 23.92 kB / 1.012 GB, free: 1.422 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002116/0.01482, allocations: 35.97 kB / 1.012 GB, free: 1.387 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.658e-05/0.01485, allocations: 7.984 kB / 1.012 GB, free: 1.379 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.224e-05/0.01489, allocations: 63.97 kB / 1.012 GB, free: 1.316 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.0001849/0.01508, allocations: 295.1 kB / 1.012 GB, free: 1.027 MB / 0.9636 GB Notification: Performance of sort global known variables: time 8e-08/0.01508, allocations: 0 / 1.012 GB, free: 1.027 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0002147/0.01529, allocations: 63.98 kB / 1.012 GB, free: 0.9648 MB / 0.9636 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 9.536e-05/0.01539, allocations: 117.2 kB / 1.012 GB, free: 0.8438 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0006874/0.01607, allocations: 489.9 kB / 1.013 GB, free: 336 kB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.01607, allocations: 0 / 1.013 GB, free: 336 kB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.0003537/0.01643, allocations: 127.8 kB / 1.013 GB, free: 208 kB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00023/0.01666, allocations: 26.83 kB / 1.013 GB, free: 184 kB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008345/0.01749, allocations: 0.6142 MB / 1.014 GB, free: 15.53 MB / 0.9792 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001033/0.0176, allocations: 159 kB / 1.014 GB, free: 15.35 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.467e-05/0.01763, allocations: 16.5 kB / 1.014 GB, free: 15.33 MB / 0.9792 GB Notification: Performance of SimCode: time 3.91e-07/0.01763, allocations: 0 / 1.014 GB, free: 15.33 MB / 0.9792 GB Notification: Performance of Templates: time 0.003595/0.02123, allocations: 3.749 MB / 1.017 GB, free: 11.53 MB / 0.9792 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.makefile [Timeout 300] (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 & ./Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Time_Examples_CalendarTime.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 7.266548496671021]